[llvm-dev] Executing OpenMP 4.0 code on Nvidia's GPU

Ahmed ElTantawy via llvm-dev llvm-dev at lists.llvm.org
Tue Jan 19 14:42:56 PST 2016


Hi,

I was trying to execute an OpenMP 4.0 code on GPU with the offloading
supported now. I went through the steps described here
<https://parallel-computing.pro/index.php/9-cuda/43-openmp-4-0-on-nvidia-cuda-gpus>.
But I get these linking errors during compilation:


LIBRARY_PATH=/home/ahmed/ahmed_home/openmp4/llvm/build/bin/../lib clang-3.8
-fopenmp -omptargets=nvptx64sm_30-nvidia-linux -g -O3 -std=c99 example.c -o
example
ptxas warning : Too big maxrregcount value specified 64, will be ignored
nvlink error   : Undefined reference to '__kmpc_kernel_init' in
'/tmp/example-87866c-36d3a6.cubin'
nvlink error   : Undefined reference to '__kmpc_for_static_init_4' in
'/tmp/example-87866c-36d3a6.cubin'
nvlink error   : Undefined reference to '__kmpc_for_static_fini' in
'/tmp/example-87866c-36d3a6.cubin'
clang-3.8: error: nvlink command failed with exit code 255 (use -v to see
invocation)


Any pointer, where the problem could be ?

Thanks a lot.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160119/5ce01ee4/attachment.html>


More information about the llvm-dev mailing list