From: Justin Lebar Date: Tue, 22 Nov 2016 23:13:29 +0000 (+0000) Subject: [CUDA] Note in docs that you need to build with -lcudart on MacOS X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ac4f8e1d5257e752682cd4dcc9e5f35d0f62362e;p=llvm [CUDA] Note in docs that you need to build with -lcudart on MacOS -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 --- diff --git a/docs/CompileCudaWithLLVM.rst b/docs/CompileCudaWithLLVM.rst index 8b29624d65d..af681aeead6 100644 --- a/docs/CompileCudaWithLLVM.rst +++ b/docs/CompileCudaWithLLVM.rst @@ -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. + * ```` -- the directory where you installed CUDA SDK. Typically, ``/usr/local/cuda``.