[llvm] r287715 - [CUDA] Note in docs that you need to build with -lcudart on MacOS

Justin Lebar via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 22 15:13:29 PST 2016


Author: jlebar
Date: Tue Nov 22 17:13:29 2016
New Revision: 287715

URL: http://llvm.org/viewvc/llvm-project?rev=287715&view=rev
Log:
[CUDA] Note in docs that you need to build with -lcudart on MacOS

-lcudart_static doesn't work.  We don't know why.

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=287715&r1=287714&r2=287715&view=diff
==============================================================================
--- llvm/trunk/docs/CompileCudaWithLLVM.rst (original)
+++ llvm/trunk/docs/CompileCudaWithLLVM.rst Tue Nov 22 17:13:29 2016
@@ -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``.
 




More information about the llvm-commits mailing list