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

linking MKL in command line makefile on Mac Osx

Marvin_Doyley
Beginner
847 Views
I am trying to link the mkl lapack library from the command line using the following option
-L/opt/intel/Compiler/11.1/067/Frameworks/mkl/Libraries/em64t -lguide -lmkl_lapack -lmkl_em64t

however when I do this, I get the following error

library not found for -lmkl_lapack

Do you have an suggestion ?

I was able to do this in version 10.0.016, so I was surprize it didn't work
0 Kudos
3 Replies
Chuck
New Contributor II
847 Views
Quoting - Marvin Doyley
I am trying to link the mkl lapack library from the command line using the following option
-L/opt/intel/Complier/11.1/067/Frameworks/mkl/Libraries/em64t -lguide -lmkl_lapack -lmkl_em64t

however when I do this, I get the following error

library not found for -lmkl_lapack

Do you have an suggestion ?

I was able to do this in version 10.0.016, so I was surprize it didn't work

Greetings,

This forum is for getting started type issues related to installations and licensing.

I will transfer this to the MKL forum.

Chuck
0 Kudos
TimP
Honored Contributor III
847 Views
MKL 10.0 had some backwards compatibility scripts to help avoid changes in link lines from previous versions. Apparently, you were fortunate enough that it worked for you. On the header page for this (MKL) forum, there is a link advisor tool which should help you find a suitable specification among the current libraries.
0 Kudos
Marvin_Doyley
Beginner
847 Views
Quoting - tim18
MKL 10.0 had some backwards compatibility scripts to help avoid changes in link lines from previous versions. Apparently, you were fortunate enough that it worked for you. On the header page for this (MKL) forum, there is a link advisor tool which should help you find a suitable specification among the current libraries.


Hi Tim,

I finally got my code to compile, but I know have an issue at run time. It would appear that lib_mkl_intel_ilp64.dylib expects a flat namespace. Do you have any idea how to resolve this issue

thanks
M
0 Kudos
Reply