Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
yangxinyu committed Jul 2, 2024
1 parent b5f4c1a commit 9924fa8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions compiler/lib/Dialect/GPU/Transforms/GPUBlockSwizzle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,8 @@ static LogicalResult reorderForallOpMappedToBlock(scf::ForallOp forallOp,
IRMapping bvm;
bvm.map(originWorkgroupIds[0], swizzledIdX);
bvm.map(originWorkgroupIds[1], swizzledIdY);
if (mapping.size() == 3)
bvm.map(originWorkgroupIds[2], workgroupIds[2]);
for (auto &op : forallOp.getBody()->getOperations()) {
b.clone(op, bvm);
}
Expand Down

0 comments on commit 9924fa8

Please sign in to comment.