summaryrefslogtreecommitdiff
path: root/xmake
diff options
context:
space:
mode:
Diffstat (limited to 'xmake')
-rw-r--r--xmake/includes/add_cugencodes.lua (renamed from xmake/includes/add_cugencode.lua)12
1 files changed, 6 insertions, 6 deletions
diff --git a/xmake/includes/add_cugencode.lua b/xmake/includes/add_cugencodes.lua
index c4ccfe96b..574c7bcb9 100644
--- a/xmake/includes/add_cugencode.lua
+++ b/xmake/includes/add_cugencodes.lua
@@ -15,7 +15,7 @@
-- Copyright (C) 2015 - 2019, TBOOX Open Source Group.
--
-- @author OpportunityLiu
--- @file add_cugencode.lua
+-- @file add_cugencodes.lua
--
-- add cuda `-gencode` flags to target
@@ -32,16 +32,16 @@
-- @seealso xmake/modules/lib/detect/find_cudadevices
--
-- e.g.
--- includes("add_cugencode.lua")
+-- includes("add_cugencodes.lua")
-- target("test")
-- set_kind("binary")
-- add_files("src/*.cu")
--- add_cugencode("native", "compute_50,sm_50", "compute_70")
+-- add_cugencodes("native", "compute_50,sm_50", "compute_70")
--
-- define rule
-rule("cuda.add_gencode")
+rule("cuda.add_gencodes")
before_load(function (target)
local function set (list)
@@ -140,9 +140,9 @@ rule("cuda.add_gencode")
rule_end()
-- add cuda gencode to target
-function add_cugencode(...)
+function add_cugencodes(...)
-- apply rule
- add_rules("cuda.add_gencode")
+ add_rules("cuda.add_gencodes")
add_values("cuda.gencode", ...)
end