]> granicus.if.org Git - llvm/commitdiff
[CUDA] Note in docs that you need to build with -lcudart on MacOS
authorJustin Lebar <jlebar@google.com>
Tue, 22 Nov 2016 23:13:29 +0000 (23:13 +0000)
committerJustin Lebar <jlebar@google.com>
Tue, 22 Nov 2016 23:13:29 +0000 (23:13 +0000)
-lcudart_static doesn't work.  We don't know why.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@287715 91177308-0d34-0410-b5e6-96231b3b80d8

docs/CompileCudaWithLLVM.rst

index 8b29624d65d099bc6aa9a45fd5b51d24cc79303b..af681aeead662dcdcb3c9e0c3744df32b0e6a86b 100644 (file)
@@ -63,6 +63,10 @@ brackets as described below:
   y[2] = 6
   y[3] = 8
 
+On MacOS, replace `-lcudart_static` with `-lcudart`; otherwise, you may get
+"CUDA driver version is insufficient for CUDA runtime version" errors when you
+run your program.
+
 * ``<CUDA install path>`` -- the directory where you installed CUDA SDK.
   Typically, ``/usr/local/cuda``.