aboutsummaryrefslogtreecommitdiff
path: root/zh
diff options
context:
space:
mode:
authorOpportunityLiu <opportunity@live.in>2019-06-02 17:47:29 +0800
committerOpportunityLiu <opportunity@live.in>2019-06-02 17:47:29 +0800
commit94f53689aa201025bd7e384197320dcf0889c022 (patch)
treedf6b5867ea6e2a8ee9e66914a85103f2f7b21c95 /zh
parentbdbc1feba90e0155b15bb488596612c3f5ac2d23 (diff)
downloadxmake-docs-94f53689aa201025bd7e384197320dcf0889c022.tar.gz
xmake-docs-94f53689aa201025bd7e384197320dcf0889c022.zip
update doc with new name of add_cugencodes
Diffstat (limited to 'zh')
-rw-r--r--zh/README.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/zh/README.md b/zh/README.md
index db25f4bb..8bdddeb2 100644
--- a/zh/README.md
+++ b/zh/README.md
@@ -453,16 +453,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")
```