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
OpenDAS
tilelang
Commits
fa0fca58
Commit
fa0fca58
authored
May 12, 2025
by
Thien Tran
Committed by
LeiWang1999
May 12, 2025
Browse files
[Bugfix] Check CUDA target before checking for TMA #482
parent
089cc0a7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
tilelang/engine/phase.py
tilelang/engine/phase.py
+8
-2
No files found.
tilelang/engine/phase.py
View file @
fa0fca58
...
@@ -8,9 +8,12 @@ from typing import Optional
...
@@ -8,9 +8,12 @@ from typing import Optional
def
allow_tma_and_warp_specialized
(
pass_ctx
:
Optional
[
PassContext
]
=
None
,
def
allow_tma_and_warp_specialized
(
pass_ctx
:
Optional
[
PassContext
]
=
None
,
target
:
Optional
[
Target
]
=
None
)
->
bool
:
target
:
Optional
[
Target
]
=
None
)
->
bool
:
# avoid circular import
from
tilelang.jit.adapter.utils
import
is_cuda_target
if
pass_ctx
is
None
:
if
pass_ctx
is
None
:
pass_ctx
=
tilelang
.
transform
.
get_pass_context
()
pass_ctx
=
tilelang
.
transform
.
get_pass_context
()
if
not
have_tma
(
target
):
if
not
is_cuda_target
(
target
)
or
not
have_tma
(
target
):
return
False
return
False
disable_tma_lower
=
pass_ctx
.
config
.
get
(
"tl.disable_tma_lower"
,
False
)
disable_tma_lower
=
pass_ctx
.
config
.
get
(
"tl.disable_tma_lower"
,
False
)
disable_tma_lower
=
pass_ctx
.
config
.
get
(
"tl.disable_tma_lower"
,
False
)
disable_tma_lower
=
pass_ctx
.
config
.
get
(
"tl.disable_tma_lower"
,
False
)
...
@@ -19,7 +22,10 @@ def allow_tma_and_warp_specialized(pass_ctx: Optional[PassContext] = None,
...
@@ -19,7 +22,10 @@ def allow_tma_and_warp_specialized(pass_ctx: Optional[PassContext] = None,
def
allow_fence_proxy
(
target
:
Optional
[
Target
]
=
None
)
->
bool
:
def
allow_fence_proxy
(
target
:
Optional
[
Target
]
=
None
)
->
bool
:
return
have_tma
(
target
)
# avoid circular import
from
tilelang.jit.adapter.utils
import
is_cuda_target
return
is_cuda_target
(
target
)
and
have_tma
(
target
)
def
allow_vectorize
(
pass_ctx
:
Optional
[
PassContext
]
=
None
)
->
bool
:
def
allow_vectorize
(
pass_ctx
:
Optional
[
PassContext
]
=
None
)
->
bool
:
...
...
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