找不到libcoi_device.so.0与Intel 19.0.4 OpenMP 5.0卸载有关的编译错误

时间:2019-07-26 16:10:04

标签: c++ c openmp intel offloading

我刚刚安装了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

关于为什么会这样的任何想法?

1 个答案:

答案 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)