[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

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

$ clang ~/pi-gpu.c -fopenmp -fopenmp-targets=nvptx64-nvidia-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

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}

-------------- 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