[PATCH] D14370: [doc] Compile CUDA with LLVM

Artem Belevich via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 10 13:32:29 PST 2015


tra added inline comments.

================
Comment at: docs/CompileCudaWithLLVM.rst:129
@@ +128,3 @@
+
+  $ clang++ -o axpy -I<CUDA install path>/include -I<CUDA install path>/samples/common/inc -L<CUDA install path>/<lib64 or lib> axpy.cu -lcudart_static -lcuda -ldl -lrt -pthread
+  $ ./axpy
----------------
tra wrote:
> "-I<CUDA install path>/include" -- unnecessary. clang would add it.
> 
> You also need to add -std=c++11 in order to use nullptr.
> 
> I've also found a weird issue with my patch -- without optimizations, kernel launch fails (silently in your example). For the time being compile with -O2. I'll find and fix the problem ASAP.
> 
False alarm about the bug. The failure was due to my local changes. The patch mentioned in the doc appears to work fine.


http://reviews.llvm.org/D14370





More information about the llvm-commits mailing list