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

MKL error when calling MKL_SDNSCSR.

Bomble__Laetitia
Beginner
521 Views

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
Gennady_F_Intel
Moderator
521 Views

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

0 Kudos
Reply