-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Memory allocation failed in SuperLU_MT? #9
Comments
It's difficult to tell what went wrong. You will need to do some debugging, for example, by printing out some info at various places of the source code. |
The problem occurred to me at the position/function ( LU factorization of A): |
It is must, to use the dreadhb(&m, &n, &nnz, &a, &asub, &xa)? instead of it, I use the following (it works in SuperLU): // Initialize matrix A. |
I don't see anything wrong in your matrix setup routine. I suggest you go into the SuperLU source code, do some printing at various places, see whether your input matrix is correct. |
fp.txt |
Dear Sherry Li, But I need your help to define the .hb file correctly. I defined it below but it is not working. Please help me in this (Particularly in the first two lines: `template
}` |
fp.hb.zip I am using the matrix in the attachment but give me the Segmentation fault (core dumped) at dreadhb(). |
Dear Sherry Li, I also try in this way but still segmentation fault. |
I am using the SuperLU_MT and the code from pdrepeat.c (https://github.com/xiaoyeli/superlu_mt/blob/master/EXAMPLE/pdrepeat.c). In this code the function dreadhb(&m, &n, &nnz, &a, &asub, &xa); is used. My matrix format is CRS and transform it into CCS by dCompRow_to_CompCol(m, n, nnz,
const_cast<double*>(_sk.data()), const_cast<int_t*>(_ik.data()), const_cast<int_t*>(_id.data()),
&a, &asub, &xa);
And then use the dCreate_CompCol_Matrix(&A, m, n, nnz, a, asub, xa, SLU_NC, SLU_D, SLU_GE); to create the Supermatrix A.
When I run the code, it gives me the following error:
** On entry to sp_ienv, parameter number 1 had an illegal value Storage for L subscripts exceeded; Current column 0; Need at least 72; You may set it by the 8-th parameter in routine sp_ienv(). Memory allocation failed at line 222 in file pmemory.c
Any suggestions about this to handle the error?
The text was updated successfully, but these errors were encountered: