OSDN Git Service

[CUDA] Clarify that -l and -L only need to be passed when linking, in CompileCudaWith...
authorJustin Lebar <jlebar@google.com>
Wed, 7 Sep 2016 21:46:49 +0000 (21:46 +0000)
committerJustin Lebar <jlebar@google.com>
Wed, 7 Sep 2016 21:46:49 +0000 (21:46 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@280868 91177308-0d34-0410-b5e6-96231b3b80d8

docs/CompileCudaWithLLVM.rst

index a7f41ed..1751bfb 100644 (file)
@@ -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
 ---------------------------------