[llvm] [mlir] [mlir][mesh] Add all-scatter operation (PR #81218)
    Boian Petkantchin via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Tue Feb 13 14:36:02 PST 2024
    
    
  
================
@@ -341,6 +342,68 @@ def Mesh_AllReduceOp : Mesh_CollectiveCommunicationOpBase<"all_reduce", [
   let hasCanonicalizer = 1;
 }
 
+def Mesh_AllScatterOp : Mesh_CollectiveCommunicationOpBase<"all_scatter", [
+    Pure,
+    SameOperandsAndResultElementType,
+    SameOperandsAndResultRank
+  ]> {
+  let summary = "All-scatter over a device mesh. This is the inverse of all-gather.";
+  let description = [{
+    Scatter along the `scatter_axis` tensor axis.
+    This operation can be taught of as the inverse of all-gather.
----------------
sogartar wrote:
Done.
https://github.com/llvm/llvm-project/pull/81218
    
    
More information about the llvm-commits
mailing list