Commit 9b1b011b authored by Eric Engelhart's avatar Eric Engelhart
Browse files

Add C++17 arg to compiler, since C++17 features are used, fixes windows build

parent 9d7fd5b6
...@@ -125,10 +125,11 @@ ext_modules.append( ...@@ -125,10 +125,11 @@ ext_modules.append(
"csrc/flash_attn/src/fmha_block_dgrad_fp16_kernel_loop.sm80.cu", "csrc/flash_attn/src/fmha_block_dgrad_fp16_kernel_loop.sm80.cu",
], ],
extra_compile_args={ extra_compile_args={
"cxx": ["-O3"] + generator_flag, "cxx": ["-O3", "-std=c++17"] + generator_flag,
"nvcc": append_nvcc_threads( "nvcc": append_nvcc_threads(
[ [
"-O3", "-O3",
"-std=c++17",
"-U__CUDA_NO_HALF_OPERATORS__", "-U__CUDA_NO_HALF_OPERATORS__",
"-U__CUDA_NO_HALF_CONVERSIONS__", "-U__CUDA_NO_HALF_CONVERSIONS__",
"--expt-relaxed-constexpr", "--expt-relaxed-constexpr",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment