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

MKL incompatibilities

Dogan_Y_
Beginner
147 Views

I realised Intel has been removed the compatibility libraries (dummy libraries) in the new MKL releases.
http://software.intel.com/en-us/articles/dummy-libraries-have-been-removed

I am trying to build the lammps sorce code ( http://sourceforge.net/projects/lammps/ ) with my Intel fortan & C compilers V 12.1.2 last two days, but unfortunately I could not succeded. )

The source code can not compile with the parameters in the makefile.

LINKFLAGS = -O -L/opt/intel/mkl/10.0.011/lib/em64t
LIB = -lstdc++ -lpthread -lmkl_em64t -lguide

I also used the new MKL options that generated with Intel MKL Link Line Advisor website but I could not passed the errors http://software.intel.com/en-us/articles/intel-mkl-link-line-advisor/

-lpthread -lmpi /opt/intel/mkl/lib/intel64/libfftw2xf_intel.a -lmkl_intel_lp64 -lmkl_sequential -lmkl_core -lstdc++ -o ../lmp_mkl
ld: cannot find -limf
make[1]: *** [../lmp_mkl] Error 1
make[1]: Leaving directory `/root/lammps-12Apr12/src/Obj_mkl'
make: *** [mkl] Error 2

Any idea or any advice?

Thanks a lot & B.Regards,
Dogan

0 Kudos
2 Replies
TimP
Black Belt
147 Views
You can't mix libraries between 10.0 and 12.1 compilers. You should let the compiler choose consistent libraries. It might be better to adhere closer to the link advisor as a starting point, even if you are serious about eventually using a mixture of static and dynamic MKL libraries.
ifort failing to find -limf would appear to indicate that you didn't set the environment variables by sourceing the compilervars script.
barragan_villanueva_
Valued Contributor I
147 Views
Hi,

libimfis the math libraryfromIntel compiler.
Did you correctly use compilervarsto setyour environment? Or add -L path to compiler libs location.
Also, if your code is inC++ then you don't need to link with -lstdc++ and try C++ compiler.
Reply