From 4846ee47d9f0bbe2cf05daa6e4fbbdd202cd86da Mon Sep 17 00:00:00 2001 From: OpportunityLiu Date: Mon, 1 Dec 2025 12:47:59 +0800 Subject: feat: add support for cuda 11~13; update templates and examples --- xmake/modules/lib/detect/find_cudadevices.lua | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'xmake/modules') diff --git a/xmake/modules/lib/detect/find_cudadevices.lua b/xmake/modules/lib/detect/find_cudadevices.lua index 0f459c711..a6ae606a6 100644 --- a/xmake/modules/lib/detect/find_cudadevices.lua +++ b/xmake/modules/lib/detect/find_cudadevices.lua @@ -228,6 +228,7 @@ end function _order_by_flops(devices) + -- See https://github.com/NVIDIA/cuda-samples/blob/master/Common/helper_cuda_drvapi.h#L100 local ngpu_arch_cores_per_sm = { [30] = 192 @@ -248,6 +249,11 @@ function _order_by_flops(devices) , [87] = 128 , [89] = 128 , [90] = 128 + , [100] = 128 + , [103] = 128 + , [110] = 128 + , [120] = 128 + , [121] = 128 } for _, dev in ipairs(devices) do -- cgit v1.3.1