[llvm-dev] [GPUCC] link against libdevice
Yuanfeng Peng via llvm-dev
llvm-dev at lists.llvm.org
Fri Jul 29 06:27:34 PDT 2016
Hi,
I was trying to compile scalarProd.cu (from CUDA SDK) with the following
command:
* clang++ -I../ -I/usr/local/cuda-7.0/samples/common/inc
--cuda-gpu-arch=sm_50 scalarProd.cu*
but ended up with the following error:
*ptxas fatal : Unresolved extern function '__nv_mul24'*
Seems to me that libdevice was not automatically linked. I wonder what
flags I need to pass to clang to have the code linked against libdevice?
Thanks!
Yuanfeng Peng
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160729/ffdf3989/attachment.html>
More information about the llvm-dev
mailing list