Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

Compile problem with MKL

sungho_l_
Beginner
401 Views

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
Honored Contributor III
395 Views

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

     ifort -mkl *.o -o myexe

Reply