- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I am brand new in MKL. I have two question:
1. is it possible to malloc dynamicly memory for doublecomplex structure ? I tried to use basic instructions like for double array (*double)malloc(N*sizeof(double)) or (double)malloc(N*sizeof(double)) and its few combinations but it does not work. I know that I can use doublecomplex
2. How much data may be allocated for single matrix in PARDISO ? If I allocate small matrix everything is finem but if I allocate bigger matrix (such as 50 000 x50 000, with 2 000 000 of nonzeros) there is an alert :
STACK IS OVER FLOW, please help me !!!
Thank in advance,
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
doublecomplex* aa = new doublecomplex
2)STACK IS OVER FLOW happened because of static arrays ...Please use only dynamic allocation.
Please let us know - if anyfurtherproblem- i will provide thetest case for you.
--Gennady
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Unfortunatelly,
using
doublecomplex* aa = new doublecomplex
An error ocurrs:
Error 1233 error: identifier "new" is undefined ...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
1) "new" is C++, so "icpc" compiler should be used instead of "icc".
2) In order to make it with "icc", please make as follows:
doublecomplex* aa = (doublecomplex*)malloc(sizeof(doublecomplex*N);
Regards,
Konstantin
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page