File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
mlir/lib/Conversion/GPUToSPIRV Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -430,10 +430,12 @@ LogicalResult GPUShuffleConversion::matchAndRewrite(
430
430
unsigned subgroupSize =
431
431
targetEnv.getAttr ().getResourceLimits ().getSubgroupSize ();
432
432
IntegerAttr widthAttr;
433
+ // The width argument specifies the number of lanes that participate in the
434
+ // shuffle. The width value should not exceed the subgroup limit.
433
435
if (!matchPattern (shuffleOp.getWidth (), m_Constant (&widthAttr)) ||
434
- widthAttr.getValue ().getZExtValue () ! = subgroupSize)
436
+ widthAttr.getValue ().getZExtValue () < = subgroupSize)
435
437
return rewriter.notifyMatchFailure (
436
- shuffleOp, " shuffle width and target subgroup size mismatch " );
438
+ shuffleOp, " shuffle width is larger than target subgroup size" );
437
439
438
440
Location loc = shuffleOp.getLoc ();
439
441
Value trueVal = spirv::ConstantOp::getOne (rewriter.getI1Type (),
You can’t perform that action at this time.
0 commit comments