Intel® oneAPI Math Kernel Library
Ask questions and share information with other developers who use Intel® Math Kernel Library.

mkl_mkl_dcsradd appears error

shaopeng_z_
Beginner
314 Views

Dear all

I use the function as follows:

call mkl_dcsradd(trans,request,sort,m,n,a,ja,ia,beta,b,jb,ib,c,jc,ic,nzmax,info)

the length of arrays a and b are 3569442 and 1156736,respectively.

m=n=250080

when I choose nzmax=9452356, I find that my sample code cannot run due to this error: program Exception - access violation.

at case of nzmax=1500000 ,the program could run ,but the result is not correct

I want to know  whether it appears Memory overflow due to the value of the nzmax .

 

0 Kudos
3 Replies
Anonymous66
Valued Contributor I
314 Views

I am transferring this issue to the MKL forums. Someone on that forum will help you shortly

Annalee

 

0 Kudos
mecej4
Honored Contributor III
314 Views

shaopeng z.:

The information that you have given is incomplete and insufficient. We need to know the declarations of all the arguments passed to mkl_dcsradd, the values of all the scalar arguments, and a statement as to how the array arguments were assigned values. We also need to know the OS, compiler and MKL versions.

Are you aware that you can make a dummy sizing call to the routine, with request=2, and find the size of the result matrix, i.e., the lengths of arrays c and jc? You can then allocate c and jc to this size and make another call to mkl_dcsradd, this time to actually compute the matrix sum in CSR format.

0 Kudos
SergeyKostrov
Valued Contributor II
314 Views
Even if the description is not complete let me suggest the following: - Try to increase stask size values ( see linker options ) for the application or - Try to increase OMP_STACKSIZE value or - Try to increase a size for Virtual Memory paging file It is Not clear if you're dealing with an internal error in the MKL function or if you have some problem related to memory, that is simply not enough to complete processing on your system.
0 Kudos
Reply