-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add conditions to determine triton ws
Summary: This is to improve the ottb UX of the flash_attention operator. Right now it will break because warp spec has not yet upstreamed to main. Add predicates to find out if warp spec is available. Plus, we only enable ThunderKittens in OSS as the fbcode version is outdated. Reviewed By: FindHao Differential Revision: D66402556 fbshipit-source-id: f15b079d747e96af87cff0a7ce22d41e63d62843
- Loading branch information
1 parent
7fb9e5b
commit e300fcf
Showing
2 changed files
with
12 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# utils to identify triton versions | ||
|
||
|
||
def has_warp_spec(): | ||
import triton.language as tl | ||
|
||
return hasattr(tl, "async_task") |