Community
cancel
Showing results for 
Search instead for 
Did you mean: 
sungho_l_
Beginner
94 Views

Compile problem with MKL

My code is compiled with intel MKL in window 10 but it does not compile in Linux system (CentOS 6).

I use a sentence for compiling like this 

ifort /c /Qmkl *for

ifort /o *obj

It is working in the window.

I use the compatible sentence like this

ifort -c -mkl *for

ifort -o *o

However, the sentence is not working in Linux (CentOS 6).

The compiler shows "(.text+0x9c51f): undefined reference to `pardiso_''"

The compiler cannot find PARDISO from intel MKL.

I already set the PATH of intel compiler directory and library.

I tried to include mkl_pardiso.f95 in my code but it was not working too...

Any comments can be helpful to me.

 

Thanks in advance

 

Sungho

 

0 Kudos
1 Reply
mecej4
Black Belt
88 Views

You need to add -mkl to the linking command line:

     ifort -mkl *.o -o myexe