[Openmp-dev] nvlink error : Undefined reference to '__kmpc_nvptx_teams_reduce_nowait_v2' in '/tmp/pi-gpu-0e6b25.cubin'

Itaru Kitayama via Openmp-dev openmp-dev at lists.llvm.org
Wed Jun 5 16:30:53 PDT 2019


Hi,
On POWER8 I see a simple OpenMP Offloading program fails to build.

$ clang ~/pi-gpu.c -fopenmp -fopenmp-targets=nvptx64-nvidia-cuda
--cuda-path=$CUDA
ptxas /tmp/pi-gpu-710c87.s, line 5767; warning : Instruction 'vote' without
'.sync' is deprecated since PTX ISA version 6.0 and will be discontinued in
a future PTX ISA version
nvlink error   : Undefined reference to
'__kmpc_nvptx_teams_reduce_nowait_v2' in '/tmp/pi-gpu-0e6b25.cubin'
clang-9: error: nvlink command failed with exit code 255 (use -v to see
invocation)

As the code builds fine with the module clang-8, should I regard this
as my build configuration failure of trunk?

Below this is how I configured the toolchain

cmake -G "Ninja" -DCMAKE_INSTALL_PREFIX=$PROJECT/pcp0151/opt/clang/${today}
-DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++
-DLLVM_ENABLE_PROJECTS="openmp;clang;lld"
-DCLANG_OPENMP_NVPTX_DEFAULT_ARCH=sm_60
-DLIBOMPTARGET_NVPTX_COMPUTE_CAPABILITIES=60
-DLLVM_TEMPORARILY_ALLOW_OLD_TOOLCHAIN=TRUE
-DLLVM_TARGETS_TO_BUILD="PowerPC;NVPTX" ../llvm

Itaru.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/openmp-dev/attachments/20190606/1e77150f/attachment.html>


More information about the Openmp-dev mailing list