Dear Support Team, dear all,
I'm trying to compile and run an application for the Xeon PHI. However when I link my application with a build script it prints the following warning:
ld: warning: libirng.so, needed by /opt/intel/composer_xe_2013_sp1.2.144/compiler/lib/intel64/liboffload.so.5, not found (try using -rpath or -rpath-link)
I still can run the program but it crashes on first offload with:
On the remote process, dlopen() failed. The error message sent back from the sink is /tmp/coi_procs/1/12302/load_lib/icpcoutIWf5MP: undefined symbol: _ZSt4sqrtf On the sink, dlopen() returned NULL. The result of dlerror() is "/tmp/coi_procs/1/12302/load_lib/icpcoutIWf5MP: undefined symbol: _ZSt4sqrtf" offload error: cannot load library to the device 0 (error code 20)
To me it looks like std::sqrt is missing?
Before compiling I usually use:
source /opt/intel/composer_xe_2013_sp1.2.144/bin/compilervars.sh intel64 source /opt/intel/vtune_amplifier_xe/amplxe-vars.sh
My compile commands look something like this:
icpc -o foo.o -c -fmessage-length=0 -O3 -fstrict-aliasing -fargument-noalias -xHost -openmp -DSTUFF=0 -Ibuild/build_foo -Isrc src/foo.cpp
Any help is highly appreciated!