[llvm] r280868 - [CUDA] Clarify that -l and -L only need to be passed when linking, in CompileCudaWithLLVM.rst.

Justin Lebar via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 7 14:46:49 PDT 2016


Author: jlebar
Date: Wed Sep  7 16:46:49 2016
New Revision: 280868

URL: http://llvm.org/viewvc/llvm-project?rev=280868&view=rev
Log:
[CUDA] Clarify that -l and -L only need to be passed when linking, in CompileCudaWithLLVM.rst.

Modified:
    llvm/trunk/docs/CompileCudaWithLLVM.rst

Modified: llvm/trunk/docs/CompileCudaWithLLVM.rst
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/docs/CompileCudaWithLLVM.rst?rev=280868&r1=280867&r2=280868&view=diff
==============================================================================
--- llvm/trunk/docs/CompileCudaWithLLVM.rst (original)
+++ llvm/trunk/docs/CompileCudaWithLLVM.rst Wed Sep  7 16:46:49 2016
@@ -81,6 +81,11 @@ brackets as described below:
 
   You can pass ``--cuda-gpu-arch`` multiple times to compile for multiple archs.
 
+The `-L` and `-l` flags only need to be passed when linking.  When compiling,
+you may also need to pass ``--cuda-path=/path/to/cuda`` if you didn't install
+the CUDA SDK into ``/usr/local/cuda``, ``/usr/local/cuda-7.0``, or
+``/usr/local/cuda-7.5``.
+
 Flags that control numerical code
 ---------------------------------
 




More information about the llvm-commits mailing list