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

Biesbroeck, J.P.A. via Openmp-dev openmp-dev at lists.llvm.org
Tue May 10 04:04:31 PDT 2016


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?


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/openmp-dev/attachments/20160510/5b1ac3c7/attachment.html>


More information about the Openmp-dev mailing list