[Openmp-dev] ptxas fatal : Cannot take address of function '__pthread_key_create'

Itaru Kitayama via Openmp-dev openmp-dev at lists.llvm.org
Sun Sep 2 00:51:00 PDT 2018


Hi,
I am trying to build an application that can do OpenMP offloading on a
POWER8 + P100 system using the latest LLVM/Clang toolchain (openmp
is too the latest).

The build error is:
[  3%] Building CXX object sli/CMakeFiles/sli_lib.dir/arraydatum.cc.o
cd /gpfs/work/pcp0/pcp0151/build/nest-clang-upstream/sli &&
/gpfs/work/pcp0/pcp0151/opt/llvm+clang-upstream/bin/clang++
-Dsli_lib_EXPORTS -I/bgsys/drivers/ppcfloor/comm/gcc/include
-I/gpfs/software/opt/gsl/2.4/include
-I/gpfs/homeb/pcp0/pcp0151/projects/nest-simulator/libnestutil
-I/gpfs/work/pcp0/pcp0151/build/nest-clang-upstream/libnestutil  -std=c++11
-O2 -Wall -fopenmp -fopenmp-targets=nvptx64-nvidia-cuda
--cuda-path=/gpfs/software/opt/cuda/9.2.88  -fPIC   -o
CMakeFiles/sli_lib.dir/arraydatum.cc.o -c
/gpfs/homeb/pcp0/pcp0151/projects/nest-simulator/sli/arraydatum.cc
ptxas fatal   : Cannot take address of function '__pthread_key_create'
clang-8: error: ptxas command failed with exit code 255 (use -v to see
invocation)
make[2]: *** [sli/CMakeFiles/sli_lib.dir/arraydatum.cc.o] Error 255
make[2]: Leaving directory
`/gpfs/work/pcp0/pcp0151/build/nest-clang-upstream'
make[1]: *** [sli/CMakeFiles/sli_lib.dir/all] Error 2
make[1]: Leaving directory
`/gpfs/work/pcp0/pcp0151/build/nest-clang-upstream'
make: *** [all] Error 2

The CUDA toolkit is 9.2.88, is it possible the error is fixed in the
latest toolkit?

Thanks,
Itaru.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/openmp-dev/attachments/20180902/7114a3dc/attachment.html>


More information about the Openmp-dev mailing list