[Mlir-commits] [mlir] mlir::mesh::shardingOp adding shard-size control (PR #98145)
Frank Schlimbach
llvmlistbot at llvm.org
Wed Jul 10 01:25:18 PDT 2024
================
@@ -450,53 +496,64 @@ reshardOn1DMesh(ImplicitLocOpBuilder &builder, MeshOp mesh,
handlePartialAxesDuringResharding(builder, sourceSharding, targetSharding,
sourceShard);
- if (reducedSourceSharding == targetSharding) {
+ if (!force && reducedSourceSharding == targetSharding) {
----------------
fschlimb wrote:
We need the `force` for cases that require an `update_halo` (see below). Without `force` the sharding can potentially be elided.
https://github.com/llvm/llvm-project/pull/98145
More information about the Mlir-commits
mailing list