Skip to content

Commit

Permalink
Review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
krzysz00 committed Nov 18, 2024
1 parent 47b71e4 commit 5328767
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,10 @@ LogicalResult resolveGPUMappedForallOp(RewriterBase &rewriter,
assert(!(hasThreadMapping && hasWarpMapping));
Value flatId = linearThreadId;
if (hasWarpMapping) {
if (flatWorkgroupSize % subgroupSize != 0) {
return forallOp->emitOpError(
"found warp mapped forall with non-multiple workgroup size");
}
flatId = rewriter
.create<affine::AffineDelinearizeIndexOp>(
loc, flatId,
Expand Down

0 comments on commit 5328767

Please sign in to comment.