[Hotfix][CI/Build][Kernel] CUDA 11.8 does not support layernorm optimizations (#3782)

This commit is contained in:
Matt Wong
2024-04-08 14:31:02 -07:00
committed by GitHub
parent bc0c0192d1
commit 59a6abf3c9
2 changed files with 6 additions and 2 deletions
+2
View File
@@ -100,6 +100,8 @@ function (get_torch_gpu_compiler_flags OUT_GPU_FLAGS GPU_LANG)
if (CUDA_VERSION VERSION_GREATER_EQUAL 11.8)
list(APPEND GPU_FLAGS "-DENABLE_FP8_E5M2")
endif()
if (CUDA_VERSION VERSION_GREATER_EQUAL 12.0)
list(REMOVE_ITEM GPU_FLAGS
"-D__CUDA_NO_HALF_OPERATORS__"
"-D__CUDA_NO_HALF_CONVERSIONS__"