<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi,<br>
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
<a class="moz-txt-link-freetext" href="https://parallel-computing.pro/index.php/9-cuda/43-openmp-4-0-on-nvidia-cuda-gpus">
</a><a class="moz-txt-link-freetext" href="https://parallel-computing.pro/index.php/9-cuda/43-openmp-4-0-on-nvidia-cuda-gpus">https://parallel-computing.pro/index.php/9-cuda/43-openmp-4-0-on-nvidia-cuda-gpus</a>
<br>
<pre class="moz-signature" cols="72">Best regards,
Alexey Bataev
=============
Software Engineer
Intel Compiler Team</pre>
Hi,<br>
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
<a class="moz-txt-link-freetext" href="https://parallel-computing.pro/index.php/9-cuda/43-openmp-4-0-on-nvidia-cuda-gpus">
</a><a class="moz-txt-link-freetext" href="https://parallel-computing.pro/index.php/9-cuda/43-openmp-4-0-on-nvidia-cuda-gpus">https://parallel-computing.pro/index.php/9-cuda/43-openmp-4-0-on-nvidia-cuda-gpus</a>
<div class="moz-cite-prefix">20.01.2016 1:42, Ahmed ElTantawy via llvm-dev пишет:<br>
</div>
<blockquote cite="mid:%3CCANPV2MMwoR=-CV2FUcsO4Qjfp8a9ETqyh1or4QADmrhJTZmU2g@mail.gmail.com%3E" type="cite">
<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 moz-do-not-send="true" 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>
</blockquote>
<br>
</body>
</html>