[Openmp-dev] CUDA math library cannot be found error

Samuel F Antao via Openmp-dev openmp-dev at lists.llvm.org
Mon May 16 16:49:20 PDT 2016


Let me correct myself,  you should use something like
 /usr/local/cuda/nvvm/libdevice (not  /usr/local/cuda/nvvm/lib as I stated
in my previous email).

Samuel

2016-05-16 18:39 GMT-04:00 Samuel F Antao <sfantao at us.ibm.com>:

> It looks like you are trying to use the compiler in github -
> https://github.com/clang-omp/clang_trunk. The current upstreamed version
> of clang does not have support in the driver for offloading yet. If you
> have questions about the github version is better if you post them there.
>
> About your error, you are probably missing LIBRARY_PATH pointing to where
> libdevice is, usually something like /usr/local/cuda/nvvm/lib. Try 'export
> LIBRARY_PATH=/usr/local/cuda/nvvm/lib' prior to running the compiler.
>
> Regards,
> Samuel
>
>
> 2016-05-10 7:04 GMT-04:00 Biesbroeck, J.P.A. via Openmp-dev <
> openmp-dev at lists.llvm.org>:
>
>> While trying to compile my code, I got the following error:
>>
>>
>>
>> clang -fopenmp -omptargets=nvptx64sm_35-nvidia-linux -g -O3 -std=c99
>> Source.c -o source -L /home/rjordans/openmp4/lib -lm
>>
>> clang-3.8: error: CUDA math library (libdevice) is required and cannot be
>> found.
>>
>>
>>
>> How can I solve this error?
>>
>>
>>
>>
>>
>> _______________________________________________
>> Openmp-dev mailing list
>> Openmp-dev at lists.llvm.org
>> http://lists.llvm.org/cgi-bin/mailman/listinfo/openmp-dev
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/openmp-dev/attachments/20160516/35c3475b/attachment.html>


More information about the Openmp-dev mailing list