summaryrefslogtreecommitdiff
path: root/tests/projects/cuda
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 /tests/projects/cuda
parentc7e1e6519762517d87e366a9ec7569aa49273f48 (diff)
feat: add support for cuda 11~13; update templates and examples
Diffstat (limited to 'tests/projects/cuda')
-rw-r--r--tests/projects/cuda/console/xmake.lua5
-rw-r--r--tests/projects/cuda/console_2/xmake.lua2
-rw-r--r--tests/projects/cuda/shared/xmake.lua2
-rw-r--r--tests/projects/cuda/static/xmake.lua2
4 files changed, 5 insertions, 6 deletions
diff --git a/tests/projects/cuda/console/xmake.lua b/tests/projects/cuda/console/xmake.lua
index 15f43c7f9..981d25dc5 100644
--- a/tests/projects/cuda/console/xmake.lua
+++ b/tests/projects/cuda/console/xmake.lua
@@ -6,9 +6,8 @@ target("cuda_console")
add_files("src/*.cu")
-- generate SASS code for each SM architecture
- add_cugencodes("sm_35", "sm_37", "sm_50", "sm_52", "sm_60", "sm_61", "sm_70", "sm_75")
+ add_cugencodes("sm_75", "sm_80", "sm_89", "sm_90", "sm_100")
-- generate PTX code from the highest SM architecture to guarantee forward-compatibility
- add_cugencodes("compute_75")
-
+ add_cugencodes("compute_100")
diff --git a/tests/projects/cuda/console_2/xmake.lua b/tests/projects/cuda/console_2/xmake.lua
index d04aa8856..9ade4cbf4 100644
--- a/tests/projects/cuda/console_2/xmake.lua
+++ b/tests/projects/cuda/console_2/xmake.lua
@@ -1,7 +1,7 @@
add_rules("mode.debug", "mode.release")
-- generate PTX code for the virtual architecture to guarantee compatibility
-add_cugencodes("compute_35")
+add_cugencodes("compute_75")
target("bin")
set_kind("binary")
diff --git a/tests/projects/cuda/shared/xmake.lua b/tests/projects/cuda/shared/xmake.lua
index 590808435..7af1678e4 100644
--- a/tests/projects/cuda/shared/xmake.lua
+++ b/tests/projects/cuda/shared/xmake.lua
@@ -1,7 +1,7 @@
add_rules("mode.debug", "mode.release")
-- generate PTX code for the virtual architecture to guarantee compatibility
-add_cugencodes("compute_30")
+add_cugencodes("compute_75")
target("lib")
set_kind("shared")
diff --git a/tests/projects/cuda/static/xmake.lua b/tests/projects/cuda/static/xmake.lua
index d88cf7964..6783a7484 100644
--- a/tests/projects/cuda/static/xmake.lua
+++ b/tests/projects/cuda/static/xmake.lua
@@ -1,7 +1,7 @@
add_rules("mode.debug", "mode.release")
-- generate PTX code for the virtual architecture to guarantee compatibility
-add_cugencodes("compute_30")
+add_cugencodes("compute_75")
target("lib")
set_kind("static")