[XLA:GPU] Migrate AllReduce thunk emission to MLIR.
PiperOrigin-RevId: 354335704
This commit is contained in:
parent
30ce82790d
commit
c97cff9a7b
|
@ -556,6 +556,10 @@ def LHLO_AllReduceOp : LHLO_Op<"all_reduce", [SameVariadicOperandSize]>,
|
|||
);
|
||||
let regions = (region SizedRegion<1>:$computation);
|
||||
let verifier = [{ return Verify(*this); }];
|
||||
let extraClassDeclaration = [{
|
||||
// AllReduce is cross replica if channel_id is not set.
|
||||
bool IsCrossReplica() { return !channel_id().hasValue(); }
|
||||
}];
|
||||
}
|
||||
|
||||
def LHLO_CollectivePermuteOp: LHLO_Op<"collective_permute", [SameTypeOperands]>,
|
||||
|
|
Loading…
Reference in New Issue