Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
flash-attention
Commits
9b1b011b
Commit
9b1b011b
authored
Oct 03, 2022
by
Eric Engelhart
Browse files
Add C++17 arg to compiler, since C++17 features are used, fixes windows build
parent
9d7fd5b6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
setup.py
setup.py
+2
-1
No files found.
setup.py
View file @
9b1b011b
...
@@ -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"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment