<div dir="ltr"><div><div><div>Hi,<br><br></div>I was trying to execute an OpenMP 4.0 code on GPU with the offloading supported now. I went through the steps described <a href="https://parallel-computing.pro/index.php/9-cuda/43-openmp-4-0-on-nvidia-cuda-gpus" target="_blank">here</a>. But I get these linking errors during compilation:<br><br><br>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<br>ptxas warning : Too big maxrregcount value specified 64, will be ignored<br>nvlink error   : Undefined reference to '__kmpc_kernel_init' in '/tmp/example-87866c-36d3a6.cubin'<br>nvlink error   : Undefined reference to '__kmpc_for_static_init_4' in '/tmp/example-87866c-36d3a6.cubin'<br>nvlink error   : Undefined reference to '__kmpc_for_static_fini' in '/tmp/example-87866c-36d3a6.cubin'<br>clang-3.8: error: nvlink command failed with exit code 255 (use -v to see invocation)<br><br><br></div>Any pointer, where the problem could be ?<br><br></div>Thanks a lot.</div>