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
change
sglang
Commits
c1dd773c
Unverified
Commit
c1dd773c
authored
Apr 11, 2025
by
Yineng Zhang
Committed by
GitHub
Apr 11, 2025
Browse files
fix: use fa3 unit test on hopper only (#5304)
parent
6f859379
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
sgl-kernel/tests/test_flash_attention.py
sgl-kernel/tests/test_flash_attention.py
+1
-1
No files found.
sgl-kernel/tests/test_flash_attention.py
View file @
c1dd773c
...
...
@@ -17,7 +17,7 @@ def is_fa3_supported(device=None) -> bool:
# https://docs.nvidia.com/cuda/cuda-c-programming-guide/#shared-memory-8-x
# now sgl-kernel only build fa3 for sm90a && cuda >= 12.4
return
(
(
torch
.
cuda
.
get_device_capability
(
device
)[
0
]
>
=
9
)
(
torch
.
cuda
.
get_device_capability
(
device
)[
0
]
=
=
9
)
and
(
torch
.
version
.
cuda
>=
"12.4"
)
# or torch.cuda.get_device_capability(device) == (8, 0)
# or torch.cuda.get_device_capability(device) == (8, 7)
...
...
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