[Compilation] Add _NO_HALF2 flags to be consistent with Pytorch

eb7b89771e/cmake/Dependencies.cmake (L1693)
This commit is contained in:
Tri Dao 2023-01-12 22:15:41 -08:00
parent f95c2fc108
commit d509832426

View File

@ -136,6 +136,8 @@ ext_modules.append(
"-std=c++17",
"-U__CUDA_NO_HALF_OPERATORS__",
"-U__CUDA_NO_HALF_CONVERSIONS__",
"-U__CUDA_NO_HALF2_OPERATORS__",
"-U__CUDA_NO_BFLOAT16_CONVERSIONS__",
"--expt-relaxed-constexpr",
"--expt-extended-lambda",
"--use_fast_math",