aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorruki <waruqi@gmail.com>2019-06-13 23:57:16 +0800
committerruki <waruqi@gmail.com>2019-06-13 17:43:38 +0800
commit108098ff45c3ee1493297e3e87a8c82cb1a77b3d (patch)
tree5c740dd152441c18a9e2fe7940fb90f403abeb91 /README.md
parenta45c2350f8e8769f2b25c75beec8b354cb0c8bd1 (diff)
downloadxmake-docs-108098ff45c3ee1493297e3e87a8c82cb1a77b3d.tar.gz
xmake-docs-108098ff45c3ee1493297e3e87a8c82cb1a77b3d.zip
modify cuda docs
Diffstat (limited to 'README.md')
-rw-r--r--README.md7
1 files changed, 5 insertions, 2 deletions
diff --git a/README.md b/README.md
index f265d7c7..ceca7261 100644
--- a/README.md
+++ b/README.md
@@ -423,8 +423,6 @@ $ xmake
```
```lua
--- add helper function add_cugencodes
-includes('add_cugencodes.lua')
-- define target
target("cuda_console")
set_kind("binary")
@@ -435,6 +433,11 @@ target("cuda_console")
add_cugencodes("compute_30")
```
+<p class="tip">
+Starting with v2.2.7, the default build will enable device-link, @see https://devblogs.nvidia.com/separate-compilation-linking-cuda-device-code/
+If you want to disable device-link, you can set it with `add_values("cuda.devlink", false)`.
+</p>
+
xmake will detect Cuda SDK automatically and we can also set the SDK directory manually.
```console