Ahmed ElTantawy via llvm-dev
2016-Jan-20 04:03 UTC
[llvm-dev] Executing OpenMP 4.0 code on Nvidia's GPU
Hi Alexey, I was actually using clang-omp. As I pointed in my email, I went through the steps from this same link ( https://parallel-computing.pro/index.php/9-cuda/43-openmp-4-0-on-nvidia-cuda-gpus), and I still get this linking error. On Tue, Jan 19, 2016 at 7:08 PM, Bataev, Alexey <a.bataev at gmx.com> wrote:> Hi, > Did you tried it on clang/LLVM built from trunk? Trunk version does not > support offloading yet (it is under development now). Use clang/LLVM from > clang-omp.github.com, as pointed in > https://parallel-computing.pro/index.php/9-cuda/43-openmp-4-0-on-nvidia-cuda-gpus > > Best regards, > Alexey Bataev > ============> Software Engineer > Intel Compiler Team > Intel Corp. > > 20.01.2016 1:42, Ahmed ElTantawy via llvm-dev пишет: > > 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/b820ee4c/attachment.html>