I use the function as follows:
the length of arrays a and b are 3569442 and 1156736,respectively.
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 .
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.