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
512c98ee
Commit
512c98ee
authored
Jun 02, 2022
by
Tri Dao
Browse files
Add Cutlass as submodule
parent
ad6c694b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
0 deletions
+6
-0
.gitmodules
.gitmodules
+3
-0
csrc/flash_attn/cutlass
csrc/flash_attn/cutlass
+1
-0
setup.py
setup.py
+2
-0
No files found.
.gitmodules
0 → 100644
View file @
512c98ee
[submodule "csrc/flash_attn/cutlass"]
path = csrc/flash_attn/cutlass
url = https://github.com/NVIDIA/cutlass.git
cutlass
@
319a389f
Subproject commit 319a389f42b776fae5701afcb943fc03be5b5c25
setup.py
View file @
512c98ee
...
...
@@ -111,6 +111,7 @@ if int(bare_metal_major) < 11:
cc_flag
.
append
(
"-gencode"
)
cc_flag
.
append
(
"arch=compute_80,code=sm_80"
)
subprocess
.
run
([
"git"
,
"submodule"
,
"update"
,
"--init"
,
"csrc/flash_attn/cutlass"
])
ext_modules
.
append
(
CUDAExtension
(
name
=
"flash_attn_cuda"
,
...
...
@@ -141,6 +142,7 @@ ext_modules.append(
include_dirs
=
[
Path
(
this_dir
)
/
'csrc'
/
'flash_attn'
,
Path
(
this_dir
)
/
'csrc'
/
'flash_attn'
/
'src'
,
Path
(
this_dir
)
/
'csrc'
/
'flash_attn'
/
'cutlass'
/
'include'
,
],
)
)
...
...
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