<div dir="ltr"><div><div>Hi,<br><br></div>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). <br><br>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 ?<br><br></div>Thanks.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 20, 2016 at 5:09 AM, Ahmed ElTantawy <span dir="ltr"><<a href="mailto:ahmede@ece.ubc.ca" target="_blank">ahmede@ece.ubc.ca</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>Hi Arpith,<br><br></div>That is exactly what it is :). <br><br>My bad, I thought I copied over the libraries to where LIBRARY_PATH pointing but apparently it was copied to a wrong destination.<br><br></div><div>Thanks a lot.<br></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 20, 2016 at 4:51 AM, Arpith C Jacob <span dir="ltr"><<a href="mailto:acjacob@us.ibm.com" target="_blank">acjacob@us.ibm.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><p>Hi Ahmed,<br><br>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.<br><br>Regards,<br>Arpith<br>
</p></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>