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
220c3236
Unverified
Commit
220c3236
authored
Nov 18, 2025
by
Yu Cheng
Committed by
GitHub
Nov 18, 2025
Browse files
[Bugfix] Fix multiple cg defination when using T.sync_grid (#1272)
parent
3ab93cd7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
4 deletions
+1
-4
src/target/codegen_cuda.cc
src/target/codegen_cuda.cc
+1
-4
No files found.
src/target/codegen_cuda.cc
View file @
220c3236
...
...
@@ -1645,10 +1645,7 @@ void CodeGenTileLangCUDA::VisitExpr_(const CallNode *op, std::ostream &os) {
}
else
if
(
op
->
op
.
same_as
(
tl
::
sync_grid
()))
{
this
->
need_cooperative_groups_
=
true
;
this
->
PrintIndent
();
this
->
stream
<<
"cooperative_groups::grid_group grid = "
"cooperative_groups::this_grid();
\n
"
;
this
->
PrintIndent
();
this
->
stream
<<
"grid.sync();
\n
"
;
this
->
stream
<<
"cooperative_groups::this_grid().sync();
\n
"
;
}
else
if
(
op
->
op
.
same_as
(
tl
::
loop_break
()))
{
this
->
PrintIndent
();
this
->
stream
<<
"break;
\n
"
;
...
...
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