Skip to content

Commit 42a5fbd

Browse files
adding preliminary Blackwell support (#51)
* adding priimary Blackwell support * guarding blackwell build against cuda < 12.8 Signed-off-by: Lucas Wilkinson <[email protected]>
1 parent 720c948 commit 42a5fbd

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

CMakeLists.txt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ set(PYTHON_SUPPORTED_VERSIONS "3.8" "3.9" "3.10" "3.11" "3.12")
2323

2424
# Supported NVIDIA architectures.
2525
set(CUDA_SUPPORTED_ARCHS "8.0;8.6;8.9;9.0")
26+
if(${CMAKE_CUDA_COMPILER_VERSION} VERSION_GREATER_EQUAL 12.8)
27+
list(APPEND CUDA_SUPPORTED_ARCHS "10.0" "10.1" "12.0")
28+
endif()
2629

2730
# Supported AMD GPU architectures.
2831
set(HIP_SUPPORTED_ARCHS "gfx906;gfx908;gfx90a;gfx940;gfx941;gfx942;gfx1030;gfx1100")
@@ -132,7 +135,7 @@ if (FA2_ENABLED)
132135

133136
# For CUDA we set the architectures on a per file basis
134137
if (VLLM_GPU_LANG STREQUAL "CUDA")
135-
cuda_archs_loose_intersection(FA2_ARCHS "8.0;9.0" "${CUDA_ARCHS}")
138+
cuda_archs_loose_intersection(FA2_ARCHS "8.0;9.0;10.0;10.1;12.0" "${CUDA_ARCHS}")
136139
message(STATUS "FA2_ARCHS: ${FA2_ARCHS}")
137140

138141
set_gencode_flags_for_srcs(
@@ -190,8 +193,9 @@ if (FA3_ENABLED AND ${CMAKE_CUDA_COMPILER_VERSION} GREATER_EQUAL 12.0)
190193
set(FA3_GEN_SRCS ${FA3_BF16_GEN_SRCS} ${FA3_FP16_GEN_SRCS})
191194

192195
# For CUDA we set the architectures on a per file basis
196+
# FaV3 is not yet supported in Blackwell
193197
if (VLLM_GPU_LANG STREQUAL "CUDA")
194-
cuda_archs_loose_intersection(FA3_ARCHS "8.0;9.0a" "${CUDA_ARCHS}")
198+
cuda_archs_loose_intersection(FA3_ARCHS "8.0;9.0a;" "${CUDA_ARCHS}")
195199
message(STATUS "FA3_ARCHS: ${FA3_ARCHS}")
196200

197201
set_gencode_flags_for_srcs(

0 commit comments

Comments
 (0)