Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
28652 Discussions

unable to use shared libraries: libmkl_intel_lp64.so in intel fortran composer XE

jamesmind11yahoo_com
683 Views

my .bashrc looks like this

# .bashrc

# Source global definitions

if [ -f /etc/bashrc ]; then

. /etc/bashrc

fi

# User specific aliases and functions

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/intel/composer_xe_2011_sp1.9.293/mkl/lib/intel64

source /opt/intel/composer_xe_2011_sp1.9.293/bin/ifortvars.sh intel64

source /opt/intel/composer_xe_2011_sp1.9.293/mkl/bin/mklvars.sh intel64

export MKL_TARGET_ARCH=intel64


when I type in the terminal

[james@localhost ~]$ echo $LD_LIBRARY_PATH

I got th e following:

opt/intel/composer_xe_2011_sp1.9.293/compiler/lib/intel64:/opt/intel/composer_xe_2011_sp1.9.293/m

kl/lib/intel64:/opt/intel/composer_xe_2011_sp1.9.293/compiler/lib/intel64:/opt/intel/composer_xe_201

1_sp1.9.293/compiler/lib/intel64:/opt/intel/composer_xe_2011_sp1.9.293/mkl/lib/intel64::/opt/intel/co

mposer_xe_2011_sp1.9.293/mkl/lib/intel64:/opt/intel/composer_xe_2011_sp1.9.293/debugger/lib/intel

64:/opt/intel/composer_xe_2011_sp1.9.293/mpirt/lib/intel64

When I type "ls /opt/intel/composer_xe_2011_sp1.9.293/mkl/lib/intel64/libmkl_intel_lp64.so in the terminal

[james@localhost ~]$ ls /opt/intel/composer_xe_2011_sp1.9.293/mkl/lib/intel64/libmkl_intel_lp64.so

I got the following line:

/opt/intel/composer_xe_2011_sp1.9.293/mkl/lib/intel64/libmkl_intel_lp64.so


While compiling the WIEN2k, it is shown that the recommended options for system linuxifc are:

Compiler options: -FR -mp1 -w -prec_div -pc80 -pad -ip -DINTEL_VML -traceback

Linker Flags: $(FOPT) -L$(MKLROOT)/lib/$(MKL_TARGET_ARCH) -pthread

Preprocessor flags: '-DParallel'

R_LIB (LAPACK+BLAS): -lmkl_lapack95_lp64 -lmkl_intel_lp64 -lmkl_intel_thread -lmkl_core -openmp -lpthread

and my current settings urrent settings are:

O Compiler options: -FR -mp1 -w -prec_div -pc80 -pad -ip -DINTEL_VML -traceback

L Linker Flags: $(FOPT) -L$(MKLROOT)/lib/$(MKL_TARGET_ARCH) -pthread

P Preprocessor flags '-DParallel'

R R_LIB (LAPACK+BLAS): -lmkl_lapack95_lp64 -lmkl_intel_lp64 -lmkl_intel_thread -lmkl_core -openmp -lpthread

S Save and Quit

There were no error shown during the compilation. But when i tried to use the shared libraries

the error message comes

/home/james/wien2k/lapw0:

error while loading shared libraries: libmkl_intel_lp64.so: cannot open shared object file: No such file or directory > stop error

Please help me

0 Kudos
1 Reply
TimP
Honored Contributor III
683 Views
Did you check whether you have set LD_LIBRARY_PATH at run time, as you did at compile time?
The -mp1 option is obsolete. Maybe you want -assume protect_parens. -openmp implies -lpthread, but that duplication is not a problem. -pc80 would have no effect in a compilation mode where you can use the MKL libraries you show. I prefer to avoid options of uncertain effect like -pad. None of these minor issues have any connection with the library path issue.
0 Kudos
Reply