<div dir="auto">I am not terribly surprised that it doesn't work on cygwin...<div dir="auto"></div><div dir="auto"><br></div><div dir="auto">If you want help patching clang it shouldn't be too hard to get it to parse the contents of the cuda install, which is where it's currently failing. No idea if it will work after you fix that, though.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Apr 11, 2019, 9:47 PM Nancy via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Dear list,</div><div><br></div><div>In cygwin, I encounter a problem below, any ideas?</div><div></div>$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<br>clang version 8.0.1<br>Target: i686-pc-windows-msvc<br>Thread model: posix<br>InstalledDir: C:\cygwin64\home\nancy\rpp_llvm\build_latest\Debug\bin<br>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.<br>clang++: error: cannot find CUDA installation. Provide its path via --cuda-path, or pass -nocudainc to build without CUDA includes.<br>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.<br>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.<br>clang++: error: cannot find CUDA installation. Provide its path via --cuda-path, or pass -nocudainc to build without CUDA includes.<br><br>It works fine in linux.<br>$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<br clear="all"><div dir="ltr"><br>-- <br><div dir="ltr" class="m_4868096948115937620gmail_signature">Best Regards,</div><div class="m_4868096948115937620gmail_signature">Nancy<br></div><div dir="ltr" class="m_4868096948115937620gmail_signature"><br></div></div></div></div></div></div></div></div></div>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org" target="_blank" rel="noreferrer">llvm-dev@lists.llvm.org</a><br>
<a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer noreferrer" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
</blockquote></div>