Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
110 Views

MKL error when calling MKL_SDNSCSR.

Hi,

 

I just dowloaded MKL in intend to try its sparse BLAS, the first thing I tried was the conversion of full matrix to sparse one with MKL_SDNSCSR

 

Here my code:

implicit none

real::A(2,5)
integer::job(8)
INTEGER::  info,n=2,m=5
INTEGER      ja(10), ia(6)
REAL          acsr(10)

A(1,:)=(/1, 0 ,1,0,2/)
A(2,:)=(/2,0,0,0,1/)

job=0
job(1)=0
job(2)=1
job(3)=1
job(4)=2
job(5)=10
job(6)=1

print*,A
print*,job

call mkl_sdnscsr(job,n,m,A,m,acsr,ja,ia,info)

end

It gives the following error:

Intel MKL ERROR: Parameter 1 was incorrect on entry to MKL_SDNSCSR.

What did I did wrong?

 

Best

0 Kudos
1 Reply
Highlighted
Moderator
110 Views

at first glance, everything looks correct. How did you link this case?

0 Kudos