[llvm-dev] Executing OpenMP 4.0 code on Nvidia's GPU
Ahmed ElTantawy via llvm-dev
llvm-dev at lists.llvm.org
Wed Jan 20 05:44:28 PST 2016
Hi,
I see now that the linking happens at the binary level. I was wondering
whether it is possible to link to the OpenMP runtime library at the LLVM IR
level (to enable LTO optimizations for the code after library calls has
been replaced).
I have done this before by linking to the bitcode of a file that contains
the compiled CUDA implementation of the OpenMP runtime library. But it was
a bit hacky, and offloading was not supported yet. Is it there a
cleaner/standard way to do this ?
Thanks.
On Wed, Jan 20, 2016 at 5:09 AM, Ahmed ElTantawy <ahmede at ece.ubc.ca> wrote:
> Hi Arpith,
>
> That is exactly what it is :).
>
> My bad, I thought I copied over the libraries to where LIBRARY_PATH
> pointing but apparently it was copied to a wrong destination.
>
> Thanks a lot.
>
> On Wed, Jan 20, 2016 at 4:51 AM, Arpith C Jacob <acjacob at us.ibm.com>
> wrote:
>
>> Hi Ahmed,
>>
>> nvlink is unable to find the GPU OMP runtime library in its path. Does
>> LIBRARY_PATH point to the right location? You could try passing the "-v"
>> option to clang to get more information.
>>
>> Regards,
>> Arpith
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160120/51e5d184/attachment.html>
More information about the llvm-dev
mailing list