我刚刚安装了Linux *版英特尔®Parallel Studio XE群集版* 2019年,并且正在尝试使用OpenMP卸载到Xeon Phi加速器。我正在使用带有标记的cmake
CC=~/intel/bin/icc CXX=~/intel/bin/icpc CMAKE_CXX_FLAGS="-qopenmp-offload" cmake ..
这一切都没有问题。但是,当我运行make时,出现以下错误:
ld: warning: libcoi_device.so.0, needed by /opt/software/icc/2018.1.163-GCC-6.4.0-2.28/compilers_and_libraries_2018.1.163/linux/compiler/lib/intel64/libioffload_target.so.5, not found (try using -rpath or -rpath-link)
/opt/software/icc/2018.1.163-GCC-6.4.0-2.28/compilers_and_libraries_2018.1.163/linux/compiler/lib/intel64/libioffload_target.so.5: undefined reference to `COIPerfGetCycleFrequency@COI_1.0'
/opt/software/icc/2018.1.163-GCC-6.4.0-2.28/compilers_and_libraries_2018.1.163/linux/compiler/lib/intel64/libioffload_target.so.5: undefined reference to `COIBufferAddRef@COI_1.0'
/opt/software/icc/2018.1.163-GCC-6.4.0-2.28/compilers_and_libraries_2018.1.163/linux/compiler/lib/intel64/libioffload_target.so.5: undefined reference to `COIPipelineStartExecutingRunFunctions@COI_1.0'
/opt/software/icc/2018.1.163-GCC-6.4.0-2.28/compilers_and_libraries_2018.1.163/linux/compiler/lib/intel64/libioffload_target.so.5: undefined reference to `COIEngineGetIndex@COI_1.0'
/opt/software/icc/2018.1.163-GCC-6.4.0-2.28/compilers_and_libraries_2018.1.163/linux/compiler/lib/intel64/libioffload_target.so.5: undefined reference to `COIBufferReleaseRef@COI_1.0'
/opt/software/icc/2018.1.163-GCC-6.4.0-2.28/compilers_and_libraries_2018.1.163/linux/compiler/lib/intel64/libioffload_target.so.5: undefined reference to `COIProcessWaitForShutdown@COI_1.0'
make[2]: *** [GPU] Error 1
make[1]: *** [CMakeFiles/GPU.dir/all] Error 2
make: *** [all] Error 2
进一步检查后,我发现在/ opt和〜/ intel安装中,英特尔编译器libioffload_target.so.5
均缺少libcoi_device.so.0 => not found
。
关于为什么会这样的任何想法?
答案 0 :(得分:0)
终端输出的第一行提供了可能的解决方案。
ld:警告:/opt/software/icc/2018.1.163-GCC-6.4.0-2.28/compilers_and_libraries_2018.1.163/linux/compiler/lib/intel64/libioffload_target.so所需的libcoi_device.so.0。 5,未找到(尝试使用-rpath或-rpath-link) (尝试使用-rpath或-rpath-link)