Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
11 Views

when mpirun to host mic, error while loading shared libraries: libmkl_intel_lp64.so

When I use "-host mic0" in the host, there is an error that the mic0 can not find the file libmkl_intel_lp64.so.

[yd@yd-ws3 ~]$ mpirun -host mic0 -iface mic0 -n 1 /yd_tools/binaries_mic/yd_binary_mpiicpc_mx008_shnao_iposlm_cmvlf_dwyg 
/yd_tools/binaries_mic/yd_binary_mpiicpc_mx008_shnao_iposlm_cmvlf_dwyg: error while loading shared libraries: libmkl_intel_lp64.so: cannot open shared object file: No such file or directory

I need to set the LP_LIBRARY_PATH manually by "-env".

[yd@yd-ws3 ~]$ mpirun -host mic0 -iface mic0 -env LD_LIBRARY_PATH /opt/intel/mkl/lib/mic -n 1 /yd_tools/binaries_mic/yd_binary_mpiicpc_mx008_shnao_iposlm_cmvlf_dwyg 
Usage:	/yd_tools/binaries_mic/yd_binary_mpiicpc_mx008_shnao_iposlm_cmvlf_dwyg [ work path ]

When I run mpirun in the host or in the mic, this error disappear.

[yd@yd-ws3 ~]$ mpirun -n 1 /yd_tools/binaries/yd_binary_mpiicpc_mx008_shnao_iposlm_cmvlf_dwyg
Usage:	/yd_tools/binaries/yd_binary_mpiicpc_mx008_shnao_iposlm_cmvlf_dwyg [ work path ]

[yd@yd-ws3 common]$ ssh mic0
[yd@yd-ws3-mic0 ~]$ mpirun -n 1 /yd_tools/binaries_mic/yd_binary_mpiicpc_mx008_shnao_iposlm_cmvlf_dwyg 
Usage:	/yd_tools/binaries_mic/yd_binary_mpiicpc_mx008_shnao_iposlm_cmvlf_dwyg [ work path ]
[yd@yd-ws3-mic0 ~]$ exit
logout
Connection to mic0 closed.

This is the output of env. There is no LP_LIBRARY_PATH.

[yd@yd-ws3 ~]$ mpirun -host mic0 -iface mic0 -env LD_LIBRARY_PATH /opt/intel/mkl/lib/mic -n 1 /usr/bin/env |grep PATH
PATH=/opt/intel/compilers_and_libraries_2017.4.196/linux/bin/intel64:/opt/intel/compilers_and_libraries_2017.4.196/linux/mpi/intel64/bin:/opt/intel/debugger_2017/gdb/intel64_mic/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/yd_tools/binaries:/home/yd/.local/bin:/home/yd/bin
MANPATH=/opt/intel/man/common:/opt/intel/compilers_and_libraries_2017.4.196/linux/mpi/man:/opt/intel/documentation_2017/en/debugger//gdb-ia/man/:/opt/intel/documentation_2017/en/debugger//gdb-mic/man/:/opt/intel/documentation_2017/en/debugger//gdb-igfx/man/:/usr/local/share/man:/usr/share/man:
LIBRARY_PATH=/opt/intel/compilers_and_libraries_2017.4.196/linux/ipp/lib/intel64:/opt/intel/compilers_and_libraries_2017.4.196/linux/compiler/lib/intel64_lin:/opt/intel/compilers_and_libraries_2017.4.196/linux/mkl/lib/intel64_lin:/opt/intel/compilers_and_libraries_2017.4.196/linux/tbb/lib/intel64/gcc4.7:/opt/intel/compilers_and_libraries_2017.4.196/linux/daal/lib/intel64_lin:/opt/intel/compilers_and_libraries_2017.4.196/linux/daal/../tbb/lib/intel64_lin/gcc4.4
MIC_LD_LIBRARY_PATH=/opt/intel/compilers_and_libraries_2017.4.196/linux/mpi/mic/lib:/opt/intel/compilers_and_libraries_2017.4.196/linux/compiler/lib/mic:/opt/intel/compilers_and_libraries_2017.4.196/linux/ipp/lib/mic:/opt/intel/mic/coi/device-linux-release/lib:/opt/intel/mic/myo/lib:/opt/intel/compilers_and_libraries_2017.4.196/linux/compiler/lib/intel64_lin_mic:/opt/intel/compilers_and_libraries_2017.4.196/linux/mkl/lib/intel64_lin_mic:/opt/intel/compilers_and_libraries_2017.4.196/linux/tbb/lib/mic
MIC_LIBRARY_PATH=/opt/intel/compilers_and_libraries_2017.4.196/linux/mpi/mic/lib:/opt/intel/compilers_and_libraries_2017.4.196/linux/compiler/lib/mic:/opt/intel/compilers_and_libraries_2017.4.196/linux/compiler/lib/intel64_lin_mic:/opt/intel/compilers_and_libraries_2017.4.196/linux/mkl/lib/intel64_lin_mic:/opt/intel/compilers_and_libraries_2017.4.196/linux/tbb/lib/mic
CPATH=/opt/intel/compilers_and_libraries_2017.4.196/linux/ipp/include:/opt/intel/compilers_and_libraries_2017.4.196/linux/mkl/include:/opt/intel/compilers_and_libraries_2017.4.196/linux/tbb/include:/opt/intel/compilers_and_libraries_2017.4.196/linux/daal/include
CLASSPATH=/opt/intel/compilers_and_libraries_2017.4.196/linux/mpi/intel64/lib/mpi.jar:/opt/intel/compilers_and_libraries_2017.4.196/linux/daal/lib/daal.jar
INFOPATH=/opt/intel/documentation_2017/en/debugger//gdb-ia/info/:/opt/intel/documentation_2017/en/debugger//gdb-mic/info/:/opt/intel/documentation_2017/en/debugger//gdb-igfx/info/
I_MPI_CMD=mpirun -host mic0 -iface mic0 -env LD_LIBRARY_PATH /opt/intel/mkl/lib/mic -n 1 /usr/bin/env 

If I want to avoid setting the LP_LIBRARY_PATH manually by "-env". How can I do?

0 Kudos
0 Replies