Skip to content

Commit 8bc16f4

Browse files
committed
Need to drop Volta (sm_70) support from CUDA 13.0
1 parent 0c60e6a commit 8bc16f4

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

‎src/common.mk‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,14 @@ CUDA_MINOR = $(shell echo $(CUDA_VERSION) | cut -d "." -f 2)
1919

2020
# Better define NVCC_GENCODE in your environment to the minimal set
2121
# of archs to reduce compile time.
22-
ifeq ($(shell test "0$(CUDA_MAJOR)" -eq 12 -a "0$(CUDA_MINOR)" -ge 8 -o "0$(CUDA_MAJOR)" -ge 13; echo $$?),0)
22+
ifeq ($(shell test "0$(CUDA_MAJOR)" -ge 13; echo $$?),0)
23+
# Add Blackwell but drop Volta support if we're using CUDA13.0 or above
24+
NVCC_GENCODE ?= -gencode=arch=compute_80,code=sm_80 \
25+
-gencode=arch=compute_90,code=sm_90 \
26+
-gencode=arch=compute_100,code=sm_100 \
27+
-gencode=arch=compute_120,code=sm_120 \
28+
-gencode=arch=compute_120,code=compute_120
29+
else ifeq ($(shell test "0$(CUDA_MAJOR)" -eq 12 -a "0$(CUDA_MINOR)" -ge 8; echo $$?),0)
2330
# Include Blackwell support if we're using CUDA12.8 or above
2431
NVCC_GENCODE ?= -gencode=arch=compute_70,code=sm_70 \
2532
-gencode=arch=compute_80,code=sm_80 \

0 commit comments

Comments
 (0)