[llvm-dev] cuda .cu compile error
Nancy via llvm-dev
llvm-dev at lists.llvm.org
Thu Apr 11 21:46:57 PDT 2019
Dear list,
In cygwin, I encounter a problem below, any ideas?
$clang++ -O0 -g --cuda-gpu-arch=sm_35 -o vectorAddSimple2
vectorAddSimple2.cu --cuda-path='/cygdrive/c/Program Files/NVIDIA GPU
Computing Toolkit/CUDA/v10.1/' -L'/cygdrive/c/Program Files/NVIDIA GPU
Computing Toolkit/CUDA/v10.1/lib/x64/' -lcudart -save-temps -v
clang version 8.0.1
Target: i686-pc-windows-msvc
Thread model: posix
InstalledDir: C:\cygwin64\home\nancy\rpp_llvm\build_latest\Debug\bin
clang++: error: cannot find libdevice for sm_35. Provide path to different
CUDA installation via --cuda-path, or pass -nocudalib to build without
linking with libdevice.
clang++: error: cannot find CUDA installation. Provide its path via
--cuda-path, or pass -nocudainc to build without CUDA includes.
clang++: error: cannot find libdevice for sm_35. Provide path to different
CUDA installation via --cuda-path, or pass -nocudalib to build without
linking with libdevice.
clang++: error: cannot find libdevice for sm_35. Provide path to different
CUDA installation via --cuda-path, or pass -nocudalib to build without
linking with libdevice.
clang++: error: cannot find CUDA installation. Provide its path via
--cuda-path, or pass -nocudainc to build without CUDA includes.
It works fine in linux.
$clang++ -O0 -g --cuda-gpu-arch=sm_35 --cuda-path=/usr/local/cuda -o
vectorAddSimple2 vectorAddSimple2.cu -L/usr/local/cuda/lib64 -lcudart
-save-temps -v
--
Best Regards,
Nancy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20190412/821f44af/attachment.html>
More information about the llvm-dev
mailing list