cannot manage to link imkl library in linux

cannot manage to link imkl library in linux

I have downloaded intel fortran compiler and mkl library for linux. I have installed them. I can use ifort but I cannot link my file to imkl library.

airmax:~> ifort imkltest.f90 -L$MHLPATH -lmkl_lapack95 -lmkl_lapack -lmkl_em64t -lguide

It gives following error.

fortcom: Error: imltest.f90, line 10: Error in opening the Library module file

what is wrong with this compiler and library. I have also added following lines to my .bashrc file

export MKLPATH="/opt/intel/mkl/8.0.1"
export INCLUDE="/opt/intel/mkl/8.0.1/include"
export LD_LIBRARY_PATH=/opt/intel/mkl/8.0.1/lib/em64t:$LD_LIBRARY_PATH

I have also attacthed my imkltest.f90

2 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

I was having a similar problem and in my case it worked when I deactivated the SELinux. I also changed all the permissions to be able to write in the mkl directories. Hoppefully this might help you.

Leave a Comment

Please sign in to add a comment. Not a member? Join today