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

Biesbroeck, J.P.A. via cfe-dev cfe-dev at lists.llvm.org
Tue May 10 04:03:55 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/cfe-dev/attachments/20160510/ffc03cb9/attachment.html>


More information about the cfe-dev mailing list