Software Archive
Read-only legacy content
17061 Discussions

Native Compilation Issue

jofre
Beginner
229 Views

It has a long time I do not use my Xeon Phi 5100. Today I removed all the old intel compilers and installed the latest intel compiler 2017 update2, and the latest MKL. After updating my .bascrc with:

source /opt/intel/compilers_and_libraries_2017.2.174/linux/bin/ifortvars.sh intel64
source /opt/intel/compilers_and_libraries_2017.2.174/linux/mkl/bin/mklvars.sh intel64 mic

I wanted to compile my code with:

ifort -mmic -w -real-size 64 -align array64byte -O3 -opt-matmul -ip -no-prec-div -ipo -parallel -fpp -save -qopenmp -mkl find_structure_v03.f90

But I get the following erros:
ipo: warning #11021: unresolved vdrnguniform_
        Referenced in /tmp/ipo_ifortSDjTdS.o
ipo: warning #11021: unresolved vslnewstream_
        Referenced in /tmp/ipo_ifortSDjTdS.o
x86_64-k1om-linux-ld: cannot find -lmkl_intel_lp64
x86_64-k1om-linux-ld: cannot find -lmkl_intel_thread
x86_64-k1om-linux-ld: cannot find -lmkl_core


In my code, I use, 
USE MKL_VSL_TYPE
USE MKL_VSL
vdRngUniform()

I can not find what it is wrong... The paths should be fine. I have even copied the libmkl_core.a and libmkl_core.so in the same folder where the compilation takes place, but the errors persisted (I hope to get ride of the "cannot find -lmkl_core")

By information, I am using mpss 3.4.3-1, but in principle, it should not affect compilation.

Any suggestions/ideas?

Thanks in advance,
Jofre

0 Kudos
1 Reply
jofre
Beginner
229 Views

For clarification, if I compile for the host (I simply change -mmic by -xhost) there is no problem.

Jofre

0 Kudos
Reply