Disable FA3 sparse mask kernels by default (#30356)
This commit is contained in:
@@ -174,6 +174,7 @@ option(SGL_KERNEL_ENABLE_BF16 "Enable BF16" ON)
|
|||||||
option(SGL_KERNEL_ENABLE_FP8 "Enable FP8" ON)
|
option(SGL_KERNEL_ENABLE_FP8 "Enable FP8" ON)
|
||||||
option(SGL_KERNEL_ENABLE_FP4 "Enable FP4" OFF)
|
option(SGL_KERNEL_ENABLE_FP4 "Enable FP4" OFF)
|
||||||
option(SGL_KERNEL_ENABLE_FA3 "Enable FA3" ${DEFAULT_SGL_KERNEL_ENABLE_FA3})
|
option(SGL_KERNEL_ENABLE_FA3 "Enable FA3" ${DEFAULT_SGL_KERNEL_ENABLE_FA3})
|
||||||
|
option(SGL_KERNEL_ENABLE_FA3_SPARSE_MASK "Enable FA3 sparse mask kernels" OFF)
|
||||||
option(SGL_KERNEL_ENABLE_SM90A "Enable SM90A" OFF)
|
option(SGL_KERNEL_ENABLE_SM90A "Enable SM90A" OFF)
|
||||||
option(SGL_KERNEL_ENABLE_SM100A "Enable SM100A" OFF)
|
option(SGL_KERNEL_ENABLE_SM100A "Enable SM100A" OFF)
|
||||||
|
|
||||||
@@ -472,6 +473,9 @@ if (SGL_KERNEL_ENABLE_FA3)
|
|||||||
if(NOT ENABLE_BELOW_SM90)
|
if(NOT ENABLE_BELOW_SM90)
|
||||||
list(APPEND FLASH_OPS_COMPILE_DEFS FLASHATTENTION_DISABLE_SM8x)
|
list(APPEND FLASH_OPS_COMPILE_DEFS FLASHATTENTION_DISABLE_SM8x)
|
||||||
endif()
|
endif()
|
||||||
|
if(NOT SGL_KERNEL_ENABLE_FA3_SPARSE_MASK)
|
||||||
|
list(APPEND FLASH_OPS_COMPILE_DEFS FLASHATTENTION_DISABLE_SPARSE_MASK)
|
||||||
|
endif()
|
||||||
target_compile_definitions(flash_ops PRIVATE ${FLASH_OPS_COMPILE_DEFS})
|
target_compile_definitions(flash_ops PRIVATE ${FLASH_OPS_COMPILE_DEFS})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user