summaryrefslogtreecommitdiffstats
path: root/llvm/docs/CompileCudaWithLLVM.rst
diff options
context:
space:
mode:
authorJustin Lebar <jlebar@google.com>2016-11-22 23:13:29 +0000
committerJustin Lebar <jlebar@google.com>2016-11-22 23:13:29 +0000
commite8c45e9f50db5fb28102aef6b444676076150766 (patch)
treee0e067689cba725dd123d3c40f767eac4e951ce0 /llvm/docs/CompileCudaWithLLVM.rst
parent3cc93d7a5338dd97ccc82ce2b30bc12bb948a961 (diff)
downloadbcm5719-llvm-e8c45e9f50db5fb28102aef6b444676076150766.tar.gz
bcm5719-llvm-e8c45e9f50db5fb28102aef6b444676076150766.zip
[CUDA] Note in docs that you need to build with -lcudart on MacOS
-lcudart_static doesn't work. We don't know why. llvm-svn: 287715
Diffstat (limited to 'llvm/docs/CompileCudaWithLLVM.rst')
-rw-r--r--llvm/docs/CompileCudaWithLLVM.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/docs/CompileCudaWithLLVM.rst b/llvm/docs/CompileCudaWithLLVM.rst
index 8b29624d65d..af681aeead6 100644
--- a/llvm/docs/CompileCudaWithLLVM.rst
+++ b/llvm/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.
+
* ``<CUDA install path>`` -- the directory where you installed CUDA SDK.
Typically, ``/usr/local/cuda``.
OpenPOWER on IntegriCloud