From ac4f8e1d5257e752682cd4dcc9e5f35d0f62362e Mon Sep 17 00:00:00 2001 From: Justin Lebar Date: Tue, 22 Nov 2016 23:13:29 +0000 Subject: [PATCH] [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 --- docs/CompileCudaWithLLVM.rst | 4 ++++ 1 file changed, 4 insertions(+) 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``. -- 2.50.1