summaryrefslogtreecommitdiff
path: root/xmake/rules
diff options
context:
space:
mode:
authorOpportunityLiu <[email protected]>2025-12-01 12:47:59 +0800
committerOpportunityLiu <[email protected]>2025-12-01 12:47:59 +0800
commit4846ee47d9f0bbe2cf05daa6e4fbbdd202cd86da (patch)
treee9e7e1244ee4c525b38655ea900c5f50ac87ee26 /xmake/rules
parentc7e1e6519762517d87e366a9ec7569aa49273f48 (diff)
feat: add support for cuda 11~13; update templates and examples
Diffstat (limited to 'xmake/rules')
-rw-r--r--xmake/rules/cuda/gencodes/xmake.lua6
1 files changed, 4 insertions, 2 deletions
diff --git a/xmake/rules/cuda/gencodes/xmake.lua b/xmake/rules/cuda/gencodes/xmake.lua
index 902e932db..0da3deb56 100644
--- a/xmake/rules/cuda/gencodes/xmake.lua
+++ b/xmake/rules/cuda/gencodes/xmake.lua
@@ -43,8 +43,10 @@ rule("cuda.gencodes")
-- sm_20 and compute_20 is supported until CUDA 8
-- sm_30 and compute_30 is supported until CUDA 10
- local known_v_archs = hashset.of(20, 30, 32, 35, 37, 50, 52, 53, 60, 61, 62, 70, 72, 75, 80, 86, 87, 89, 90)
- local known_r_archs = hashset.of(20, 30, 32, 35, 37, 50, 52, 53, 60, 61, 62, 70, 72, 75, 80, 86, 87, 89, 90)
+ -- sm_37 and compute_37 is supported until CUDA 11
+ -- sm_72 and compute_72 is supported until CUDA 12
+ local known_v_archs = hashset.of(20, 30, 32, 35, 37, 50, 52, 53, 60, 61, 62, 70, 72, 75, 80, 86, 87, 89, 90, 100, 103, 110, 120, 121)
+ local known_r_archs = hashset.of(20, 30, 32, 35, 37, 50, 52, 53, 60, 61, 62, 70, 72, 75, 80, 86, 87, 89, 90, 100, 103, 110, 120, 121)
local function nf_cugencode(archs)
if type(archs) ~= "string" then