aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/README.md b/README.md
index 7e806945..528193fd 100644
--- a/README.md
+++ b/README.md
@@ -423,16 +423,16 @@ $ xmake
```
```lua
--- add helper function add_cugencode
-includes('add_cugencode.lua')
+-- add helper function add_cugencodes
+includes('add_cugencodes.lua')
-- define target
target("cuda_console")
set_kind("binary")
add_files("src/*.cu")
-- generate SASS code for SM architecture of current host
- add_cugencode("native")
+ add_cugencodes("native")
-- generate PTX code for the virtual architecture to guarantee compatibility
- add_cugencode("compute_30")
+ add_cugencodes("compute_30")
```
xmake will detect Cuda SDK automatically and we can also set the SDK directory manually.