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
5aca153d
Commit
5aca153d
authored
Jan 14, 2024
by
Tri Dao
Browse files
Move bwd preprocess kernels to a separate file
parent
df1418f9
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
378 additions
and
356 deletions
+378
-356
csrc/flash_attn/src/flash_bwd_kernel.h
csrc/flash_attn/src/flash_bwd_kernel.h
+0
-356
csrc/flash_attn/src/flash_bwd_launch_template.h
csrc/flash_attn/src/flash_bwd_launch_template.h
+1
-0
csrc/flash_attn/src/flash_bwd_preprocess_kernel.h
csrc/flash_attn/src/flash_bwd_preprocess_kernel.h
+377
-0
No files found.
csrc/flash_attn/src/flash_bwd_kernel.h
View file @
5aca153d
This diff is collapsed.
Click to expand it.
csrc/flash_attn/src/flash_bwd_launch_template.h
View file @
5aca153d
...
@@ -8,6 +8,7 @@
...
@@ -8,6 +8,7 @@
#include "static_switch.h"
#include "static_switch.h"
#include "flash.h"
#include "flash.h"
#include "flash_bwd_preprocess_kernel.h"
#include "flash_bwd_kernel.h"
#include "flash_bwd_kernel.h"
template
<
bool
Clear_dQaccum
=
true
,
typename
Kernel_traits
>
template
<
bool
Clear_dQaccum
=
true
,
typename
Kernel_traits
>
...
...
csrc/flash_attn/src/flash_bwd_preprocess_kernel.h
0 → 100644
View file @
5aca153d
This diff is collapsed.
Click to expand it.
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