Skip to content

Commit d055579

Browse files
zhyncsjimoosciuc
authored andcommitted
fix: enable fp4 compilation on cu128 (sgl-project#5286)
1 parent 68907d2 commit d055579

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

sgl-kernel/CMakeLists.txt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ if (SGL_KERNEL_ENABLE_FP8)
145145
)
146146
endif()
147147

148-
if (SGL_KERNEL_ENABLE_FP4)
148+
if ("${CUDA_VERSION}" VERSION_GREATER_EQUAL "12.8" OR SGL_KERNEL_ENABLE_FP4)
149149
list(APPEND SGL_KERNEL_CUDA_FLAGS
150150
"-DENABLE_NVFP4=1"
151151
)
@@ -253,10 +253,7 @@ if (BUILD_FA3)
253253
FLASHATTENTION_DISABLE_SM8x
254254
FLASHATTENTION_DISABLE_BACKWARD
255255
FLASHATTENTION_DISABLE_DROPOUT
256-
# FLASHATTENTION_DISABLE_ALIBI
257-
# FLASHATTENTION_DISABLE_SOFTCAP
258256
FLASHATTENTION_DISABLE_UNEVEN_K
259-
# FLASHATTENTION_DISABLE_LOCAL
260257
FLASHATTENTION_VARLEN_ONLY
261258
)
262259
endif()

0 commit comments

Comments
 (0)