MKL incompatibilities

MKL incompatibilities

I realised Intel has been removed the compatibility libraries (dummy libraries) in the new MKL releases.

I am trying to build the lammps sorce code ( ) 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

-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,

3 posts / novo 0
Último post
Para obter mais informações sobre otimizações de compiladores, consulte Aviso sobre otimizações.

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.


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.

Thanks, -- Victor

Deixar um comentário

Faça login para adicionar um comentário. Não é membro? Inscreva-se hoje mesmo!