If this error message references an Intel shared runtime library, such as libsvml.so, then this implies that the Linux* loader was not able to locate the library. First check that you have the Intel lib directory in your LD_LIBRARY_PATHenvironment variable. However, this can still be a problem when running a program where a new shell is created to run the program (such as MPICH). To fix this problem, link the Intel provided libraries statically with the -static-libcxa (for 10.x compiler and earlier versions only) or -static-intel flags or add the -rpathlinker option so the executables can find the libraries at runtime, for example:
icpc test.cpp -Xlinker -rpath -Xlinker <path to Intel libraries>
Path to Intel libraries depends on where you install the Intel compiler. The default paths to Intel libraries look like
Note that anyone using a binary compiled with the -rpath option will need those libs to exist in that directory path as well, so you may have to redistribute the Intel provided libraries with your application.
Intel® C++ Compiler for Linux* - Error while loading shared libraries: [shared lib]: cannot open shared object
Para obter informações mais completas sobre otimizações do compilador, consulte nosso aviso de otimização.