From 108098ff45c3ee1493297e3e87a8c82cb1a77b3d Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 13 Jun 2019 23:57:16 +0800 Subject: modify cuda docs --- README.md | 7 +++++-- zh/README.md | 6 ++++-- 2 files changed, 9 insertions(+), 4 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") ``` +

+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)`. +

+ xmake will detect Cuda SDK automatically and we can also set the SDK directory manually. ```console diff --git a/zh/README.md b/zh/README.md index 60cf8f0d..ec3b3ca3 100644 --- a/zh/README.md +++ b/zh/README.md @@ -453,8 +453,6 @@ $ xmake ``` ```lua --- add helper function add_cugencodes -includes('add_cugencodes.lua') -- define target target("cuda_console") set_kind("binary") @@ -465,6 +463,10 @@ target("cuda_console") add_cugencodes("compute_30") ``` +

+从v2.2.7版本开始,默认构建会启用device-link,@see https://devblogs.nvidia.com/separate-compilation-linking-cuda-device-code/ +如果要显示禁用device-link,可以通过`add_values("cuda.devlink", false)` 来设置。 +

默认会自动探测cuda环境,当然也可以指定Cuda SDK环境目录: -- cgit v1.2.3