Skip to content

[MLIR][XeGPU] Updates XeGPU TensorDescAttr and Refine Gather/Scatter definition. #109144

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

chencha3
Copy link
Contributor

@chencha3 chencha3 commented Sep 18, 2024

The PR makes the following refine changes to the XeGPU dialect.

  1. Separated the old TensorDescAttr into two independent attributes, BlockTensorDescAttr and ScatterTensorDescAttr
  2. Renamed the MemoryScopeAttr to MemorySpaceAttr, and updated the enumeration value for shared memory following OpenCL standard.
  3. Introduced transpose UnitAttr to StoreScatterOpand LoadGatherOp
  4. Added memory space check for CreateNdDesc and CreateDesc op, addes valid and invalid test cases for them.

Copy link

github-actions bot commented Sep 18, 2024

✅ With the latest revision this PR passed the C/C++ code formatter.

@chencha3 chencha3 changed the title update tdesc_attr [MLIR][XeGPU] Updates XeGPU TensorDescAttr and Refine Gather/Scatter definition. Sep 19, 2024
@chencha3 chencha3 marked this pull request as ready for review September 19, 2024 17:45
@llvmbot
Copy link
Member

llvmbot commented Sep 19, 2024

@llvm/pr-subscribers-mlir-gpu

@llvm/pr-subscribers-mlir

Author: Chao Chen (chencha3)

Changes

The PR makes the following refine changes to the XeGPU dialect.

  1. Separated the old TensorDescAttr into two independent attributes, BlockTensorDescAttr and ScatterTensorDescAttr
  2. Renamed the MemoryScopeAttr to MemorySpaceAttr, and updated the enumeration value for shared memory following OpenCL standard.
  3. Introduced transpose UnitAttr to StoreScatterOpand LoadGatherOp
  4. Added memory space check for CreateNdDesc and CreateDesc op, addes valid and invalid test cases for them.

Patch is 52.14 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/109144.diff

7 Files Affected:

  • (modified) mlir/include/mlir/Dialect/XeGPU/IR/XeGPUAttrs.td (+45-19)
  • (modified) mlir/include/mlir/Dialect/XeGPU/IR/XeGPUOps.td (+61-25)
  • (modified) mlir/include/mlir/Dialect/XeGPU/IR/XeGPUTypes.td (+47-26)
  • (modified) mlir/lib/Dialect/XeGPU/IR/XeGPUDialect.cpp (+33-13)
  • (modified) mlir/lib/Dialect/XeGPU/IR/XeGPUOps.cpp (+81-28)
  • (modified) mlir/test/Dialect/XeGPU/XeGPUOps.mlir (+44-30)
  • (modified) mlir/test/Dialect/XeGPU/invalid.mlir (+48-27)
diff --git a/mlir/include/mlir/Dialect/XeGPU/IR/XeGPUAttrs.td b/mlir/include/mlir/Dialect/XeGPU/IR/XeGPUAttrs.td
index f3ca09a6a68ea8..26eec0d4f2082a 100644
--- a/mlir/include/mlir/Dialect/XeGPU/IR/XeGPUAttrs.td
+++ b/mlir/include/mlir/Dialect/XeGPU/IR/XeGPUAttrs.td
@@ -19,12 +19,18 @@ class XeGPUAttr<string name, string attrMnemonic, list<Trait> traits = [],
   let mnemonic = attrMnemonic;
 }
 
-def XeGPU_TensorDescAttr: XeGPUAttr<"TensorDesc", "tdesc_attr"> {
+class XeGPU_TensorDescAttr<string name, string attrMnemonic, list<Trait> traits = [],
+                         string baseCppClass = "::mlir::Attribute">
+    : XeGPUAttr<name, attrMnemonic, traits, baseCppClass> {
+  let assemblyFormat = "`<` struct(params) `>`";
+}
+
+def XeGPU_BlockTensorDescAttr: XeGPU_TensorDescAttr<"BlockTensorDesc", "block_tdesc_attr"> {
   let summary = [{a composite attribute for `TensorDescType`}];
-  let description = [{`TensorDescAttr` (or `tdesc_attr`) is a composite
+  let description = [{`BlockTensorDesc` (or `block_tdesc_attr`) is a composite
     attribute defined for `TensorDescType` for describing following
     properties of a `TensorDesc`.
-    1. `memory_scope`: It describes where the data block described by the
+    1. `memory_space`: It describes where the data block described by the
         TensorDesc is located, `Global` device memory or `Shared` local memory.
         It is default to `Global`.
     2. `array_length`: It describes how many horizontally consecutive blocks
@@ -33,43 +39,63 @@ def XeGPU_TensorDescAttr: XeGPUAttr<"TensorDesc", "tdesc_attr"> {
         8x32. Its default value is 1.
     3. `boundary_check`: It is used to indicates the hardware whether to do
         out-of-boundary check. The default value is true.
-    4. `scattered`: It is used to differenciate TensorDescs created from
-       `create_nd_tdesc` vs from `create_tdesc`.
   }];
 
   let parameters = (ins
-    OptionalParameter<"MemoryScopeAttr">: $memory_scope,
+    OptionalParameter<"MemorySpaceAttr">: $memory_space,
     OptionalParameter<"IntegerAttr", "1">: $array_length,
-    OptionalParameter<"BoolAttr", "true">: $boundary_check,
-    OptionalParameter<"BoolAttr", "false">: $scattered
+    OptionalParameter<"BoolAttr", "true">: $boundary_check
   );
 
   let builders = [
     AttrBuilder<(ins
-      CArg<"xegpu::MemoryScope", "xegpu::MemoryScope::Global">:$memory_scope,
+      CArg<"xegpu::MemorySpace", "xegpu::MemorySpace::Global">:$memory_space,
       CArg<"int", "1">:$array_length,
-      CArg<"bool", "true">: $boundary_check,
-      CArg<"bool", "false">: $scattered
+      CArg<"bool", "true">: $boundary_check
     )>
   ];
 
-  let assemblyFormat = "`<` struct(params) `>`";
 }
 
+def XeGPU_ScatterTensorDescAttr: XeGPU_TensorDescAttr<"ScatterTensorDesc", "scatter_tdesc_attr"> {
+  let summary = [{a composite attribute for `TensorDescType`}];
+  let description = [{`ScatterTensorDesc` (or `scatter_tdesc_attr`) is a composite
+    attribute defined for `TensorDescType` for describing following
+    properties of a `TensorDesc`.
+    1. `memory_space`: It describes where the data block described by the
+        TensorDesc is located, `Global` device memory or `Shared` local memory.
+        It is default to `Global`.
+    2.  `chunk_size`: indicates number of continious elements accessed for each
+        offset, default is 1. It is used with `scattered` attr only.
+  }];
+
+  let parameters = (ins
+    OptionalParameter<"MemorySpaceAttr">: $memory_space,
+    OptionalParameter<"IntegerAttr", "1">: $chunk_size
+  );
+
+  let builders = [
+    AttrBuilder<(ins
+      CArg<"xegpu::MemorySpace", "xegpu::MemorySpace::Global">:$memory_space,
+      CArg<"int", "1">: $chunk_size
+    )>
+  ];
+ }
+
 //===----------------------------------------------------------------------===//
 // XeGPU Memory Scope Enums.
 //===----------------------------------------------------------------------===//
-def XeGPU_MemoryScopeGlobal: I32EnumAttrCase<"Global", 0, "global">;
-def XeGPU_MemoryScopeShared: I32EnumAttrCase<"SLM", 1, "slm">;
-def XeGPU_MemoryScope: I32EnumAttr<"MemoryScope",
+def XeGPU_MemorySpaceGlobal: I32EnumAttrCase<"Global", 0, "global">;
+def XeGPU_MemorySpaceShared: I32EnumAttrCase<"SLM", 3, "slm">;
+def XeGPU_MemorySpace: I32EnumAttr<"MemorySpace",
       "The address space of the memory the tensor descritor is created for",
-      [XeGPU_MemoryScopeGlobal, XeGPU_MemoryScopeShared]> {
+      [XeGPU_MemorySpaceGlobal, XeGPU_MemorySpaceShared]> {
   let genSpecializedAttr = 0;
   let cppNamespace = "::mlir::xegpu";
 }
 
-def XeGPU_MemoryScopeAttr:
-  EnumAttr<XeGPU_Dialect, XeGPU_MemoryScope, "memory_scope"> {
+def XeGPU_MemorySpaceAttr:
+  EnumAttr<XeGPU_Dialect, XeGPU_MemorySpace, "memory_space"> {
     let summary = [{Describe the location of data described by a `TensorDesc`:
                  Global device memory (`Global`) or Shared local memory (`SLM`).}];
     let assemblyFormat = "$value";
@@ -116,4 +142,4 @@ def XeGPU_FenceScopeAttr:
     let assemblyFormat = "$value";
 }
 
-#endif // MLIR_DIALECT_XEGPU_IR_XEGPUATTRS_TD
\ No newline at end of file
+#endif // MLIR_DIALECT_XEGPU_IR_XEGPUATTRS_TD
diff --git a/mlir/include/mlir/Dialect/XeGPU/IR/XeGPUOps.td b/mlir/include/mlir/Dialect/XeGPU/IR/XeGPUOps.td
index c32c7541c39791..e24a056de2caf3 100644
--- a/mlir/include/mlir/Dialect/XeGPU/IR/XeGPUOps.td
+++ b/mlir/include/mlir/Dialect/XeGPU/IR/XeGPUOps.td
@@ -218,6 +218,23 @@ def XeGPU_CreateNdDescOp: XeGPU_Op<"create_nd_tdesc", [Pure, ViewLikeOpInterface
     static unsigned getOffsetSizeAndStrideStartOperandIndex() { return 1; }
 
     mlir::Value getViewSource() { return getSource(); }
+
+    unsigned getSourceMemorySpace() {
+      auto srcTy = getSourceType();
+      if (auto memrefTy = llvm::dyn_cast<mlir::MemRefType>(srcTy)) {
+        auto attr = memrefTy.getMemorySpace();
+        if (attr) {
+          if (auto intAttr = llvm::dyn_cast<mlir::IntegerAttr>(attr)) {
+            return static_cast<unsigned>(intAttr.getInt());
+          }
+          if (auto memSpaceAttr = llvm::dyn_cast<MemorySpaceAttr>(attr))
+            return static_cast<unsigned>(memSpaceAttr.getValue());
+        }
+      }
+      // take global as default memory scope.
+      return static_cast<unsigned>(MemorySpace::Global);
+    }
+
   }];
 }
 
@@ -411,8 +428,10 @@ def XeGPU_CreateDescOp: XeGPU_Op<"create_tdesc", [Pure, ViewLikeOpInterface]> {
       is fixed to the hardware supportted subgroup size, e.g., 16 on PVC,
       implying each element in the array corresponds to a work-item (SIMT lane)
       in the subgroup.
-    * chunk_size: [optional attribute] indicates number of continious
-      elements accessed for each offset, default is 1.
+
+    The first dimension of the result TensorDesc corresponds to work-items, so it should
+    match the dimension of offsets. It may also has a second dimension corresponding to
+    the chunk_size if the chunk size is larger than 1.
 
     Example 1. It assumes subgroup size is 4, and accesses a[0], a[16], a[32], a[64]
     ```mlir
@@ -424,29 +443,22 @@ def XeGPU_CreateDescOp: XeGPU_Op<"create_tdesc", [Pure, ViewLikeOpInterface]> {
                It will access totally 32 data elements: a[0:7], a[16:23], a[32:39], a[64:71]
     ```mlir
     %0 = memref.alloc() : memref<1024xf32>
-    %1 = xegpu.create_tdesc %0[0, 16, 32, 64] {chunk_size = 8}: memref<1024xf32> -> TensorDesc<4x8xf32>
+    %1 = xegpu.create_tdesc %0[0, 16, 32, 64] : memref<1024xf32> -> TensorDesc<4x8xf32, chunk_size = 8>
     ```
 
     Example 3. It is similar to Example 2, but there is some overlaps among workitems.
                It accesses: a[0:7], a[4:11], a[8:15], a[12:19]
     ```mlir
     %0 = memref.alloc() : memref<1024xf32>
-    %1 = xegpu.create_tdesc %0[0, 4, 8, 12] {chunk_size = 8}: memref<1024xf32> -> TensorDesc<4x8xf32>
+    %1 = xegpu.create_tdesc %0[0, 4, 8, 12] : memref<1024xf32> -> TensorDesc<4x8xf32, chunk_size = 8>>
     ```
   }];
 
   let arguments = (ins XeGPU_BaseAddrType: $source,
                        Variadic<Index>: $offsets,
-                       DenseI64ArrayAttr: $const_offsets,
-                       DefaultValuedAttr<I64Attr, "1">: $chunk_size);
+                       DenseI64ArrayAttr: $const_offsets);
   let results = (outs XeGPU_TensorDesc:$TensorDesc);
 
-  let builders = [
-    OpBuilder<(ins "xegpu::TensorDescType": $TensorDesc, "Value": $source,
-                   "llvm::ArrayRef<OpFoldResult>": $offsets,
-                   CArg<"uint32_t", "1"> : $chunk_size)>,
-  ];
-
   let assemblyFormat = [{
     $source
     custom<DynamicIndexList>($offsets, $const_offsets)
@@ -473,6 +485,22 @@ def XeGPU_CreateDescOp: XeGPU_Op<"create_tdesc", [Pure, ViewLikeOpInterface]> {
       assert(idx < getNumOffsets() && "Invalid out of bound access.");
       return getMixedOffsets()[idx];
     }
+
+    unsigned getSourceMemorySpace() {
+      auto srcTy = getSource().getType();
+      if (auto memrefTy = llvm::dyn_cast<mlir::MemRefType>(srcTy)) {
+        auto attr = memrefTy.getMemorySpace();
+        if (attr) {
+          if (auto intAttr = llvm::dyn_cast<mlir::IntegerAttr>(attr))
+            return static_cast<unsigned>(intAttr.getInt());
+          if (auto memSpaceAttr = llvm::dyn_cast<MemorySpaceAttr>(attr))
+            return static_cast<unsigned>(memSpaceAttr.getValue());
+        }
+      }
+      // take global as default memory scope.
+      return static_cast<unsigned>(MemorySpace::Global);
+    }
+
   }];
 
   let hasVerifier = 1;
@@ -520,28 +548,31 @@ def XeGPU_LoadGatherOp : XeGPU_Op<"load", [AllRanksMatch<["value", "TensorDesc"]
 
   let description = [{ It (aka. load) load data per each work-item. The output
     describes the data being loaded at the subgroup level, so its size is
-    consistent with the number of work-items in a subgroup. When `chunk_size_per_lane`
-    attribute is larger than 1 in TensorDesc, the output vector will be 2D vector,
-    with dim-1 correspoding to the chunk size.
+    consistent with the number of work-items in a subgroup. When the chunk size
+    is larger than 2, the output vector is a 2D vector, with dim-1 correspoding
+    to work-items, and dim-0 corresponding to the chunk_size loaded by each work-item.
+    Specially, there is a transpose effect on the result (as compared to the TensorDesc)
+    due to the hardware implementation. Therefore, a transpose attribute is introduced
+    on purpose, making sure users are aware of this implicit transformation.
 
     The mask operand masks out memory access so that it is safe to pass out-of-boundary
     addresses/offsets as long as they are masked. It applies to slots of SIMD lanes.
 
   Example:
   ```mlir
-    %2 = xegpu.load %1, %0 {transpose = [1, 0],
+    %2 = xegpu.load %1, %0 {transpose,
                             l1_hint = #xegpu.cache_hint<cached>,
                             l2_hint = #xegpu.cache_hint<uncached>,
                             l3_hint = #xegpu.cache_hint<uncached>}
-          : !xegpu.tensor_desc<16xf32, #xegpu.tdesc_attr<scattered=true>>, vector<16xi1>
-            -> vector<16xf32>
+          : !xegpu.tensor_desc<16xf32, #xegpu.scatter_tdesc_attr<memory_space=global>>,
+            vector<16xi1> -> vector<16xf32>
   ```
 
   }];
 
   let arguments = (ins XeGPU_TensorDesc: $TensorDesc,
                        XeGPU_MaskType: $mask,
-                       OptionalAttr<DenseI64ArrayAttr>: $transpose,
+                       OptionalAttr<UnitAttr>: $transpose,
                        OptionalAttr<XeGPU_CacheHintAttr>: $l1_hint,
                        OptionalAttr<XeGPU_CacheHintAttr>: $l2_hint,
                        OptionalAttr<XeGPU_CacheHintAttr>: $l3_hint);
@@ -573,11 +604,15 @@ def XeGPU_LoadGatherOp : XeGPU_Op<"load", [AllRanksMatch<["value", "TensorDesc"]
   let hasVerifier = 1;
 }
 
-def XeGPU_StoreScatterOp : XeGPU_Op<"store", [AllShapesMatch<["value", "TensorDesc"]>,
-                                        AllElementTypesMatch<["value", "TensorDesc"]>]> {
+def XeGPU_StoreScatterOp : XeGPU_Op<"store", [AllElementCountsMatch<["value", "TensorDesc"]>,
+                                              AllElementTypesMatch<["value", "TensorDesc"]>]> {
   let summary = "store data to scattered memory locations.";
-  let description = [{ It (aka. store) stores data to scattered memory locations.
-  It has similar semantic to `load_gather`.
+  let description = [{ It (aka. store) stores data to scattered memory locations. The value is
+  typically a 1D vector. But when the chunk size of the TensorDesc is larger than 1, it will be
+  a 2D vector instead. For the later case, dim-1 of the value correspods to the simd lanes
+  and the dim-0 of the value corresponds to the chunk_size stored per lane. So `store_scatter`
+  has transpose effect, which is similar to `load_gather`. Therefore, a transpose attribute is
+  introduced on purpose, making sure users are aware of this implicit transformation.
 
   Example:
   ```mlir
@@ -592,6 +627,7 @@ def XeGPU_StoreScatterOp : XeGPU_Op<"store", [AllShapesMatch<["value", "TensorDe
     XeGPU_ValueType: $value,
     XeGPU_TensorDesc: $TensorDesc,
     XeGPU_MaskType: $mask,
+    OptionalAttr<UnitAttr>: $transpose,
     OptionalAttr<XeGPU_CacheHintAttr>: $l1_hint,
     OptionalAttr<XeGPU_CacheHintAttr>: $l2_hint,
     OptionalAttr<XeGPU_CacheHintAttr>: $l3_hint);
@@ -723,7 +759,7 @@ def XeGPU_DpasOp : XeGPU_Op<"dpas", [Pure, AllElementTypesMatch<["lhs", "rhs"]>]
 
 def XeGPU_AtomicRMWOp: XeGPU_Op<"atomic_rmw", [Pure,
       AllElementTypesMatch<["tensorDesc", "value", "result"]>,
-      AllShapesMatch<["tensorDesc", "mask", "value", "result"]>]> {
+      AllShapesMatch<["tensorDesc", "value", "result"]>]> {
   let summary = "Atomic ready-modify-write operation on the TensorDesc. ";
 
   let description = [{
@@ -808,7 +844,7 @@ def XeGPU_FenceOp: XeGPU_Op<"fence", []> {
     2. `Fence_scope` describes the scope of fence. "Workgroup" means that the scope would be
         within each workgroup. "GPU" means the scope would be across workgroups within the GPU.
   }];
-  let arguments = (ins XeGPU_MemoryScopeAttr: $memory_kind,
+  let arguments = (ins XeGPU_MemorySpaceAttr: $memory_kind,
                        XeGPU_FenceScopeAttr: $fence_scope);
   let assemblyFormat = [{`memory_kind` `=` `` $memory_kind `,` `fence_scope` `=` `` $fence_scope attr-dict}];
   let extraClassDeclaration = extraBaseClassDeclaration;
diff --git a/mlir/include/mlir/Dialect/XeGPU/IR/XeGPUTypes.td b/mlir/include/mlir/Dialect/XeGPU/IR/XeGPUTypes.td
index 9f101a71697b56..0ce1211664b5ba 100644
--- a/mlir/include/mlir/Dialect/XeGPU/IR/XeGPUTypes.td
+++ b/mlir/include/mlir/Dialect/XeGPU/IR/XeGPUTypes.td
@@ -48,7 +48,7 @@ def XeGPU_TensorDesc: XeGPUTypeDef<"TensorDesc", "tensor_desc",
 
     Similar to the builtin tensor, it also provides an optinal attribute to encoding
     the following information via the TensorDescAttr object:
-    * memory_scope (xegpu::MemoryScope): [optional] where the data is located,
+    * memory_space (xegpu::MemorySpace): [optional] where the data is located,
                 global memory or shared memory. It is default to Global.
     * array_length (int): [optional] The number of contiguous blocks with size as `shape`,
                that will be loaded by block load at a time. It is default to 1.
@@ -63,7 +63,7 @@ def XeGPU_TensorDesc: XeGPUTypeDef<"TensorDesc", "tensor_desc",
     element-type ::= float-type | integer-type | index-type
     dim-list := (static-dim-list `x`)?
     static-dim-list ::= decimal-literal `x` decimal-literal
-    attr-list = (, memory_scope = value)? (, arr_len = value)? (, boundary_check = value)? (, scattered = value)?
+    attr-list = (, memory_space = value)? (, arr_len = value)? (, boundary_check = value)? (, scattered = value)?
     ```
 
     Examples:
@@ -76,7 +76,7 @@ def XeGPU_TensorDesc: XeGPUTypeDef<"TensorDesc", "tensor_desc",
     xegpu.tensor_desc<8x16xf32>
 
     // A TensorDesc with 8x16 f32 elements for a memory region in shared memory space.
-    xegpu.tensor_desc<8x16xf32, #xegpu.tdesc_attr<memory_scope = slm>>
+    xegpu.tensor_desc<8x16xf32, #xegpu.tdesc_attr<memory_space = slm>>
     ```
   }];
 
@@ -88,11 +88,14 @@ def XeGPU_TensorDesc: XeGPUTypeDef<"TensorDesc", "tensor_desc",
     TypeBuilderWithInferredContext<(ins
       "llvm::ArrayRef<int64_t>": $shape,
       "mlir::Type": $elementType,
-      CArg<"bool", "false">: $scattered,
       CArg<"int", "1">: $array_length,
-      CArg<"xegpu::MemoryScope", "xegpu::MemoryScope::Global">:$memory_scope,
-      CArg<"bool", "true">: $boundary_check
-    )>
+      CArg<"bool", "true">: $boundary_check,
+      CArg<"xegpu::MemorySpace", "xegpu::MemorySpace::Global">:$memory_space)>,
+    TypeBuilderWithInferredContext<(ins
+      "llvm::ArrayRef<int64_t>": $shape,
+      "mlir::Type": $elementType,
+      CArg<"int", "1">: $chunk_size,
+      CArg<"xegpu::MemorySpace", "xegpu::MemorySpace::Global">:$memory_space)>
   ];
 
   let extraClassDeclaration = [{
@@ -110,40 +113,58 @@ def XeGPU_TensorDesc: XeGPUTypeDef<"TensorDesc", "tensor_desc",
       return llvm::cast<TensorDescType>(cloneWith(getShape(), elementType));
     }
 
-    TensorDescAttr getEncodingAsTensorDescAttr() const {
-      return llvm::dyn_cast_if_present<TensorDescAttr>(getEncoding());
+    BlockTensorDescAttr getEncodingAsBlockTensorDescAttr() const {
+      return llvm::dyn_cast_if_present<BlockTensorDescAttr>(getEncoding());
     }
 
-    xegpu::MemoryScope getMemoryScope() const {
-      auto attr = getEncodingAsTensorDescAttr();
-      if (attr && attr.getMemoryScope())
-        return attr.getMemoryScope().getValue();
+    ScatterTensorDescAttr getEncodingAsScatterTensorDescAttr() const {
+      return llvm::dyn_cast_if_present<ScatterTensorDescAttr>(getEncoding());
+    }
+
+    xegpu::MemorySpace getMemorySpace() const {
+      auto block_attr = getEncodingAsBlockTensorDescAttr();
+      if (block_attr && block_attr.getMemorySpace())
+        return block_attr.getMemorySpace().getValue();
+
+      auto scatter_attr = getEncodingAsScatterTensorDescAttr();
+      if (scatter_attr && scatter_attr.getMemorySpace())
+        return scatter_attr.getMemorySpace().getValue();
+
       // return default value
-      return MemoryScope::Global;
+      return MemorySpace::Global;
     }
 
     int getArrayLength() {
-      auto attr = getEncodingAsTensorDescAttr();
-      if (attr && attr.getArrayLength())
-        return attr.getArrayLength().getInt();
+      auto attr = getEncoding();
+      auto block_attr = mlir::dyn_cast_if_present<BlockTensorDescAttr>(attr);
+      assert((!attr || block_attr) && "invalid on non BlockTensorDescAttr.");
+      if (block_attr && block_attr.getArrayLength())
+        return block_attr.getArrayLength().getInt();
       // return default value
       return 1;
     }
 
     bool getBoundaryCheck() {
-      auto attr = getEncodingAsTensorDescAttr();
-      if (attr && attr.getBoundaryCheck())
-        return attr.getBoundaryCheck().getValue();
+      auto attr = getEncoding();
+      auto block_attr = mlir::dyn_cast_if_present<BlockTensorDescAttr>(attr);
+      assert((!attr || block_attr) && "invalid on non BlockTensorDescAttr.");
+      if (block_attr && block_attr.getBoundaryCheck())
+        return block_attr.getBoundaryCheck().getValue();
       // return default value
       return true;
     }
 
-    bool getScattered() {
-      auto attr = getEncodingAsTensorDescAttr();
-      if (attr && attr.getScattered())
-        return attr.getScattered().getValue();
-      // return default value
-      return false;
+    bool isScattered() {
+      return bool(getEncodingAsScatterTensorDescAttr());
+    }
+
+    int getChunkSize() {
+      auto attr = getEncoding();
+      auto scatter_attr = mlir::dyn_cast_if_present<ScatterTensorDescAttr>(attr);
+      assert((!attr || scatter_attr) && "invalid on non ScatterTensorDescAttr.");
+      if (scatter_attr && scatter_attr.getChunkSize())
+        return scatter_attr.getChunkSize().getInt();
+      return 1;
     }
   }];
 
diff --git a/mlir/lib/Dialect/XeGPU/IR/XeGPUDialect.cpp b/mlir/lib/Dialect/XeGPU/IR/XeGPUDialect.cpp
index 24719fe748fe4f..1dfbaed454c193 100644
--- a/mlir/lib/Dialect/XeGPU/IR/XeGPUDialect.cpp
+++ b/mlir/lib/Dialect/XeGPU/IR/XeGPUDialect.cpp
@@ -30,23 +30,35 @@ void XeGPUDialect::initialize() {
 }
 
 //===-------------------------------------------...
[truncated]

Copy link
Contributor

@adam-smnk adam-smnk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good % nit

@chencha3 chencha3 merged commit 2162723 into main Sep 23, 2024
8 checks passed
@chencha3 chencha3 deleted the users/chencha3/xegpu/update_xegpu_tdesc_attr_and_gather_scatter branch September 23, 2024 14:00
@llvm-ci
Copy link
Collaborator

llvm-ci commented Sep 23, 2024

LLVM Buildbot has detected a new failure on builder mlir-s390x-linux running on systemz-1 while building mlir at step 5 "build-unified-tree".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/117/builds/2185

Here is the relevant piece of the build log for the reference
Step 5 (build-unified-tree) failure: build (failure)
...
37.304 [1084/4/3583] Building CXX object tools/mlir/lib/Dialect/Vector/Transforms/CMakeFiles/obj.MLIRVectorTransforms.dir/VectorTransforms.cpp.o
37.325 [1083/4/3584] Building CXX object tools/mlir/lib/Dialect/Vector/Transforms/CMakeFiles/obj.MLIRVectorTransforms.dir/VectorUnroll.cpp.o
37.333 [1082/4/3585] Building CXX object tools/mlir/lib/Dialect/Vector/Transforms/CMakeFiles/obj.MLIRVectorTransforms.dir/VectorMaskElimination.cpp.o
37.342 [1081/4/3586] Building CXX object tools/mlir/lib/Dialect/Vector/TransformOps/CMakeFiles/obj.MLIRVectorTransformOps.dir/VectorTransformOps.cpp.o
37.348 [1080/4/3587] Building CXX object tools/mlir/lib/Dialect/Vector/Utils/CMakeFiles/obj.MLIRVectorUtils.dir/VectorUtils.cpp.o
37.354 [1079/4/3588] Building CXX object tools/mlir/lib/Dialect/X86Vector/IR/CMakeFiles/obj.MLIRX86VectorDialect.dir/X86VectorDialect.cpp.o
37.377 [1078/4/3589] Building CXX object tools/mlir/lib/Dialect/X86Vector/Transforms/CMakeFiles/obj.MLIRX86VectorTransforms.dir/LegalizeForLLVMExport.cpp.o
37.379 [1077/4/3590] Linking CXX static library lib/libMLIRX86VectorDialect.a
37.387 [1076/4/3591] Building CXX object tools/mlir/lib/Dialect/X86Vector/Transforms/CMakeFiles/obj.MLIRX86VectorTransforms.dir/AVXTranspose.cpp.o
39.134 [1075/4/3592] Building CXX object tools/mlir/lib/Conversion/VectorToXeGPU/CMakeFiles/obj.MLIRVectorToXeGPU.dir/VectorToXeGPU.cpp.o
FAILED: tools/mlir/lib/Conversion/VectorToXeGPU/CMakeFiles/obj.MLIRVectorToXeGPU.dir/VectorToXeGPU.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes /usr/bin/ccache /usr/bin/c++ -DGTEST_HAS_RTTI=0 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/uweigand/sandbox/buildbot/mlir-s390x-linux/build/tools/mlir/lib/Conversion/VectorToXeGPU -I/home/uweigand/sandbox/buildbot/mlir-s390x-linux/llvm-project/mlir/lib/Conversion/VectorToXeGPU -I/home/uweigand/sandbox/buildbot/mlir-s390x-linux/build/include -I/home/uweigand/sandbox/buildbot/mlir-s390x-linux/llvm-project/llvm/include -I/home/uweigand/sandbox/buildbot/mlir-s390x-linux/llvm-project/mlir/include -I/home/uweigand/sandbox/buildbot/mlir-s390x-linux/build/tools/mlir/include -fPIC -fvisibility-inlines-hidden -Werror=date-time -fno-lifetime-dse -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -fdiagnostics-color -ffunction-sections -fdata-sections -Wundef -Wno-unused-but-set-parameter -O3 -DNDEBUG  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -std=c++17 -MD -MT tools/mlir/lib/Conversion/VectorToXeGPU/CMakeFiles/obj.MLIRVectorToXeGPU.dir/VectorToXeGPU.cpp.o -MF tools/mlir/lib/Conversion/VectorToXeGPU/CMakeFiles/obj.MLIRVectorToXeGPU.dir/VectorToXeGPU.cpp.o.d -o tools/mlir/lib/Conversion/VectorToXeGPU/CMakeFiles/obj.MLIRVectorToXeGPU.dir/VectorToXeGPU.cpp.o -c /home/uweigand/sandbox/buildbot/mlir-s390x-linux/llvm-project/mlir/lib/Conversion/VectorToXeGPU/VectorToXeGPU.cpp
/home/uweigand/sandbox/buildbot/mlir-s390x-linux/llvm-project/mlir/lib/Conversion/VectorToXeGPU/VectorToXeGPU.cpp: In member function 'virtual llvm::LogicalResult {anonymous}::TransferReadLowering::matchAndRewrite(mlir::vector::TransferReadOp, mlir::PatternRewriter&) const':
/home/uweigand/sandbox/buildbot/mlir-s390x-linux/llvm-project/mlir/lib/Conversion/VectorToXeGPU/VectorToXeGPU.cpp:172:16: error: 'mlir::xegpu::MemoryScope' has not been declared
  172 |         xegpu::MemoryScope::Global,
      |                ^~~~~~~~~~~
/home/uweigand/sandbox/buildbot/mlir-s390x-linux/llvm-project/mlir/lib/Conversion/VectorToXeGPU/VectorToXeGPU.cpp: In member function 'virtual llvm::LogicalResult {anonymous}::TransferWriteLowering::matchAndRewrite(mlir::vector::TransferWriteOp, mlir::PatternRewriter&) const':
/home/uweigand/sandbox/buildbot/mlir-s390x-linux/llvm-project/mlir/lib/Conversion/VectorToXeGPU/VectorToXeGPU.cpp:217:57: error: 'mlir::xegpu::MemoryScope' has not been declared
  217 |         /*scattered=*/false, /*array_length=*/1, xegpu::MemoryScope::Global,
      |                                                         ^~~~~~~~~~~
/home/uweigand/sandbox/buildbot/mlir-s390x-linux/llvm-project/mlir/lib/Conversion/VectorToXeGPU/VectorToXeGPU.cpp: At global scope:
/home/uweigand/sandbox/buildbot/mlir-s390x-linux/llvm-project/mlir/lib/Conversion/VectorToXeGPU/VectorToXeGPU.cpp:85:1: warning: 'mlir::xegpu::CreateNdDescOp {anonymous}::createNdDescriptor(mlir::PatternRewriter&, mlir::Location, mlir::xegpu::TensorDescType, mlir::TypedValue<mlir::MemRefType>, mlir::Operation::operand_range)' defined but not used [-Wunused-function]
   85 | createNdDescriptor(PatternRewriter &rewriter, Location loc,
      | ^~~~~~~~~~~~~~~~~~
42.926 [1075/3/3593] Building CXX object tools/mlir/lib/Dialect/XeGPU/Transforms/CMakeFiles/obj.MLIRXeGPUTransforms.dir/XeGPUFoldAliasOps.cpp.o
47.598 [1075/2/3594] Building CXX object tools/mlir/lib/Dialect/XeGPU/IR/CMakeFiles/obj.MLIRXeGPUDialect.dir/XeGPUDialect.cpp.o
48.253 [1075/1/3595] Building CXX object tools/mlir/lib/Dialect/XeGPU/IR/CMakeFiles/obj.MLIRXeGPUDialect.dir/XeGPUOps.cpp.o
ninja: build stopped: subcommand failed.

@llvm-ci
Copy link
Collaborator

llvm-ci commented Sep 23, 2024

LLVM Buildbot has detected a new failure on builder flang-aarch64-out-of-tree running on linaro-flang-aarch64-out-of-tree while building mlir at step 5 "build-unified-tree".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/53/builds/5107

Here is the relevant piece of the build log for the reference
Step 5 (build-unified-tree) failure: build (failure)
...
23.638 [89/25/38] Linking CXX executable bin/llvm-lipo
23.658 [89/24/39] Linking CXX executable bin/llvm-debuginfo-analyzer
23.923 [89/23/40] Building CXX object tools/clang/lib/Basic/CMakeFiles/obj.clangBasic.dir/Version.cpp.o
24.295 [89/22/41] Linking CXX executable bin/llvm-cxxmap
24.531 [89/21/42] Linking CXX executable bin/llvm-debuginfod-find
24.590 [89/20/43] Linking CXX executable bin/llvm-debuginfod
24.681 [79/29/44] Linking CXX executable bin/llvm-dwarfdump
24.927 [79/28/45] Linking CXX static library lib/libclangBasic.a
25.490 [79/27/46] Linking CXX executable bin/llvm-gsymutil
25.588 [79/26/47] Building CXX object tools/mlir/lib/Conversion/VectorToXeGPU/CMakeFiles/obj.MLIRVectorToXeGPU.dir/VectorToXeGPU.cpp.o
FAILED: tools/mlir/lib/Conversion/VectorToXeGPU/CMakeFiles/obj.MLIRVectorToXeGPU.dir/VectorToXeGPU.cpp.o 
/usr/local/bin/c++ -DGTEST_HAS_RTTI=0 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/tcwg-buildbot/worker/flang-aarch64-out-of-tree/build_llvm/tools/mlir/lib/Conversion/VectorToXeGPU -I/home/tcwg-buildbot/worker/flang-aarch64-out-of-tree/llvm-project/mlir/lib/Conversion/VectorToXeGPU -I/home/tcwg-buildbot/worker/flang-aarch64-out-of-tree/build_llvm/include -I/home/tcwg-buildbot/worker/flang-aarch64-out-of-tree/llvm-project/llvm/include -I/home/tcwg-buildbot/worker/flang-aarch64-out-of-tree/llvm-project/mlir/include -I/home/tcwg-buildbot/worker/flang-aarch64-out-of-tree/build_llvm/tools/mlir/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Wundef -Werror=mismatched-tags -Werror=global-constructors -O3 -DNDEBUG -std=c++17  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -MD -MT tools/mlir/lib/Conversion/VectorToXeGPU/CMakeFiles/obj.MLIRVectorToXeGPU.dir/VectorToXeGPU.cpp.o -MF tools/mlir/lib/Conversion/VectorToXeGPU/CMakeFiles/obj.MLIRVectorToXeGPU.dir/VectorToXeGPU.cpp.o.d -o tools/mlir/lib/Conversion/VectorToXeGPU/CMakeFiles/obj.MLIRVectorToXeGPU.dir/VectorToXeGPU.cpp.o -c /home/tcwg-buildbot/worker/flang-aarch64-out-of-tree/llvm-project/mlir/lib/Conversion/VectorToXeGPU/VectorToXeGPU.cpp
../llvm-project/mlir/lib/Conversion/VectorToXeGPU/VectorToXeGPU.cpp:172:16: error: no member named 'MemoryScope' in namespace 'mlir::xegpu'
  172 |         xegpu::MemoryScope::Global,
      |         ~~~~~~~^
../llvm-project/mlir/lib/Conversion/VectorToXeGPU/VectorToXeGPU.cpp:217:57: error: no member named 'MemoryScope' in namespace 'mlir::xegpu'
  217 |         /*scattered=*/false, /*array_length=*/1, xegpu::MemoryScope::Global,
      |                                                  ~~~~~~~^
2 errors generated.
25.637 [79/25/48] Linking CXX executable bin/dsymutil
25.713 [79/24/49] Linking CXX executable bin/llvm-c-test
25.965 [79/23/50] Linking CXX executable bin/llvm-libtool-darwin
26.194 [79/22/51] Linking CXX executable bin/bugpoint
26.570 [79/21/52] Linking CXX executable bin/llvm-dwp
26.678 [79/20/53] Linking CXX executable bin/llvm-ifs
26.682 [79/19/54] Linking CXX executable bin/llvm-dwarfutil
26.910 [79/18/55] Linking CXX executable bin/lli
27.179 [79/17/56] Building CXX object tools/mlir/lib/Dialect/XeGPU/IR/CMakeFiles/obj.MLIRXeGPUDialect.dir/XeGPUDialect.cpp.o
27.233 [79/16/57] Linking CXX executable bin/llvm-jitlink
27.356 [79/15/58] Building CXX object tools/mlir/lib/Dialect/XeGPU/IR/CMakeFiles/obj.MLIRXeGPUDialect.dir/XeGPUOps.cpp.o
27.409 [79/14/59] Linking CXX executable bin/llc
27.689 [79/13/60] Linking CXX executable bin/llvm-extract
28.030 [79/12/61] Linking CXX executable bin/llvm-exegesis
28.083 [79/11/62] Linking CXX executable bin/llvm-isel-fuzzer
29.283 [79/10/63] Linking CXX shared library lib/libLTO.so.20.0git
29.462 [79/9/64] Linking CXX executable bin/llvm-lto
38.324 [79/8/65] Linking CXX shared library lib/libclang-cpp.so.20.0git
57.879 [79/7/66] Building CXX object tools/mlir/tools/mlir-query/CMakeFiles/mlir-query.dir/mlir-query.cpp.o
58.999 [79/6/67] Building CXX object tools/mlir/tools/mlir-opt/CMakeFiles/mlir-opt.dir/mlir-opt.cpp.o
61.095 [79/5/68] Building CXX object tools/mlir/tools/mlir-reduce/CMakeFiles/mlir-reduce.dir/mlir-reduce.cpp.o
64.672 [79/4/69] Building CXX object tools/mlir/tools/mlir-lsp-server/CMakeFiles/mlir-lsp-server.dir/mlir-lsp-server.cpp.o
67.472 [79/3/70] Building CXX object tools/mlir/tools/mlir-opt/CMakeFiles/MLIRMlirOptMain.dir/mlir-opt.cpp.o
67.691 [79/2/71] Building CXX object tools/mlir/lib/CAPI/RegisterEverything/CMakeFiles/obj.MLIRCAPIRegisterEverything.dir/RegisterEverything.cpp.o
73.478 [79/1/72] Building CXX object tools/mlir/examples/transform-opt/CMakeFiles/mlir-transform-opt.dir/mlir-transform-opt.cpp.o
ninja: build stopped: subcommand failed.

@llvm-ci
Copy link
Collaborator

llvm-ci commented Sep 23, 2024

LLVM Buildbot has detected a new failure on builder mlir-rocm-mi200 running on mi200-buildbot while building mlir at step 5 "build-check-mlir-build-only".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/177/builds/5459

Here is the relevant piece of the build log for the reference
Step 5 (build-check-mlir-build-only) failure: build (failure)
...
16.264 [617/23/4096] Linking CXX static library lib/libLLVMMCParser.a
16.372 [616/23/4097] Linking CXX static library lib/libLLVMObject.a
16.420 [611/27/4098] Linking CXX static library lib/libLLVMCGData.a
16.452 [611/26/4099] Linking CXX static library lib/libLLVMRuntimeDyld.a
16.476 [611/25/4100] Linking CXX static library lib/libLLVMDebugInfoDWARF.a
16.498 [611/24/4101] Linking CXX static library lib/libLLVMJITLink.a
16.514 [611/23/4102] Linking CXX static library lib/libLLVMDebugInfoPDB.a
16.560 [610/23/4103] Linking CXX static library lib/libLLVMSymbolize.a
16.638 [609/23/4104] Linking CXX static library lib/libLLVMProfileData.a
16.756 [608/23/4105] Building CXX object tools/mlir/lib/Conversion/VectorToXeGPU/CMakeFiles/obj.MLIRVectorToXeGPU.dir/VectorToXeGPU.cpp.o
FAILED: tools/mlir/lib/Conversion/VectorToXeGPU/CMakeFiles/obj.MLIRVectorToXeGPU.dir/VectorToXeGPU.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes /usr/bin/ccache /usr/bin/clang++ -DGTEST_HAS_RTTI=0 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/vol/worker/mi200-buildbot/mlir-rocm-mi200/build/tools/mlir/lib/Conversion/VectorToXeGPU -I/vol/worker/mi200-buildbot/mlir-rocm-mi200/llvm-project/mlir/lib/Conversion/VectorToXeGPU -I/vol/worker/mi200-buildbot/mlir-rocm-mi200/build/include -I/vol/worker/mi200-buildbot/mlir-rocm-mi200/llvm-project/llvm/include -I/vol/worker/mi200-buildbot/mlir-rocm-mi200/llvm-project/mlir/include -I/vol/worker/mi200-buildbot/mlir-rocm-mi200/build/tools/mlir/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Wundef -Werror=mismatched-tags -Werror=global-constructors -O3 -DNDEBUG  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -std=c++17 -MD -MT tools/mlir/lib/Conversion/VectorToXeGPU/CMakeFiles/obj.MLIRVectorToXeGPU.dir/VectorToXeGPU.cpp.o -MF tools/mlir/lib/Conversion/VectorToXeGPU/CMakeFiles/obj.MLIRVectorToXeGPU.dir/VectorToXeGPU.cpp.o.d -o tools/mlir/lib/Conversion/VectorToXeGPU/CMakeFiles/obj.MLIRVectorToXeGPU.dir/VectorToXeGPU.cpp.o -c /vol/worker/mi200-buildbot/mlir-rocm-mi200/llvm-project/mlir/lib/Conversion/VectorToXeGPU/VectorToXeGPU.cpp
/vol/worker/mi200-buildbot/mlir-rocm-mi200/llvm-project/mlir/lib/Conversion/VectorToXeGPU/VectorToXeGPU.cpp:172:16: error: no member named 'MemoryScope' in namespace 'mlir::xegpu'
  172 |         xegpu::MemoryScope::Global,
      |         ~~~~~~~^
/vol/worker/mi200-buildbot/mlir-rocm-mi200/llvm-project/mlir/lib/Conversion/VectorToXeGPU/VectorToXeGPU.cpp:217:57: error: no member named 'MemoryScope' in namespace 'mlir::xegpu'
  217 |         /*scattered=*/false, /*array_length=*/1, xegpu::MemoryScope::Global,
      |                                                  ~~~~~~~^
2 errors generated.
16.945 [608/22/4106] Linking CXX static library lib/libLLVMAnalysis.a
17.340 [608/21/4107] Building CXX object tools/mlir/lib/Dialect/XeGPU/Transforms/CMakeFiles/obj.MLIRXeGPUTransforms.dir/XeGPUFoldAliasOps.cpp.o
18.789 [608/20/4108] Building X86GenInstrInfo.inc...
20.735 [608/19/4109] Building CXX object tools/mlir/lib/Dialect/XeGPU/IR/CMakeFiles/obj.MLIRXeGPUDialect.dir/XeGPUDialect.cpp.o
20.900 [608/18/4110] Building CXX object tools/mlir/lib/Dialect/XeGPU/IR/CMakeFiles/obj.MLIRXeGPUDialect.dir/XeGPUOps.cpp.o
21.263 [608/17/4111] Building CXX object lib/CodeGen/AsmPrinter/CMakeFiles/LLVMAsmPrinter.dir/AsmPrinter.cpp.o
28.342 [608/16/4112] Building AMDGPUGenMCPseudoLowering.inc...
29.208 [608/15/4113] Building AMDGPUGenCallingConv.inc...
29.658 [608/14/4114] Building AMDGPUGenPostLegalizeGICombiner.inc...
29.682 [608/13/4115] Building AMDGPUGenRegBankGICombiner.inc...
29.971 [608/12/4116] Building AMDGPUGenSubtargetInfo.inc...
30.329 [608/11/4117] Building AMDGPUGenPreLegalizeGICombiner.inc...
30.645 [608/10/4118] Building AMDGPUGenMCCodeEmitter.inc...
30.948 [608/9/4119] Building AMDGPUGenDisassemblerTables.inc...
31.487 [608/8/4120] Building AMDGPUGenSearchableTables.inc...
40.742 [608/7/4121] Building AMDGPUGenAsmWriter.inc...
41.668 [608/6/4122] Building AMDGPUGenGlobalISel.inc...
42.882 [608/5/4123] Building AMDGPUGenDAGISel.inc...
43.200 [608/4/4124] Building AMDGPUGenAsmMatcher.inc...
44.094 [608/3/4125] Building AMDGPUGenInstrInfo.inc...
49.221 [608/2/4126] Building AMDGPUGenRegisterInfo.inc...
53.124 [608/1/4127] Building AMDGPUGenRegisterBank.inc...
ninja: build stopped: subcommand failed.

@llvm-ci
Copy link
Collaborator

llvm-ci commented Sep 23, 2024

LLVM Buildbot has detected a new failure on builder mlir-nvidia-gcc7 running on mlir-nvidia while building mlir at step 5 "build-check-mlir-build-only".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/116/builds/4036

Here is the relevant piece of the build log for the reference
Step 5 (build-check-mlir-build-only) failure: build (failure)
...
27.618 [290/16/4255] Linking CXX static library lib/libLLVMFrontendOffloading.a
27.845 [289/16/4256] Linking CXX static library lib/libLLVMInstrumentation.a
27.928 [288/16/4257] Linking CXX static library lib/libLLVMAggressiveInstCombine.a
28.149 [287/16/4258] Linking CXX static library lib/libLLVMInstCombine.a
28.611 [286/16/4259] Linking CXX static library lib/libLLVMScalarOpts.a
28.725 [285/16/4260] Linking CXX static library lib/libLLVMFrontendOpenMP.a
28.994 [284/16/4261] Linking CXX static library lib/libLLVMVectorize.a
29.095 [283/16/4262] Linking CXX static library lib/libLLVMObjCARCOpts.a
29.175 [282/16/4263] Linking CXX static library lib/libLLVMHipStdPar.a
29.251 [281/16/4264] Building CXX object tools/mlir/lib/Conversion/VectorToXeGPU/CMakeFiles/obj.MLIRVectorToXeGPU.dir/VectorToXeGPU.cpp.o
FAILED: tools/mlir/lib/Conversion/VectorToXeGPU/CMakeFiles/obj.MLIRVectorToXeGPU.dir/VectorToXeGPU.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes /usr/bin/ccache /usr/bin/g++-7 -DGTEST_HAS_RTTI=0 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/vol/worker/mlir-nvidia/mlir-nvidia-gcc7/llvm.obj/tools/mlir/lib/Conversion/VectorToXeGPU -I/vol/worker/mlir-nvidia/mlir-nvidia-gcc7/llvm.src/mlir/lib/Conversion/VectorToXeGPU -I/vol/worker/mlir-nvidia/mlir-nvidia-gcc7/llvm.obj/include -I/vol/worker/mlir-nvidia/mlir-nvidia-gcc7/llvm.src/llvm/include -I/vol/worker/mlir-nvidia/mlir-nvidia-gcc7/llvm.src/mlir/include -I/vol/worker/mlir-nvidia/mlir-nvidia-gcc7/llvm.obj/tools/mlir/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -fno-lifetime-dse -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wno-comment -Wno-misleading-indentation -fdiagnostics-color -ffunction-sections -fdata-sections -Wundef -Wno-unused-but-set-parameter -O3 -DNDEBUG  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -std=c++1z -MD -MT tools/mlir/lib/Conversion/VectorToXeGPU/CMakeFiles/obj.MLIRVectorToXeGPU.dir/VectorToXeGPU.cpp.o -MF tools/mlir/lib/Conversion/VectorToXeGPU/CMakeFiles/obj.MLIRVectorToXeGPU.dir/VectorToXeGPU.cpp.o.d -o tools/mlir/lib/Conversion/VectorToXeGPU/CMakeFiles/obj.MLIRVectorToXeGPU.dir/VectorToXeGPU.cpp.o -c /vol/worker/mlir-nvidia/mlir-nvidia-gcc7/llvm.src/mlir/lib/Conversion/VectorToXeGPU/VectorToXeGPU.cpp
In file included from /vol/worker/mlir-nvidia/mlir-nvidia-gcc7/llvm.src/mlir/include/mlir/Dialect/XeGPU/IR/XeGPU.h:34:0,
                 from /vol/worker/mlir-nvidia/mlir-nvidia-gcc7/llvm.src/mlir/lib/Conversion/VectorToXeGPU/VectorToXeGPU.cpp:18:
/vol/worker/mlir-nvidia/mlir-nvidia-gcc7/llvm.obj/tools/mlir/include/mlir/Dialect/XeGPU/IR/XeGPU.h.inc: In member function ‘llvm::ArrayRef<long int> mlir::xegpu::CreateNdDescOp::getStaticStrides()’:
/vol/worker/mlir-nvidia/mlir-nvidia-gcc7/llvm.obj/tools/mlir/include/mlir/Dialect/XeGPU/IR/XeGPU.h.inc:1201:26: warning: unused variable ‘offset’ [-Wunused-variable]
     auto [strides, offset] = getStridesAndOffset(memrefType);
                          ^
/vol/worker/mlir-nvidia/mlir-nvidia-gcc7/llvm.src/mlir/lib/Conversion/VectorToXeGPU/VectorToXeGPU.cpp: In function ‘mlir::xegpu::CreateNdDescOp {anonymous}::createNdDescriptor(mlir::PatternRewriter&, mlir::Location, mlir::xegpu::TensorDescType, mlir::TypedValue<mlir::MemRefType>, mlir::Operation::operand_range)’:
/vol/worker/mlir-nvidia/mlir-nvidia-gcc7/llvm.src/mlir/lib/Conversion/VectorToXeGPU/VectorToXeGPU.cpp:89:24: warning: unused variable ‘offset’ [-Wunused-variable]
   auto [strides, offset] = getStridesAndOffset(srcTy);
                        ^
/vol/worker/mlir-nvidia/mlir-nvidia-gcc7/llvm.src/mlir/lib/Conversion/VectorToXeGPU/VectorToXeGPU.cpp: In member function ‘virtual llvm::LogicalResult {anonymous}::TransferReadLowering::matchAndRewrite(mlir::vector::TransferReadOp, mlir::PatternRewriter&) const’:
/vol/worker/mlir-nvidia/mlir-nvidia-gcc7/llvm.src/mlir/lib/Conversion/VectorToXeGPU/VectorToXeGPU.cpp:172:16: error: ‘mlir::xegpu::MemoryScope’ has not been declared
         xegpu::MemoryScope::Global,
                ^~~~~~~~~~~
/vol/worker/mlir-nvidia/mlir-nvidia-gcc7/llvm.src/mlir/lib/Conversion/VectorToXeGPU/VectorToXeGPU.cpp: In member function ‘virtual llvm::LogicalResult {anonymous}::TransferWriteLowering::matchAndRewrite(mlir::vector::TransferWriteOp, mlir::PatternRewriter&) const’:
/vol/worker/mlir-nvidia/mlir-nvidia-gcc7/llvm.src/mlir/lib/Conversion/VectorToXeGPU/VectorToXeGPU.cpp:217:57: error: ‘mlir::xegpu::MemoryScope’ has not been declared
         /*scattered=*/false, /*array_length=*/1, xegpu::MemoryScope::Global,
                                                         ^~~~~~~~~~~
/vol/worker/mlir-nvidia/mlir-nvidia-gcc7/llvm.src/mlir/lib/Conversion/VectorToXeGPU/VectorToXeGPU.cpp: At global scope:
/vol/worker/mlir-nvidia/mlir-nvidia-gcc7/llvm.src/mlir/lib/Conversion/VectorToXeGPU/VectorToXeGPU.cpp:85:1: warning: ‘mlir::xegpu::CreateNdDescOp {anonymous}::createNdDescriptor(mlir::PatternRewriter&, mlir::Location, mlir::xegpu::TensorDescType, mlir::TypedValue<mlir::MemRefType>, mlir::Operation::operand_range)’ defined but not used [-Wunused-function]
 createNdDescriptor(PatternRewriter &rewriter, Location loc,
 ^~~~~~~~~~~~~~~~~~
29.268 [281/15/4265] Linking CXX static library lib/libLLVMLinker.a
30.105 [281/14/4266] Building CXX object tools/mlir/lib/Dialect/XeGPU/Transforms/CMakeFiles/obj.MLIRXeGPUTransforms.dir/XeGPUFoldAliasOps.cpp.o
In file included from /vol/worker/mlir-nvidia/mlir-nvidia-gcc7/llvm.src/mlir/include/mlir/Dialect/XeGPU/IR/XeGPU.h:34:0,
                 from /vol/worker/mlir-nvidia/mlir-nvidia-gcc7/llvm.src/mlir/lib/Dialect/XeGPU/Transforms/XeGPUFoldAliasOps.cpp:13:
/vol/worker/mlir-nvidia/mlir-nvidia-gcc7/llvm.obj/tools/mlir/include/mlir/Dialect/XeGPU/IR/XeGPU.h.inc: In member function ‘llvm::ArrayRef<long int> mlir::xegpu::CreateNdDescOp::getStaticStrides()’:
/vol/worker/mlir-nvidia/mlir-nvidia-gcc7/llvm.obj/tools/mlir/include/mlir/Dialect/XeGPU/IR/XeGPU.h.inc:1201:26: warning: unused variable ‘offset’ [-Wunused-variable]
     auto [strides, offset] = getStridesAndOffset(memrefType);
                          ^
35.691 [281/13/4267] Building CXX object tools/mlir/lib/Dialect/XeGPU/IR/CMakeFiles/obj.MLIRXeGPUDialect.dir/XeGPUDialect.cpp.o
In file included from /vol/worker/mlir-nvidia/mlir-nvidia-gcc7/llvm.src/mlir/include/mlir/Dialect/XeGPU/IR/XeGPU.h:34:0,
                 from /vol/worker/mlir-nvidia/mlir-nvidia-gcc7/llvm.src/mlir/lib/Dialect/XeGPU/IR/XeGPUDialect.cpp:9:
/vol/worker/mlir-nvidia/mlir-nvidia-gcc7/llvm.obj/tools/mlir/include/mlir/Dialect/XeGPU/IR/XeGPU.h.inc: In member function ‘llvm::ArrayRef<long int> mlir::xegpu::CreateNdDescOp::getStaticStrides()’:
/vol/worker/mlir-nvidia/mlir-nvidia-gcc7/llvm.obj/tools/mlir/include/mlir/Dialect/XeGPU/IR/XeGPU.h.inc:1201:26: warning: unused variable ‘offset’ [-Wunused-variable]
     auto [strides, offset] = getStridesAndOffset(memrefType);
                          ^

@llvm-ci
Copy link
Collaborator

llvm-ci commented Sep 23, 2024

LLVM Buildbot has detected a new failure on builder openmp-offload-sles-build-only running on rocm-worker-hw-04-sles while building mlir at step 5 "compile-openmp".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/140/builds/7234

Here is the relevant piece of the build log for the reference
Step 5 (compile-openmp) failure: build (failure)
...
/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/clang/include/clang/Basic/PointerAuthOptions.h:70:18: warning: ‘clang::PointerAuthSchema::TheKind’ is too small to hold all values of ‘enum class clang::PointerAuthSchema::Kind’
   Kind TheKind : 2;
                  ^
/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/clang/include/clang/Basic/PointerAuthOptions.h:74:58: warning: ‘clang::PointerAuthSchema::SelectedAuthenticationMode’ is too small to hold all values of ‘enum class clang::PointerAuthenticationMode’
   PointerAuthenticationMode SelectedAuthenticationMode : 2;
                                                          ^
/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/clang/include/clang/Basic/PointerAuthOptions.h:75:39: warning: ‘clang::PointerAuthSchema::DiscriminationKind’ is too small to hold all values of ‘enum class clang::PointerAuthSchema::Discrimination’
   Discrimination DiscriminationKind : 2;
                                       ^
18.140 [1966/32/4943] Building CXX object tools/mlir/lib/Conversion/VectorToXeGPU/CMakeFiles/obj.MLIRVectorToXeGPU.dir/VectorToXeGPU.cpp.o
FAILED: tools/mlir/lib/Conversion/VectorToXeGPU/CMakeFiles/obj.MLIRVectorToXeGPU.dir/VectorToXeGPU.cpp.o 
ccache /usr/bin/c++ -DGTEST_HAS_RTTI=0 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Itools/mlir/lib/Conversion/VectorToXeGPU -I/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/mlir/lib/Conversion/VectorToXeGPU -Iinclude -I/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/llvm/include -I/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/mlir/include -Itools/mlir/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -fno-lifetime-dse -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wno-comment -Wno-misleading-indentation -fdiagnostics-color -ffunction-sections -fdata-sections -Wundef -Wno-unused-but-set-parameter -O3 -DNDEBUG  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -std=c++1z -MD -MT tools/mlir/lib/Conversion/VectorToXeGPU/CMakeFiles/obj.MLIRVectorToXeGPU.dir/VectorToXeGPU.cpp.o -MF tools/mlir/lib/Conversion/VectorToXeGPU/CMakeFiles/obj.MLIRVectorToXeGPU.dir/VectorToXeGPU.cpp.o.d -o tools/mlir/lib/Conversion/VectorToXeGPU/CMakeFiles/obj.MLIRVectorToXeGPU.dir/VectorToXeGPU.cpp.o -c /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/mlir/lib/Conversion/VectorToXeGPU/VectorToXeGPU.cpp
In file included from /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/mlir/include/mlir/Dialect/XeGPU/IR/XeGPU.h:34:0,
                 from /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/mlir/lib/Conversion/VectorToXeGPU/VectorToXeGPU.cpp:18:
tools/mlir/include/mlir/Dialect/XeGPU/IR/XeGPU.h.inc: In member function ‘llvm::ArrayRef<long int> mlir::xegpu::CreateNdDescOp::getStaticStrides()’:
tools/mlir/include/mlir/Dialect/XeGPU/IR/XeGPU.h.inc:1201:26: warning: unused variable ‘offset’ [-Wunused-variable]
     auto [strides, offset] = getStridesAndOffset(memrefType);
                          ^
/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/mlir/lib/Conversion/VectorToXeGPU/VectorToXeGPU.cpp: In function ‘mlir::xegpu::CreateNdDescOp {anonymous}::createNdDescriptor(mlir::PatternRewriter&, mlir::Location, mlir::xegpu::TensorDescType, mlir::TypedValue<mlir::MemRefType>, mlir::Operation::operand_range)’:
/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/mlir/lib/Conversion/VectorToXeGPU/VectorToXeGPU.cpp:89:24: warning: unused variable ‘offset’ [-Wunused-variable]
   auto [strides, offset] = getStridesAndOffset(srcTy);
                        ^
/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/mlir/lib/Conversion/VectorToXeGPU/VectorToXeGPU.cpp: In member function ‘virtual llvm::LogicalResult {anonymous}::TransferReadLowering::matchAndRewrite(mlir::vector::TransferReadOp, mlir::PatternRewriter&) const’:
/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/mlir/lib/Conversion/VectorToXeGPU/VectorToXeGPU.cpp:172:16: error: ‘mlir::xegpu::MemoryScope’ has not been declared
         xegpu::MemoryScope::Global,
                ^~~~~~~~~~~
/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/mlir/lib/Conversion/VectorToXeGPU/VectorToXeGPU.cpp: In member function ‘virtual llvm::LogicalResult {anonymous}::TransferWriteLowering::matchAndRewrite(mlir::vector::TransferWriteOp, mlir::PatternRewriter&) const’:
/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/mlir/lib/Conversion/VectorToXeGPU/VectorToXeGPU.cpp:217:57: error: ‘mlir::xegpu::MemoryScope’ has not been declared
         /*scattered=*/false, /*array_length=*/1, xegpu::MemoryScope::Global,
                                                         ^~~~~~~~~~~
/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/mlir/lib/Conversion/VectorToXeGPU/VectorToXeGPU.cpp: At global scope:
/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/mlir/lib/Conversion/VectorToXeGPU/VectorToXeGPU.cpp:85:1: warning: ‘mlir::xegpu::CreateNdDescOp {anonymous}::createNdDescriptor(mlir::PatternRewriter&, mlir::Location, mlir::xegpu::TensorDescType, mlir::TypedValue<mlir::MemRefType>, mlir::Operation::operand_range)’ defined but not used [-Wunused-function]
 createNdDescriptor(PatternRewriter &rewriter, Location loc,
 ^~~~~~~~~~~~~~~~~~
18.140 [1966/31/4944] Building CXX object tools/clang/lib/Sema/CMakeFiles/obj.clangSema.dir/SemaPPC.cpp.o
In file included from /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/clang/include/clang/AST/Type.h:31:0,
                 from /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/clang/include/clang/Sema/SemaPPC.h:17,
                 from /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/clang/lib/Sema/SemaPPC.cpp:13:
/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/clang/include/clang/Basic/PointerAuthOptions.h:70:18: warning: ‘clang::PointerAuthSchema::TheKind’ is too small to hold all values of ‘enum class clang::PointerAuthSchema::Kind’
   Kind TheKind : 2;
                  ^
/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/clang/include/clang/Basic/PointerAuthOptions.h:74:58: warning: ‘clang::PointerAuthSchema::SelectedAuthenticationMode’ is too small to hold all values of ‘enum class clang::PointerAuthenticationMode’
   PointerAuthenticationMode SelectedAuthenticationMode : 2;
                                                          ^
/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/clang/include/clang/Basic/PointerAuthOptions.h:75:39: warning: ‘clang::PointerAuthSchema::DiscriminationKind’ is too small to hold all values of ‘enum class clang::PointerAuthSchema::Discrimination’
   Discrimination DiscriminationKind : 2;
                                       ^
18.185 [1966/30/4945] Building CXX object tools/clang/lib/Sema/CMakeFiles/obj.clangSema.dir/SemaAvailability.cpp.o
In file included from /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/clang/include/clang/AST/Type.h:31:0,

@llvm-ci
Copy link
Collaborator

llvm-ci commented Sep 23, 2024

LLVM Buildbot has detected a new failure on builder mlir-nvidia running on mlir-nvidia while building mlir at step 5 "build-check-mlir-build-only".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/138/builds/4060

Here is the relevant piece of the build log for the reference
Step 5 (build-check-mlir-build-only) failure: build (failure)
...
26.613 [590/16/4376] Creating library symlink lib/libLLVMPasses.so
26.665 [589/16/4377] Linking CXX shared library lib/libMLIRArmSMEDialect.so.20.0git
26.674 [588/16/4378] Creating library symlink lib/libMLIRArmSMEDialect.so
26.743 [587/16/4379] Linking CXX shared library lib/libMLIRGPUToVulkanTransforms.so.20.0git
26.822 [586/16/4380] Linking CXX shared library lib/libMLIRArithToArmSME.so.20.0git
26.826 [585/16/4381] Linking CXX shared library lib/libLLVMOrcJIT.so.20.0git
26.831 [584/16/4382] Creating library symlink lib/libMLIRArithToArmSME.so
26.834 [583/16/4383] Creating library symlink lib/libLLVMOrcJIT.so
26.839 [582/16/4384] Creating library symlink lib/libMLIRGPUToVulkanTransforms.so
26.851 [581/16/4385] Building CXX object tools/mlir/lib/Conversion/VectorToXeGPU/CMakeFiles/obj.MLIRVectorToXeGPU.dir/VectorToXeGPU.cpp.o
FAILED: tools/mlir/lib/Conversion/VectorToXeGPU/CMakeFiles/obj.MLIRVectorToXeGPU.dir/VectorToXeGPU.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes /usr/bin/ccache /usr/bin/clang++ -DGTEST_HAS_RTTI=0 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/vol/worker/mlir-nvidia/mlir-nvidia/llvm.obj/tools/mlir/lib/Conversion/VectorToXeGPU -I/vol/worker/mlir-nvidia/mlir-nvidia/llvm.src/mlir/lib/Conversion/VectorToXeGPU -I/vol/worker/mlir-nvidia/mlir-nvidia/llvm.obj/include -I/vol/worker/mlir-nvidia/mlir-nvidia/llvm.src/llvm/include -I/vol/worker/mlir-nvidia/mlir-nvidia/llvm.src/mlir/include -I/vol/worker/mlir-nvidia/mlir-nvidia/llvm.obj/tools/mlir/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Wundef -Werror=mismatched-tags -Werror=global-constructors -O3 -DNDEBUG  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -std=c++17 -MD -MT tools/mlir/lib/Conversion/VectorToXeGPU/CMakeFiles/obj.MLIRVectorToXeGPU.dir/VectorToXeGPU.cpp.o -MF tools/mlir/lib/Conversion/VectorToXeGPU/CMakeFiles/obj.MLIRVectorToXeGPU.dir/VectorToXeGPU.cpp.o.d -o tools/mlir/lib/Conversion/VectorToXeGPU/CMakeFiles/obj.MLIRVectorToXeGPU.dir/VectorToXeGPU.cpp.o -c /vol/worker/mlir-nvidia/mlir-nvidia/llvm.src/mlir/lib/Conversion/VectorToXeGPU/VectorToXeGPU.cpp
/vol/worker/mlir-nvidia/mlir-nvidia/llvm.src/mlir/lib/Conversion/VectorToXeGPU/VectorToXeGPU.cpp:172:16: error: no member named 'MemoryScope' in namespace 'mlir::xegpu'
        xegpu::MemoryScope::Global,
        ~~~~~~~^
/vol/worker/mlir-nvidia/mlir-nvidia/llvm.src/mlir/lib/Conversion/VectorToXeGPU/VectorToXeGPU.cpp:217:57: error: no member named 'MemoryScope' in namespace 'mlir::xegpu'
        /*scattered=*/false, /*array_length=*/1, xegpu::MemoryScope::Global,
                                                 ~~~~~~~^
2 errors generated.
26.889 [581/15/4386] Linking CXX shared library lib/libMLIRArmSMEToSCF.so.20.0git
26.936 [581/14/4387] Linking CXX shared library lib/libLLVMOrcDebugging.so.20.0git
26.960 [581/13/4388] Linking CXX shared library lib/libMLIRLLVMCommonConversion.so.20.0git
28.552 [581/12/4389] Building CXX object tools/mlir/lib/Dialect/XeGPU/Transforms/CMakeFiles/obj.MLIRXeGPUTransforms.dir/XeGPUFoldAliasOps.cpp.o
32.665 [581/11/4390] Building CXX object tools/mlir/lib/Dialect/XeGPU/IR/CMakeFiles/obj.MLIRXeGPUDialect.dir/XeGPUDialect.cpp.o
33.125 [581/10/4391] Building CXX object tools/mlir/lib/Dialect/XeGPU/IR/CMakeFiles/obj.MLIRXeGPUDialect.dir/XeGPUOps.cpp.o
34.708 [581/9/4392] Building CXX object lib/CodeGen/AsmPrinter/CMakeFiles/LLVMAsmPrinter.dir/AsmPrinter.cpp.o
54.289 [581/8/4393] Building CXX object tools/mlir/unittests/Target/LLVM/CMakeFiles/MLIRTargetLLVMTests.dir/SerializeROCDLTarget.cpp.o
54.293 [581/7/4394] Building CXX object tools/mlir/tools/mlir-lsp-server/CMakeFiles/mlir-lsp-server.dir/mlir-lsp-server.cpp.o
54.471 [581/6/4395] Building CXX object tools/mlir/tools/mlir-query/CMakeFiles/mlir-query.dir/mlir-query.cpp.o
55.872 [581/5/4396] Building CXX object tools/mlir/unittests/Target/LLVM/CMakeFiles/MLIRTargetLLVMTests.dir/SerializeNVVMTarget.cpp.o
59.297 [581/4/4397] Building CXX object tools/mlir/unittests/ExecutionEngine/CMakeFiles/MLIRExecutionEngineTests.dir/Invoke.cpp.o
59.629 [581/3/4398] Building CXX object tools/mlir/lib/CAPI/RegisterEverything/CMakeFiles/obj.MLIRCAPIRegisterEverything.dir/RegisterEverything.cpp.o
59.944 [581/2/4399] Building CXX object tools/mlir/examples/transform-opt/CMakeFiles/mlir-transform-opt.dir/mlir-transform-opt.cpp.o
60.579 [581/1/4400] Building CXX object tools/mlir/tools/mlir-reduce/CMakeFiles/mlir-reduce.dir/mlir-reduce.cpp.o
ninja: build stopped: subcommand failed.

@llvm-ci
Copy link
Collaborator

llvm-ci commented Sep 23, 2024

LLVM Buildbot has detected a new failure on builder flang-aarch64-libcxx running on linaro-flang-aarch64-libcxx while building mlir at step 5 "build-unified-tree".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/89/builds/6966

Here is the relevant piece of the build log for the reference
Step 5 (build-unified-tree) failure: build (failure)
...
54.892 [1292/32/5870] Building CXX object tools/clang/lib/StaticAnalyzer/Core/CMakeFiles/obj.clangStaticAnalyzerCore.dir/CheckerRegistryData.cpp.o
54.997 [1286/37/5871] Building CXX object tools/clang/lib/StaticAnalyzer/Core/CMakeFiles/obj.clangStaticAnalyzerCore.dir/DynamicExtent.cpp.o
55.011 [1286/36/5872] Building CXX object tools/clang/lib/StaticAnalyzer/Core/CMakeFiles/obj.clangStaticAnalyzerCore.dir/DynamicType.cpp.o
55.018 [1281/40/5873] Building CXX object tools/clang/lib/StaticAnalyzer/Core/CMakeFiles/obj.clangStaticAnalyzerCore.dir/Environment.cpp.o
55.109 [1279/41/5874] Building CXX object tools/clang/lib/StaticAnalyzer/Core/CMakeFiles/obj.clangStaticAnalyzerCore.dir/FunctionSummary.cpp.o
55.162 [1279/40/5875] Building CXX object tools/clang/lib/StaticAnalyzer/Core/CMakeFiles/obj.clangStaticAnalyzerCore.dir/LoopWidening.cpp.o
55.166 [1278/40/5876] Building CXX object tools/clang/lib/Tooling/DependencyScanning/CMakeFiles/obj.clangDependencyScanning.dir/ModuleDepCollector.cpp.o
55.176 [1278/39/5877] Building CXX object tools/clang/lib/Index/CMakeFiles/obj.clangIndex.dir/IndexingContext.cpp.o
55.196 [1277/39/5878] Building CXX object tools/clang/lib/Index/CMakeFiles/obj.clangIndex.dir/IndexDecl.cpp.o
55.220 [1277/38/5879] Building CXX object tools/mlir/lib/Conversion/VectorToXeGPU/CMakeFiles/obj.MLIRVectorToXeGPU.dir/VectorToXeGPU.cpp.o
FAILED: tools/mlir/lib/Conversion/VectorToXeGPU/CMakeFiles/obj.MLIRVectorToXeGPU.dir/VectorToXeGPU.cpp.o 
/usr/local/bin/c++ -DGTEST_HAS_RTTI=0 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/tcwg-buildbot/worker/flang-aarch64-libcxx/build/tools/mlir/lib/Conversion/VectorToXeGPU -I/home/tcwg-buildbot/worker/flang-aarch64-libcxx/llvm-project/mlir/lib/Conversion/VectorToXeGPU -I/home/tcwg-buildbot/worker/flang-aarch64-libcxx/build/include -I/home/tcwg-buildbot/worker/flang-aarch64-libcxx/llvm-project/llvm/include -I/home/tcwg-buildbot/worker/flang-aarch64-libcxx/llvm-project/mlir/include -I/home/tcwg-buildbot/worker/flang-aarch64-libcxx/build/tools/mlir/include -stdlib=libc++ -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Wundef -Werror=mismatched-tags -Werror=global-constructors -O3 -DNDEBUG -std=c++17  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -MD -MT tools/mlir/lib/Conversion/VectorToXeGPU/CMakeFiles/obj.MLIRVectorToXeGPU.dir/VectorToXeGPU.cpp.o -MF tools/mlir/lib/Conversion/VectorToXeGPU/CMakeFiles/obj.MLIRVectorToXeGPU.dir/VectorToXeGPU.cpp.o.d -o tools/mlir/lib/Conversion/VectorToXeGPU/CMakeFiles/obj.MLIRVectorToXeGPU.dir/VectorToXeGPU.cpp.o -c /home/tcwg-buildbot/worker/flang-aarch64-libcxx/llvm-project/mlir/lib/Conversion/VectorToXeGPU/VectorToXeGPU.cpp
../llvm-project/mlir/lib/Conversion/VectorToXeGPU/VectorToXeGPU.cpp:172:16: error: no member named 'MemoryScope' in namespace 'mlir::xegpu'
  172 |         xegpu::MemoryScope::Global,
      |         ~~~~~~~^
../llvm-project/mlir/lib/Conversion/VectorToXeGPU/VectorToXeGPU.cpp:217:57: error: no member named 'MemoryScope' in namespace 'mlir::xegpu'
  217 |         /*scattered=*/false, /*array_length=*/1, xegpu::MemoryScope::Global,
      |                                                  ~~~~~~~^
2 errors generated.
55.255 [1277/37/5880] Building CXX object tools/clang/lib/Tooling/DependencyScanning/CMakeFiles/obj.clangDependencyScanning.dir/DependencyScanningWorker.cpp.o
55.260 [1277/36/5881] Building CXX object tools/clang/lib/StaticAnalyzer/Core/CMakeFiles/obj.clangStaticAnalyzerCore.dir/MemRegion.cpp.o
55.268 [1277/35/5882] Building CXX object tools/clang/lib/Index/CMakeFiles/obj.clangIndex.dir/IndexBody.cpp.o
55.276 [1277/34/5883] Building CXX object tools/clang/lib/Index/CMakeFiles/obj.clangIndex.dir/IndexingAction.cpp.o
55.298 [1277/33/5884] Building CXX object tools/clang/lib/Index/CMakeFiles/obj.clangIndex.dir/IndexTypeSourceInfo.cpp.o
55.385 [1277/32/5885] Building CXX object tools/clang/lib/InstallAPI/CMakeFiles/obj.clangInstallAPI.dir/Visitor.cpp.o
55.402 [1277/31/5886] Building CXX object tools/clang/lib/StaticAnalyzer/Core/CMakeFiles/obj.clangStaticAnalyzerCore.dir/CallDescription.cpp.o
55.405 [1277/30/5887] Building CXX object tools/clang/lib/InstallAPI/CMakeFiles/obj.clangInstallAPI.dir/Frontend.cpp.o
55.410 [1277/29/5888] Building CXX object tools/clang/lib/StaticAnalyzer/Core/CMakeFiles/obj.clangStaticAnalyzerCore.dir/CallEvent.cpp.o
55.428 [1277/28/5889] Building CXX object tools/clang/lib/StaticAnalyzer/Core/CMakeFiles/obj.clangStaticAnalyzerCore.dir/AnalysisManager.cpp.o
55.463 [1277/27/5890] Building CXX object tools/clang/lib/StaticAnalyzer/Core/CMakeFiles/obj.clangStaticAnalyzerCore.dir/CheckerHelpers.cpp.o
55.473 [1277/26/5891] Building CXX object tools/clang/lib/StaticAnalyzer/Core/CMakeFiles/obj.clangStaticAnalyzerCore.dir/CheckerManager.cpp.o
55.484 [1277/25/5892] Building CXX object tools/clang/lib/StaticAnalyzer/Core/CMakeFiles/obj.clangStaticAnalyzerCore.dir/CoreEngine.cpp.o
55.491 [1277/24/5893] Building CXX object tools/clang/lib/StaticAnalyzer/Core/CMakeFiles/obj.clangStaticAnalyzerCore.dir/BugReporterVisitors.cpp.o
55.500 [1277/23/5894] Building CXX object tools/clang/lib/StaticAnalyzer/Core/CMakeFiles/obj.clangStaticAnalyzerCore.dir/BugSuppression.cpp.o
55.516 [1277/22/5895] Building CXX object tools/clang/lib/StaticAnalyzer/Core/CMakeFiles/obj.clangStaticAnalyzerCore.dir/BugReporter.cpp.o
55.530 [1277/21/5896] Building CXX object tools/clang/lib/StaticAnalyzer/Core/CMakeFiles/obj.clangStaticAnalyzerCore.dir/CheckerContext.cpp.o
55.577 [1277/20/5897] Building CXX object tools/clang/lib/StaticAnalyzer/Core/CMakeFiles/obj.clangStaticAnalyzerCore.dir/ExprEngine.cpp.o
55.596 [1277/19/5898] Building CXX object tools/clang/lib/StaticAnalyzer/Core/CMakeFiles/obj.clangStaticAnalyzerCore.dir/ExprEngineC.cpp.o
55.615 [1277/18/5899] Building CXX object tools/clang/lib/StaticAnalyzer/Core/CMakeFiles/obj.clangStaticAnalyzerCore.dir/ExplodedGraph.cpp.o
55.707 [1277/17/5900] Building CXX object tools/clang/lib/StaticAnalyzer/Core/CMakeFiles/obj.clangStaticAnalyzerCore.dir/HTMLDiagnostics.cpp.o
55.711 [1277/16/5901] Building CXX object tools/clang/lib/StaticAnalyzer/Core/CMakeFiles/obj.clangStaticAnalyzerCore.dir/ExprEngineCXX.cpp.o
55.744 [1277/15/5902] Building CXX object tools/clang/lib/StaticAnalyzer/Core/CMakeFiles/obj.clangStaticAnalyzerCore.dir/ExprEngineCallAndReturn.cpp.o
55.766 [1277/14/5903] Building CXX object tools/clang/lib/StaticAnalyzer/Core/CMakeFiles/obj.clangStaticAnalyzerCore.dir/LoopUnrolling.cpp.o
55.800 [1277/13/5904] Building CXX object tools/clang/lib/StaticAnalyzer/Core/CMakeFiles/obj.clangStaticAnalyzerCore.dir/ExprEngineObjC.cpp.o
55.807 [1277/12/5905] Building CXX object tools/clang/lib/StaticAnalyzer/Core/CMakeFiles/obj.clangStaticAnalyzerCore.dir/PlistDiagnostics.cpp.o
55.824 [1277/11/5906] Building CXX object tools/mlir/lib/Dialect/XeGPU/IR/CMakeFiles/obj.MLIRXeGPUDialect.dir/XeGPUDialect.cpp.o
56.036 [1277/10/5907] Building CXX object tools/mlir/lib/Dialect/XeGPU/IR/CMakeFiles/obj.MLIRXeGPUDialect.dir/XeGPUOps.cpp.o
56.498 [1277/9/5908] Building CXX object lib/LTO/CMakeFiles/LLVMLTO.dir/LTO.cpp.o
60.236 [1277/8/5909] Building CXX object tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/HIPUtility.cpp.o

@llvm-ci
Copy link
Collaborator

llvm-ci commented Sep 23, 2024

LLVM Buildbot has detected a new failure on builder ppc64le-mlir-rhel-clang running on ppc64le-mlir-rhel-test while building mlir at step 5 "build-check-mlir-build-only".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/129/builds/6275

Here is the relevant piece of the build log for the reference
Step 5 (build-check-mlir-build-only) failure: build (failure)
...
51.494 [51/25/3978] Linking CXX static library lib/libMLIRToLLVMIRTranslationRegistration.a
51.518 [50/25/3979] Linking CXX static library lib/libMLIRVectorToLLVMPass.a
51.519 [49/25/3980] Linking CXX static library lib/libMLIRVectorTransformOps.a
51.555 [49/24/3981] Linking CXX executable tools/mlir/unittests/Dialect/LLVMIR/MLIRLLVMIRTests
51.585 [49/23/3982] Linking CXX static library lib/libLLVMPasses.a
51.787 [47/24/3983] Linking CXX static library lib/libMLIRLLVMTestPasses.a
51.790 [47/23/3984] Linking CXX static library lib/libMLIRCAPITarget.a
51.861 [47/22/3985] Linking CXX static library lib/libMLIRExecutionEngineUtils.a
51.869 [46/22/3986] Linking CXX static library lib/libLLVMOrcJIT.a
51.912 [46/21/3987] Building CXX object tools/mlir/lib/Conversion/VectorToXeGPU/CMakeFiles/obj.MLIRVectorToXeGPU.dir/VectorToXeGPU.cpp.o
FAILED: tools/mlir/lib/Conversion/VectorToXeGPU/CMakeFiles/obj.MLIRVectorToXeGPU.dir/VectorToXeGPU.cpp.o 
ccache /home/buildbots/llvm-external-buildbots/clang.16.0.1/bin/clang++ -DGTEST_HAS_RTTI=0 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-mlir-rhel-test/ppc64le-mlir-rhel-clang-build/build/tools/mlir/lib/Conversion/VectorToXeGPU -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-mlir-rhel-test/ppc64le-mlir-rhel-clang-build/llvm-project/mlir/lib/Conversion/VectorToXeGPU -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-mlir-rhel-test/ppc64le-mlir-rhel-clang-build/build/include -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-mlir-rhel-test/ppc64le-mlir-rhel-clang-build/llvm-project/llvm/include -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-mlir-rhel-test/ppc64le-mlir-rhel-clang-build/llvm-project/mlir/include -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-mlir-rhel-test/ppc64le-mlir-rhel-clang-build/build/tools/mlir/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Wundef -Werror=mismatched-tags -Werror=global-constructors -O3 -DNDEBUG -std=c++17  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -MD -MT tools/mlir/lib/Conversion/VectorToXeGPU/CMakeFiles/obj.MLIRVectorToXeGPU.dir/VectorToXeGPU.cpp.o -MF tools/mlir/lib/Conversion/VectorToXeGPU/CMakeFiles/obj.MLIRVectorToXeGPU.dir/VectorToXeGPU.cpp.o.d -o tools/mlir/lib/Conversion/VectorToXeGPU/CMakeFiles/obj.MLIRVectorToXeGPU.dir/VectorToXeGPU.cpp.o -c /home/buildbots/llvm-external-buildbots/workers/ppc64le-mlir-rhel-test/ppc64le-mlir-rhel-clang-build/llvm-project/mlir/lib/Conversion/VectorToXeGPU/VectorToXeGPU.cpp
/home/buildbots/llvm-external-buildbots/workers/ppc64le-mlir-rhel-test/ppc64le-mlir-rhel-clang-build/llvm-project/mlir/lib/Conversion/VectorToXeGPU/VectorToXeGPU.cpp:172:16: error: no member named 'MemoryScope' in namespace 'mlir::xegpu'
        xegpu::MemoryScope::Global,
        ~~~~~~~^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-mlir-rhel-test/ppc64le-mlir-rhel-clang-build/llvm-project/mlir/lib/Conversion/VectorToXeGPU/VectorToXeGPU.cpp:217:57: error: no member named 'MemoryScope' in namespace 'mlir::xegpu'
        /*scattered=*/false, /*array_length=*/1, xegpu::MemoryScope::Global,
                                                 ~~~~~~~^
2 errors generated.
52.016 [46/20/3988] Linking CXX executable tools/mlir/unittests/Dialect/AMDGPU/MLIRAMDGPUTests
52.082 [46/19/3989] Linking CXX static library lib/libMLIRTargetLLVM.a
52.357 [46/18/3990] Building CXX object tools/mlir/lib/Dialect/XeGPU/Transforms/CMakeFiles/obj.MLIRXeGPUTransforms.dir/XeGPUFoldAliasOps.cpp.o
52.590 [46/17/3991] Linking CXX executable tools/mlir/unittests/Dialect/OpenACC/MLIROpenACCTests
53.031 [46/16/3992] Linking CXX executable tools/mlir/unittests/TableGen/MLIRTableGenTests
53.093 [46/15/3993] Linking CXX executable tools/mlir/unittests/Dialect/Transform/MLIRTransformDialectTests
53.166 [46/14/3994] Linking CXX executable tools/mlir/unittests/IR/MLIRIRTests
53.526 [46/13/3995] Linking CXX executable tools/mlir/unittests/Parser/MLIRParserTests
54.027 [46/12/3996] Linking CXX executable tools/mlir/unittests/Dialect/ArmSME/MLIRArmSMETests
65.813 [46/11/3997] Building CXX object tools/mlir/lib/Dialect/XeGPU/IR/CMakeFiles/obj.MLIRXeGPUDialect.dir/XeGPUDialect.cpp.o
65.983 [46/10/3998] Building CXX object tools/mlir/lib/Dialect/XeGPU/IR/CMakeFiles/obj.MLIRXeGPUDialect.dir/XeGPUOps.cpp.o
69.216 [46/9/3999] Building CXX object lib/CodeGen/AsmPrinter/CMakeFiles/LLVMAsmPrinter.dir/AsmPrinter.cpp.o
93.586 [46/8/4000] Building CXX object tools/mlir/unittests/Target/LLVM/CMakeFiles/MLIRTargetLLVMTests.dir/SerializeROCDLTarget.cpp.o
96.202 [46/7/4001] Building CXX object tools/mlir/tools/mlir-query/CMakeFiles/mlir-query.dir/mlir-query.cpp.o
97.346 [46/6/4002] Building CXX object tools/mlir/lib/CAPI/RegisterEverything/CMakeFiles/obj.MLIRCAPIRegisterEverything.dir/RegisterEverything.cpp.o
100.451 [46/5/4003] Building CXX object tools/mlir/tools/mlir-reduce/CMakeFiles/mlir-reduce.dir/mlir-reduce.cpp.o
107.451 [46/4/4004] Building CXX object tools/mlir/unittests/Target/LLVM/CMakeFiles/MLIRTargetLLVMTests.dir/SerializeNVVMTarget.cpp.o
117.194 [46/3/4005] Building CXX object tools/mlir/tools/mlir-lsp-server/CMakeFiles/mlir-lsp-server.dir/mlir-lsp-server.cpp.o
118.656 [46/2/4006] Building CXX object tools/mlir/unittests/ExecutionEngine/CMakeFiles/MLIRExecutionEngineTests.dir/Invoke.cpp.o
134.951 [46/1/4007] Building CXX object tools/mlir/tools/mlir-opt/CMakeFiles/mlir-opt.dir/mlir-opt.cpp.o
ninja: build stopped: subcommand failed.

@llvm-ci
Copy link
Collaborator

llvm-ci commented Sep 23, 2024

LLVM Buildbot has detected a new failure on builder flang-aarch64-release running on linaro-flang-aarch64-release while building mlir at step 5 "build-unified-tree".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/172/builds/3853

Here is the relevant piece of the build log for the reference
Step 5 (build-unified-tree) failure: build (failure)
...
36.187 [1976/20/4677] Copying clang's vadefs.h...
36.187 [1976/19/4678] Copying clang's yvals_core.h...
36.187 [1976/18/4679] Copying clang's mm_malloc.h...
36.188 [1976/17/4680] Copying clang's cuda_wrappers/algorithm...
36.189 [1976/16/4681] Copying clang's cuda_wrappers/cmath...
36.192 [1976/15/4682] Copying clang's cuda_wrappers/complex...
36.196 [1976/14/4683] Copying clang's cuda_wrappers/new...
36.967 [1976/13/4684] Linking CXX executable bin/llvm-lto
37.007 [1976/12/4685] Linking CXX shared library lib/libLTO.so.20.0git
39.625 [1976/11/4686] Building CXX object tools/mlir/lib/Conversion/VectorToXeGPU/CMakeFiles/obj.MLIRVectorToXeGPU.dir/VectorToXeGPU.cpp.o
FAILED: tools/mlir/lib/Conversion/VectorToXeGPU/CMakeFiles/obj.MLIRVectorToXeGPU.dir/VectorToXeGPU.cpp.o 
/usr/local/bin/c++ -DGTEST_HAS_RTTI=0 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/tcwg-buildbot/worker/flang-aarch64-release/build/tools/mlir/lib/Conversion/VectorToXeGPU -I/home/tcwg-buildbot/worker/flang-aarch64-release/llvm-project/mlir/lib/Conversion/VectorToXeGPU -I/home/tcwg-buildbot/worker/flang-aarch64-release/build/include -I/home/tcwg-buildbot/worker/flang-aarch64-release/llvm-project/llvm/include -I/home/tcwg-buildbot/worker/flang-aarch64-release/llvm-project/mlir/include -I/home/tcwg-buildbot/worker/flang-aarch64-release/build/tools/mlir/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Wundef -Werror=mismatched-tags -Werror=global-constructors -O3 -DNDEBUG -std=c++17  -fno-exceptions -funwind-tables -fno-rtti -MD -MT tools/mlir/lib/Conversion/VectorToXeGPU/CMakeFiles/obj.MLIRVectorToXeGPU.dir/VectorToXeGPU.cpp.o -MF tools/mlir/lib/Conversion/VectorToXeGPU/CMakeFiles/obj.MLIRVectorToXeGPU.dir/VectorToXeGPU.cpp.o.d -o tools/mlir/lib/Conversion/VectorToXeGPU/CMakeFiles/obj.MLIRVectorToXeGPU.dir/VectorToXeGPU.cpp.o -c /home/tcwg-buildbot/worker/flang-aarch64-release/llvm-project/mlir/lib/Conversion/VectorToXeGPU/VectorToXeGPU.cpp
../llvm-project/mlir/lib/Conversion/VectorToXeGPU/VectorToXeGPU.cpp:172:16: error: no member named 'MemoryScope' in namespace 'mlir::xegpu'
  172 |         xegpu::MemoryScope::Global,
      |         ~~~~~~~^
../llvm-project/mlir/lib/Conversion/VectorToXeGPU/VectorToXeGPU.cpp:217:57: error: no member named 'MemoryScope' in namespace 'mlir::xegpu'
  217 |         /*scattered=*/false, /*array_length=*/1, xegpu::MemoryScope::Global,
      |                                                  ~~~~~~~^
2 errors generated.
41.793 [1976/10/4687] Building CXX object tools/mlir/lib/Dialect/XeGPU/Transforms/CMakeFiles/obj.MLIRXeGPUTransforms.dir/XeGPUFoldAliasOps.cpp.o
47.047 [1976/9/4688] Building CXX object tools/mlir/lib/Dialect/XeGPU/IR/CMakeFiles/obj.MLIRXeGPUDialect.dir/XeGPUDialect.cpp.o
60.875 [1976/8/4689] Building CXX object tools/mlir/lib/Dialect/XeGPU/IR/CMakeFiles/obj.MLIRXeGPUDialect.dir/XeGPUOps.cpp.o
73.425 [1976/7/4690] Building CXX object tools/mlir/tools/mlir-query/CMakeFiles/mlir-query.dir/mlir-query.cpp.o
81.335 [1976/6/4691] Building CXX object tools/mlir/lib/CAPI/RegisterEverything/CMakeFiles/obj.MLIRCAPIRegisterEverything.dir/RegisterEverything.cpp.o
82.539 [1976/5/4692] Building CXX object tools/mlir/tools/mlir-opt/CMakeFiles/mlir-opt.dir/mlir-opt.cpp.o
83.079 [1976/4/4693] Building CXX object tools/mlir/tools/mlir-opt/CMakeFiles/MLIRMlirOptMain.dir/mlir-opt.cpp.o
85.734 [1976/3/4694] Building CXX object tools/mlir/examples/transform-opt/CMakeFiles/mlir-transform-opt.dir/mlir-transform-opt.cpp.o
97.341 [1976/2/4695] Building CXX object tools/mlir/tools/mlir-lsp-server/CMakeFiles/mlir-lsp-server.dir/mlir-lsp-server.cpp.o
104.334 [1976/1/4696] Building CXX object tools/mlir/tools/mlir-reduce/CMakeFiles/mlir-reduce.dir/mlir-reduce.cpp.o
ninja: build stopped: subcommand failed.

@llvm-ci
Copy link
Collaborator

llvm-ci commented Sep 23, 2024

LLVM Buildbot has detected a new failure on builder flang-aarch64-rel-assert running on linaro-flang-aarch64-rel-assert while building mlir at step 5 "build-unified-tree".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/29/builds/4152

Here is the relevant piece of the build log for the reference
Step 5 (build-unified-tree) failure: build (failure)
...
61.232 [2831/10/4025] Building CXX object tools/mlir/test/lib/Dialect/Linalg/CMakeFiles/MLIRLinalgTestPasses.dir/TestDataLayoutPropagation.cpp.o
61.233 [2831/9/4026] Linking CXX static library lib/libMLIRArmSMEToSCF.a
61.233 [2831/8/4027] Linking CXX static library lib/libMLIRMemRefToEmitC.a
61.233 [2831/7/4028] Linking CXX static library lib/libMLIRArithToAMDGPU.a
61.233 [2831/6/4029] Linking CXX static library lib/libMLIRArithToArmSME.a
61.236 [2831/5/4030] Building CXX object tools/mlir/lib/CAPI/RegisterEverything/CMakeFiles/obj.MLIRCAPIRegisterEverything.dir/RegisterEverything.cpp.o
61.237 [2831/4/4031] Linking CXX static library lib/libMLIRArmNeon2dToIntr.a
61.237 [2831/3/4032] Linking CXX static library lib/libMLIRTosaToArith.a
61.237 [2831/2/4033] Linking CXX static library lib/libMLIRComplexToStandard.a
61.737 [2831/1/4034] Building CXX object tools/mlir/lib/Conversion/VectorToXeGPU/CMakeFiles/obj.MLIRVectorToXeGPU.dir/VectorToXeGPU.cpp.o
FAILED: tools/mlir/lib/Conversion/VectorToXeGPU/CMakeFiles/obj.MLIRVectorToXeGPU.dir/VectorToXeGPU.cpp.o 
/usr/local/bin/c++ -DGTEST_HAS_RTTI=0 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/tcwg-buildbot/worker/flang-aarch64-rel-assert/build/tools/mlir/lib/Conversion/VectorToXeGPU -I/home/tcwg-buildbot/worker/flang-aarch64-rel-assert/llvm-project/mlir/lib/Conversion/VectorToXeGPU -I/home/tcwg-buildbot/worker/flang-aarch64-rel-assert/build/include -I/home/tcwg-buildbot/worker/flang-aarch64-rel-assert/llvm-project/llvm/include -I/home/tcwg-buildbot/worker/flang-aarch64-rel-assert/llvm-project/mlir/include -I/home/tcwg-buildbot/worker/flang-aarch64-rel-assert/build/tools/mlir/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Wundef -Werror=mismatched-tags -Werror=global-constructors -O3 -DNDEBUG -std=c++17  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -MD -MT tools/mlir/lib/Conversion/VectorToXeGPU/CMakeFiles/obj.MLIRVectorToXeGPU.dir/VectorToXeGPU.cpp.o -MF tools/mlir/lib/Conversion/VectorToXeGPU/CMakeFiles/obj.MLIRVectorToXeGPU.dir/VectorToXeGPU.cpp.o.d -o tools/mlir/lib/Conversion/VectorToXeGPU/CMakeFiles/obj.MLIRVectorToXeGPU.dir/VectorToXeGPU.cpp.o -c /home/tcwg-buildbot/worker/flang-aarch64-rel-assert/llvm-project/mlir/lib/Conversion/VectorToXeGPU/VectorToXeGPU.cpp
../llvm-project/mlir/lib/Conversion/VectorToXeGPU/VectorToXeGPU.cpp:172:16: error: no member named 'MemoryScope' in namespace 'mlir::xegpu'
  172 |         xegpu::MemoryScope::Global,
      |         ~~~~~~~^
../llvm-project/mlir/lib/Conversion/VectorToXeGPU/VectorToXeGPU.cpp:217:57: error: no member named 'MemoryScope' in namespace 'mlir::xegpu'
  217 |         /*scattered=*/false, /*array_length=*/1, xegpu::MemoryScope::Global,
      |                                                  ~~~~~~~^
2 errors generated.
ninja: build stopped: subcommand failed.

@llvm-ci
Copy link
Collaborator

llvm-ci commented Sep 23, 2024

LLVM Buildbot has detected a new failure on builder flang-aarch64-latest-gcc running on linaro-flang-aarch64-latest-gcc while building mlir at step 5 "build-unified-tree".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/130/builds/3964

Here is the relevant piece of the build log for the reference
Step 5 (build-unified-tree) failure: build (failure)
...
57.820 [2890/10/4310] Creating library symlink lib/libMLIRPDLToPDLInterp.so
57.823 [2890/9/4311] Building CXX object tools/mlir/lib/Target/LLVMIR/Dialect/NVVM/CMakeFiles/obj.MLIRNVVMToLLVMIRTranslation.dir/NVVMToLLVMIRTranslation.cpp.o
57.826 [2890/8/4312] Creating library symlink lib/libMLIRSubsetOpInterface.so
57.839 [2888/9/4313] Building CXX object tools/mlir/lib/Target/LLVM/CMakeFiles/obj.MLIRTargetLLVM.dir/ModuleToObject.cpp.o
57.986 [2888/8/4314] Linking CXX shared library lib/libMLIRArithUtils.so.20.0git
58.040 [2872/23/4315] Creating library symlink lib/libMLIRArithUtils.so
58.046 [2872/22/4316] Linking CXX shared library lib/libMLIRRewritePDL.so.20.0git
58.145 [2872/21/4317] Linking CXX shared library lib/libMLIRTargetLLVMIRImport.so.20.0git
58.177 [2872/20/4318] Linking CXX shared library lib/libMLIRSparseTensorDialect.so.20.0git
58.223 [2872/19/4319] Building CXX object tools/mlir/lib/Conversion/VectorToXeGPU/CMakeFiles/obj.MLIRVectorToXeGPU.dir/VectorToXeGPU.cpp.o
FAILED: tools/mlir/lib/Conversion/VectorToXeGPU/CMakeFiles/obj.MLIRVectorToXeGPU.dir/VectorToXeGPU.cpp.o 
/usr/local/bin/c++ -DGTEST_HAS_RTTI=0 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/tcwg-buildbot/worker/flang-aarch64-latest-gcc/build/tools/mlir/lib/Conversion/VectorToXeGPU -I/home/tcwg-buildbot/worker/flang-aarch64-latest-gcc/llvm-project/mlir/lib/Conversion/VectorToXeGPU -I/home/tcwg-buildbot/worker/flang-aarch64-latest-gcc/build/include -I/home/tcwg-buildbot/worker/flang-aarch64-latest-gcc/llvm-project/llvm/include -I/home/tcwg-buildbot/worker/flang-aarch64-latest-gcc/llvm-project/mlir/include -I/home/tcwg-buildbot/worker/flang-aarch64-latest-gcc/build/tools/mlir/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -fno-lifetime-dse -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -
Wno-long-long -Wimplicit-fallthrough -Wno-maybe-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Wundef -O3 -DNDEBUG -std=c++17  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -MD -MT tools/mlir/lib/Conversion/VectorToXeGPU/CMakeFiles/obj.MLIRVectorToXeGPU.dir/VectorToXeGPU.cpp.o -MF tools/mlir/lib/Conversion/VectorToXeGPU/CMakeFiles/obj.MLIRVectorToXeGPU.dir/VectorToXeGPU.cpp.o.d -o tools/mlir/lib/Conversion/VectorToXeGPU/CMakeFiles/obj.MLIRVectorToXeGPU.dir/VectorToXeGPU.cpp.o -c /home/tcwg-buildbot/worker/flang-aarch64-latest-gcc/llvm-project/mlir/lib/Conversion/VectorToXeGPU/VectorToXeGPU.cpp
../llvm-project/mlir/lib/Conversion/VectorToXeGPU/VectorToXeGPU.cpp: In member function ‘virtual llvm::LogicalResult {anonymous}::TransferReadLowering::matchAndRewrite(mlir::vector::TransferReadOp, mlir::PatternRewriter&) const’:
../llvm-project/mlir/lib/Conversion/VectorToXeGPU/VectorToXeGPU.cpp:172:16: error: ‘mlir::xegpu::MemoryScope’ has not been declared
  172 |         xegpu::MemoryScope::Global,
      |                ^~~~~~~~~~~
../llvm-project/mlir/lib/Conversion/VectorToXeGPU/VectorToXeGPU.cpp: In member function ‘virtual llvm::LogicalResult {anonymous}::TransferWriteLowering::matchAndRewrite(mlir::vector::TransferWriteOp, mlir::PatternRewriter&) const’:
../llvm-project/mlir/lib/Conversion/VectorToXeGPU/VectorToXeGPU.cpp:217:57: error: ‘mlir::xegpu::MemoryScope’ has not been declared
  217 |         /*scattered=*/false, /*array_length=*/1, xegpu::MemoryScope::Global,
      |                                                         ^~~~~~~~~~~
../llvm-project/mlir/lib/Conversion/VectorToXeGPU/VectorToXeGPU.cpp: At global scope:
../llvm-project/mlir/lib/Conversion/VectorToXeGPU/VectorToXeGPU.cpp:85:1: warning: ‘mlir::xegpu::CreateNdDescOp {anonymous}::createNdDescriptor(mlir::PatternRewriter&, mlir::Location, mlir::xegpu::TensorDescType, mlir::TypedValue<mlir::MemRefType>, mlir::Operation::operand_range)’ defined but not used [-Wunused-function]
   85 | createNdDescriptor(PatternRewriter &rewriter, Location loc,
      | ^~~~~~~~~~~~~~~~~~

58.224 [2872/18/4320] Building CXX object tools/mlir/lib/Tools/Plugins/CMakeFiles/obj.MLIRPluginsLib.dir/PassPlugin.cpp.o
58.230 [2872/17/4321] Building CXX object tools/mlir/lib/Target/LLVM/CMakeFiles/obj.MLIRROCDLTarget.dir/ROCDL/Target.cpp.o
58.232 [2872/16/4322] Building CXX object tools/mlir/lib/Target/LLVM/CMakeFiles/obj.MLIRROCDLTarget.dir/ROCDL/Utils.cpp.o
58.238 [2872/15/4323] Building CXX object tools/mlir/lib/Tools/mlir-pdll-lsp-server/CMakeFiles/MLIRPdllLspServerLib.dir/MlirPdllLspServerMain.cpp.o
58.239 [2872/14/4324] Building CXX object tools/mlir/lib/Tools/mlir-pdll-lsp-server/CMakeFiles/MLIRPdllLspServerLib.dir/LSPServer.cpp.o
58.240 [2872/13/4325] Building CXX object tools/mlir/lib/Tools/mlir-opt/CMakeFiles/obj.MLIROptLib.dir/MlirOptMain.cpp.o
58.241 [2872/12/4326] Building CXX object tools/mlir/lib/Tools/mlir-pdll-lsp-server/CMakeFiles/MLIRPdllLspServerLib.dir/PDLLServer.cpp.o
58.242 [2872/11/4327] Building CXX object tools/mlir/lib/Tools/Plugins/CMakeFiles/obj.MLIRPluginsLib.dir/DialectPlugin.cpp.o
58.245 [2872/10/4328] Building CXX object tools/mlir/lib/Transforms/CMakeFiles/obj.MLIRTransforms.dir/ControlFlowSink.cpp.o
58.251 [2872/9/4329] Building CXX object tools/mlir/lib/Transforms/CMakeFiles/obj.MLIRTransforms.dir/Canonicalizer.cpp.o
58.260 [2872/8/4330] Building CXX object tools/mlir/lib/Transforms/CMakeFiles/obj.MLIRTransforms.dir/CompositePass.cpp.o
58.261 [2872/7/4331] Building CXX object tools/mlir/test/lib/Interfaces/LoopLikeInterface/CMakeFiles/MLIRLoopLikeInterfaceTestPasses.dir/TestBlockInLoop.cpp.o
58.262 [2872/6/4332] Building CXX object tools/mlir/lib/Tools/mlir-query/CMakeFiles/obj.MLIRQueryLib.dir/MlirQueryMain.cpp.o
58.267 [2872/5/4333] Building CXX object tools/mlir/lib/Tools/PDLL/CodeGen/CMakeFiles/obj.MLIRPDLLCodeGen.dir/CPPGen.cpp.o
58.275 [2872/4/4334] Building CXX object tools/mlir/lib/Tools/PDLL/CodeGen/CMakeFiles/obj.MLIRPDLLCodeGen.dir/MLIRGen.cpp.o
63.790 [2872/3/4335] Building CXX object tools/mlir/lib/Dialect/XeGPU/Transforms/CMakeFiles/obj.MLIRXeGPUTransforms.dir/XeGPUFoldAliasOps.cpp.o
69.425 [2872/2/4336] Building CXX object tools/mlir/lib/Dialect/XeGPU/IR/CMakeFiles/obj.MLIRXeGPUDialect.dir/XeGPUDialect.cpp.o
71.537 [2872/1/4337] Building CXX object tools/mlir/lib/Dialect/XeGPU/IR/CMakeFiles/obj.MLIRXeGPUDialect.dir/XeGPUOps.cpp.o
ninja: build stopped: subcommand failed.

@llvm-ci
Copy link
Collaborator

llvm-ci commented Sep 23, 2024

LLVM Buildbot has detected a new failure on builder flang-aarch64-sharedlibs running on linaro-flang-aarch64-sharedlibs while building mlir at step 5 "build-unified-tree".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/80/builds/4006

Here is the relevant piece of the build log for the reference
Step 5 (build-unified-tree) failure: build (failure)
...
63.820 [2649/28/4729] Building ShapeInferenceOpInterfaces.h.inc...
63.820 [2649/27/4730] Building MyExtension.h.inc...
63.821 [2649/26/4731] Building MyExtensionTypes.h.inc...
63.824 [2649/25/4732] Building MyExtension.cpp.inc...
63.826 [2649/24/4733] Creating library symlink lib/libMLIRArithTestPasses.so
63.844 [2649/23/4734] Linking CXX shared library lib/libMLIRMathTestPasses.so.20.0git
63.845 [2649/22/4735] Linking CXX shared library lib/libMLIRCAPIExecutionEngine.so.20.0git
63.868 [2649/21/4736] Building CXX object tools/mlir/examples/minimal-opt/CMakeFiles/mlir-minimal-opt-canonicalize.dir/mlir-minimal-opt-canonicalize.cpp.o
63.872 [2649/20/4737] Linking CXX shared library lib/libMLIRAffineToStandard.so.20.0git
63.942 [2649/19/4738] Building CXX object tools/mlir/lib/Conversion/VectorToXeGPU/CMakeFiles/obj.MLIRVectorToXeGPU.dir/VectorToXeGPU.cpp.o
FAILED: tools/mlir/lib/Conversion/VectorToXeGPU/CMakeFiles/obj.MLIRVectorToXeGPU.dir/VectorToXeGPU.cpp.o 
/usr/local/bin/c++ -DGTEST_HAS_RTTI=0 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/tcwg-buildbot/worker/flang-aarch64-sharedlibs/build/tools/mlir/lib/Conversion/VectorToXeGPU -I/home/tcwg-buildbot/worker/flang-aarch64-sharedlibs/llvm-project/mlir/lib/Conversion/VectorToXeGPU -I/home/tcwg-buildbot/worker/flang-aarch64-sharedlibs/build/include -I/home/tcwg-buildbot/worker/flang-aarch64-sharedlibs/llvm-project/llvm/include -I/home/tcwg-buildbot/worker/flang-aarch64-sharedlibs/llvm-project/mlir/include -I/home/tcwg-buildbot/worker/flang-aarch64-sharedlibs/build/tools/mlir/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Wundef -Werror=mismatched-tags -Werror=global-constructors -O3 -DNDEBUG -std=c++17  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -MD -MT tools/mlir/lib/Conversion/VectorToXeGPU/CMakeFiles/obj.MLIRVectorToXeGPU.dir/VectorToXeGPU.cpp.o -MF tools/mlir/lib/Conversion/VectorToXeGPU/CMakeFiles/obj.MLIRVectorToXeGPU.dir/VectorToXeGPU.cpp.o.d -o tools/mlir/lib/Conversion/VectorToXeGPU/CMakeFiles/obj.MLIRVectorToXeGPU.dir/VectorToXeGPU.cpp.o -c /home/tcwg-buildbot/worker/flang-aarch64-sharedlibs/llvm-project/mlir/lib/Conversion/VectorToXeGPU/VectorToXeGPU.cpp
../llvm-project/mlir/lib/Conversion/VectorToXeGPU/VectorToXeGPU.cpp:172:16: error: no member named 'MemoryScope' in namespace 'mlir::xegpu'
  172 |         xegpu::MemoryScope::Global,
      |         ~~~~~~~^
../llvm-project/mlir/lib/Conversion/VectorToXeGPU/VectorToXeGPU.cpp:217:57: error: no member named 'MemoryScope' in namespace 'mlir::xegpu'
  217 |         /*scattered=*/false, /*array_length=*/1, xegpu::MemoryScope::Global,
      |                                                  ~~~~~~~^
2 errors generated.
63.975 [2649/18/4739] Linking CXX shared library lib/libMLIRTosaToLinalg.so.20.0git
63.978 [2649/17/4740] Linking CXX shared library lib/libMLIRMeshTest.so.20.0git
63.982 [2649/16/4741] Linking CXX shared library lib/libMLIRSPIRVTranslateRegistration.so.20.0git
64.002 [2649/15/4742] Linking CXX shared library lib/libMLIRTensorTilingInterfaceImpl.so.20.0git
64.005 [2649/14/4743] Linking CXX shared library lib/libMLIRMemRefTransforms.so.20.0git
64.011 [2649/13/4744] Linking CXX shared library lib/libMLIRTensorTransforms.so.20.0git
64.056 [2649/12/4745] Linking CXX shared library lib/libMLIRGPUToVulkanTransforms.so.20.0git
64.084 [2649/11/4746] Linking CXX shared library lib/libMLIRVectorToSCF.so.20.0git
64.121 [2649/10/4747] Linking CXX shared library lib/libMLIRSPIRVTarget.so.20.0git
64.124 [2649/9/4748] Linking CXX shared library lib/libMLIRSPIRVConversion.so.20.0git
64.124 [2649/8/4749] Linking CXX shared library lib/libMLIRVectorToGPU.so.20.0git
64.147 [2649/7/4750] Linking CXX shared library lib/libMLIRToLLVMIRTranslationRegistration.so.20.0git
64.149 [2649/6/4751] Linking CXX shared library lib/libMLIRVectorToLLVM.so.20.0git
64.292 [2649/5/4752] Linking CXX shared library lib/libMLIRAffineTransformOps.so.20.0git
65.017 [2649/4/4753] Building CXX object tools/mlir/examples/transform-opt/CMakeFiles/mlir-transform-opt.dir/mlir-transform-opt.cpp.o
103.530 [2649/3/4754] Building CXX object tools/mlir/examples/toy/Ch5/CMakeFiles/toyc-ch5.dir/toyc.cpp.o
109.190 [2649/2/4755] Building CXX object tools/mlir/tools/mlir-opt/CMakeFiles/MLIRMlirOptMain.dir/mlir-opt.cpp.o
111.031 [2649/1/4756] Building CXX object tools/mlir/examples/toy/Ch6/CMakeFiles/toyc-ch6.dir/toyc.cpp.o
ninja: build stopped: subcommand failed.

@llvm-ci
Copy link
Collaborator

llvm-ci commented Sep 23, 2024

LLVM Buildbot has detected a new failure on builder ppc64le-flang-rhel-clang running on ppc64le-flang-rhel-test while building mlir at step 5 "build-unified-tree".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/157/builds/8449

Here is the relevant piece of the build log for the reference
Step 5 (build-unified-tree) failure: build (failure)
...
36.910 [486/23/6057] Linking CXX static library lib/libMLIRSCFTestPasses.a
36.984 [486/22/6058] Linking CXX static library lib/libMLIRLinalgTransforms.a
37.166 [483/24/6059] Linking CXX static library lib/libMLIRTensorToSPIRV.a
37.180 [483/23/6060] Linking CXX static library lib/libMLIRSCFToSPIRV.a
37.281 [482/23/6061] Linking CXX static library lib/libMLIRTensorToLinalg.a
37.285 [482/22/6062] Linking CXX static library lib/libMLIRLinalgToStandard.a
37.289 [482/21/6063] Linking CXX static library lib/libMLIRCAPILinalg.a
37.400 [482/20/6064] Linking CXX static library lib/libMLIRGPUToSPIRV.a
37.632 [481/20/6065] Linking CXX static library lib/libMLIRConvertToSPIRVPass.a
43.017 [481/19/6066] Building CXX object tools/mlir/lib/Conversion/VectorToXeGPU/CMakeFiles/obj.MLIRVectorToXeGPU.dir/VectorToXeGPU.cpp.o
FAILED: tools/mlir/lib/Conversion/VectorToXeGPU/CMakeFiles/obj.MLIRVectorToXeGPU.dir/VectorToXeGPU.cpp.o 
ccache /home/buildbots/llvm-external-buildbots/clang.16.0.1/bin/clang++ -DGTEST_HAS_RTTI=0 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-flang-rhel-test/ppc64le-flang-rhel-clang-build/build/tools/mlir/lib/Conversion/VectorToXeGPU -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-flang-rhel-test/ppc64le-flang-rhel-clang-build/llvm-project/mlir/lib/Conversion/VectorToXeGPU -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-flang-rhel-test/ppc64le-flang-rhel-clang-build/build/include -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-flang-rhel-test/ppc64le-flang-rhel-clang-build/llvm-project/llvm/include -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-flang-rhel-test/ppc64le-flang-rhel-clang-build/llvm-project/mlir/include -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-flang-rhel-test/ppc64le-flang-rhel-clang-build/build/tools/mlir/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Wundef -Werror=mismatched-tags -Werror=global-constructors -O3 -DNDEBUG -std=c++17  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -MD -MT tools/mlir/lib/Conversion/VectorToXeGPU/CMakeFiles/obj.MLIRVectorToXeGPU.dir/VectorToXeGPU.cpp.o -MF tools/mlir/lib/Conversion/VectorToXeGPU/CMakeFiles/obj.MLIRVectorToXeGPU.dir/VectorToXeGPU.cpp.o.d -o tools/mlir/lib/Conversion/VectorToXeGPU/CMakeFiles/obj.MLIRVectorToXeGPU.dir/VectorToXeGPU.cpp.o -c /home/buildbots/llvm-external-buildbots/workers/ppc64le-flang-rhel-test/ppc64le-flang-rhel-clang-build/llvm-project/mlir/lib/Conversion/VectorToXeGPU/VectorToXeGPU.cpp
/home/buildbots/llvm-external-buildbots/workers/ppc64le-flang-rhel-test/ppc64le-flang-rhel-clang-build/llvm-project/mlir/lib/Conversion/VectorToXeGPU/VectorToXeGPU.cpp:172:16: error: no member named 'MemoryScope' in namespace 'mlir::xegpu'
        xegpu::MemoryScope::Global,
        ~~~~~~~^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-flang-rhel-test/ppc64le-flang-rhel-clang-build/llvm-project/mlir/lib/Conversion/VectorToXeGPU/VectorToXeGPU.cpp:217:57: error: no member named 'MemoryScope' in namespace 'mlir::xegpu'
        /*scattered=*/false, /*array_length=*/1, xegpu::MemoryScope::Global,
                                                 ~~~~~~~^
2 errors generated.
43.949 [481/18/6067] Building CXX object lib/MC/MCParser/CMakeFiles/LLVMMCParser.dir/AsmParser.cpp.o
47.576 [481/17/6068] Building CXX object tools/mlir/lib/Dialect/XeGPU/Transforms/CMakeFiles/obj.MLIRXeGPUTransforms.dir/XeGPUFoldAliasOps.cpp.o
54.776 [481/16/6069] Building CXX object lib/CodeGen/AsmPrinter/CMakeFiles/LLVMAsmPrinter.dir/AsmPrinter.cpp.o
59.033 [481/15/6070] Building CXX object lib/LTO/CMakeFiles/LLVMLTO.dir/LTO.cpp.o
60.618 [481/14/6071] Building CXX object tools/mlir/lib/Dialect/XeGPU/IR/CMakeFiles/obj.MLIRXeGPUDialect.dir/XeGPUDialect.cpp.o
66.516 [481/13/6072] Building CXX object tools/mlir/lib/Dialect/XeGPU/IR/CMakeFiles/obj.MLIRXeGPUDialect.dir/XeGPUOps.cpp.o
88.696 [481/12/6073] Building CXX object tools/mlir/tools/mlir-reduce/CMakeFiles/mlir-reduce.dir/mlir-reduce.cpp.o
94.419 [481/11/6074] Building CXX object tools/flang/lib/Optimizer/Support/CMakeFiles/FIRSupport.dir/InitFIR.cpp.o
96.931 [481/10/6075] Building CXX object tools/mlir/tools/mlir-opt/CMakeFiles/MLIRMlirOptMain.dir/mlir-opt.cpp.o
98.896 [481/9/6076] Building CXX object tools/mlir/tools/mlir-query/CMakeFiles/mlir-query.dir/mlir-query.cpp.o
99.346 [481/8/6077] Building CXX object tools/flang/tools/fir-opt/CMakeFiles/fir-opt.dir/fir-opt.cpp.o
100.533 [481/7/6078] Building CXX object tools/mlir/tools/mlir-lsp-server/CMakeFiles/mlir-lsp-server.dir/mlir-lsp-server.cpp.o
106.267 [481/6/6079] Building CXX object tools/mlir/lib/CAPI/RegisterEverything/CMakeFiles/obj.MLIRCAPIRegisterEverything.dir/RegisterEverything.cpp.o
106.556 [481/5/6080] Building CXX object tools/flang/tools/tco/CMakeFiles/tco.dir/tco.cpp.o
114.818 [481/4/6081] Building CXX object tools/mlir/examples/transform-opt/CMakeFiles/mlir-transform-opt.dir/mlir-transform-opt.cpp.o
118.077 [481/3/6082] Building CXX object tools/mlir/tools/mlir-opt/CMakeFiles/mlir-opt.dir/mlir-opt.cpp.o
164.299 [481/2/6083] Building CXX object tools/flang/tools/bbc/CMakeFiles/bbc.dir/bbc.cpp.o
334.844 [481/1/6084] Building CXX object tools/flang/lib/Frontend/CMakeFiles/flangFrontend.dir/FrontendActions.cpp.o
ninja: build stopped: subcommand failed.

@llvm-ci
Copy link
Collaborator

llvm-ci commented Sep 23, 2024

LLVM Buildbot has detected a new failure on builder flang-aarch64-debug-reverse-iteration running on linaro-flang-aarch64-debug-reverse-iteration while building mlir at step 5 "build-unified-tree".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/20/builds/3540

Here is the relevant piece of the build log for the reference
Step 5 (build-unified-tree) failure: build (failure)
...
58.629 [1418/34/5221] Building CXX object tools/clang/lib/ARCMigrate/CMakeFiles/obj.clangARCMigrate.dir/ObjCMT.cpp.o
58.634 [1418/33/5222] Building CXX object tools/clang/lib/ExtractAPI/CMakeFiles/obj.clangExtractAPI.dir/ExtractAPIConsumer.cpp.o
58.709 [1407/43/5223] Building CXX object tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/Arch/SystemZ.cpp.o
58.743 [1407/42/5224] Building CXX object tools/clang/lib/ARCMigrate/CMakeFiles/obj.clangARCMigrate.dir/Transforms.cpp.o
58.769 [1407/41/5225] Building CXX object tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/Arch/VE.cpp.o
58.778 [1407/40/5226] Building CXX object tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/Arch/Sparc.cpp.o
58.780 [1407/39/5227] Building CXX object tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/Arch/PPC.cpp.o
58.788 [1407/38/5228] Building CXX object tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/AMDGPU.cpp.o
58.806 [1407/37/5229] Building CXX object tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/Arch/RISCV.cpp.o
58.811 [1407/36/5230] Building CXX object tools/mlir/lib/Conversion/VectorToXeGPU/CMakeFiles/obj.MLIRVectorToXeGPU.dir/VectorToXeGPU.cpp.o
FAILED: tools/mlir/lib/Conversion/VectorToXeGPU/CMakeFiles/obj.MLIRVectorToXeGPU.dir/VectorToXeGPU.cpp.o 
/usr/local/bin/c++ -DGTEST_HAS_RTTI=0 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/tcwg-buildbot/worker/flang-aarch64-debug-reverse-iteration/build/tools/mlir/lib/Conversion/VectorToXeGPU -I/home/tcwg-buildbot/worker/flang-aarch64-debug-reverse-iteration/llvm-project/mlir/lib/Conversion/VectorToXeGPU -I/home/tcwg-buildbot/worker/flang-aarch64-debug-reverse-iteration/build/include -I/home/tcwg-buildbot/worker/flang-aarch64-debug-reverse-iteration/llvm-project/llvm/include -I/home/tcwg-buildbot/worker/flang-aarch64-debug-reverse-iteration/llvm-project/mlir/include -I/home/tcwg-buildbot/worker/flang-aarch64-debug-reverse-iteration/build/tools/mlir/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -Wundef -Werror=mismatched-tags -Werror=global-constructors -g -std=c++17  -fno-exceptions -funwind-tables -fno-rtti -MD -MT tools/mlir/lib/Conversion/VectorToXeGPU/CMakeFiles/obj.MLIRVectorToXeGPU.dir/VectorToXeGPU.cpp.o -MF tools/mlir/lib/Conversion/VectorToXeGPU/CMakeFiles/obj.MLIRVectorToXeGPU.dir/VectorToXeGPU.cpp.o.d -o tools/mlir/lib/Conversion/VectorToXeGPU/CMakeFiles/obj.MLIRVectorToXeGPU.dir/VectorToXeGPU.cpp.o -c /home/tcwg-buildbot/worker/flang-aarch64-debug-reverse-iteration/llvm-project/mlir/lib/Conversion/VectorToXeGPU/VectorToXeGPU.cpp
../llvm-project/mlir/lib/Conversion/VectorToXeGPU/VectorToXeGPU.cpp:172:16: error: no member named 'MemoryScope' in namespace 'mlir::xegpu'
  172 |         xegpu::MemoryScope::Global,
      |         ~~~~~~~^
../llvm-project/mlir/lib/Conversion/VectorToXeGPU/VectorToXeGPU.cpp:217:57: error: no member named 'MemoryScope' in namespace 'mlir::xegpu'
  217 |         /*scattered=*/false, /*array_length=*/1, xegpu::MemoryScope::Global,
      |                                                  ~~~~~~~^
2 errors generated.
58.834 [1407/35/5231] Building CXX object tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/Arch/X86.cpp.o
58.840 [1407/34/5232] Building CXX object tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/AIX.cpp.o
58.914 [1407/33/5233] Building CXX object tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/AMDGPUOpenMP.cpp.o
58.922 [1407/32/5234] Building CXX object tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/BareMetal.cpp.o
58.930 [1407/31/5235] Building CXX object tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/CrossWindows.cpp.o
58.934 [1407/30/5236] Building CXX object tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/AVR.cpp.o
58.943 [1407/29/5237] Building CXX object tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/CSKYToolChain.cpp.o
58.950 [1407/28/5238] Building CXX object tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/Cuda.cpp.o
58.962 [1407/27/5239] Building CXX object tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/Clang.cpp.o
59.011 [1407/26/5240] Building CXX object tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/CommonArgs.cpp.o
59.115 [1407/25/5241] Building CXX object tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/Flang.cpp.o
59.130 [1407/24/5242] Building CXX object tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/FreeBSD.cpp.o
59.139 [1407/23/5243] Building CXX object tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/Haiku.cpp.o
59.166 [1407/22/5244] Building CXX object tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/DragonFly.cpp.o
59.176 [1407/21/5245] Building CXX object tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/HIPSPV.cpp.o
59.180 [1407/20/5246] Building CXX object tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/Hexagon.cpp.o
59.186 [1407/19/5247] Building CXX object tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/Gnu.cpp.o
59.190 [1407/18/5248] Building CXX object tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/Fuchsia.cpp.o
59.228 [1407/17/5249] Building CXX object tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/HIPAMD.cpp.o
59.238 [1407/16/5250] Building CXX object tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/Darwin.cpp.o
59.271 [1407/15/5251] Linking CXX static library lib/libclangSema.a
61.087 [1407/14/5252] Linking CXX executable bin/llvm-ar
62.180 [1407/13/5253] Building CXX object tools/mlir/lib/Dialect/XeGPU/Transforms/CMakeFiles/obj.MLIRXeGPUTransforms.dir/XeGPUFoldAliasOps.cpp.o
63.971 [1407/12/5254] Building CXX object tools/mlir/lib/Dialect/XeGPU/IR/CMakeFiles/obj.MLIRXeGPUDialect.dir/XeGPUOps.cpp.o
65.181 [1407/11/5255] Building CXX object tools/mlir/lib/Dialect/XeGPU/IR/CMakeFiles/obj.MLIRXeGPUDialect.dir/XeGPUDialect.cpp.o
68.900 [1407/10/5256] Linking CXX shared library lib/libLTO.so.20.0git
69.181 [1407/9/5257] Linking CXX executable bin/llvm-lto
69.218 [1407/8/5258] Building CXX object tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/HIPUtility.cpp.o
93.070 [1407/7/5259] Building CXX object tools/mlir/tools/mlir-query/CMakeFiles/mlir-query.dir/mlir-query.cpp.o
100.160 [1407/6/5260] Building CXX object tools/mlir/tools/mlir-lsp-server/CMakeFiles/mlir-lsp-server.dir/mlir-lsp-server.cpp.o

@llvm-ci
Copy link
Collaborator

llvm-ci commented Sep 23, 2024

LLVM Buildbot has detected a new failure on builder flang-aarch64-dylib running on linaro-flang-aarch64-dylib while building mlir at step 5 "build-unified-tree".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/50/builds/4024

Here is the relevant piece of the build log for the reference
Step 5 (build-unified-tree) failure: build (failure)
...
77.931 [182/15/6484] Building CXX object tools/flang/lib/Common/CMakeFiles/FortranCommon.dir/Version.cpp.o
77.977 [181/15/6485] Linking CXX static library lib/libFortranCommon.a
78.069 [180/15/6486] Linking CXX static library lib/libFortranParser.a
78.271 [178/16/6487] Linking CXX static library lib/libFortranEvaluate.a
78.509 [177/16/6488] Linking CXX static library lib/libFortranSemantics.a
79.324 [172/20/6489] Linking CXX executable tools/flang/unittests/Evaluate/logical.test
79.380 [172/19/6490] Linking CXX executable tools/flang/unittests/Evaluate/integer.test
79.397 [172/18/6491] Linking CXX executable tools/flang/unittests/Evaluate/real.test
79.979 [172/17/6492] Linking CXX executable bin/f18-parse-demo
80.505 [172/16/6493] Building CXX object tools/mlir/lib/Conversion/VectorToXeGPU/CMakeFiles/obj.MLIRVectorToXeGPU.dir/VectorToXeGPU.cpp.o
FAILED: tools/mlir/lib/Conversion/VectorToXeGPU/CMakeFiles/obj.MLIRVectorToXeGPU.dir/VectorToXeGPU.cpp.o 
/usr/local/bin/c++ -DGTEST_HAS_RTTI=0 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/tcwg-buildbot/worker/flang-aarch64-dylib/build/tools/mlir/lib/Conversion/VectorToXeGPU -I/home/tcwg-buildbot/worker/flang-aarch64-dylib/llvm-project/mlir/lib/Conversion/VectorToXeGPU -I/home/tcwg-buildbot/worker/flang-aarch64-dylib/build/include -I/home/tcwg-buildbot/worker/flang-aarch64-dylib/llvm-project/llvm/include -I/home/tcwg-buildbot/worker/flang-aarch64-dylib/llvm-project/mlir/include -I/home/tcwg-buildbot/worker/flang-aarch64-dylib/build/tools/mlir/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Wundef -Werror=mismatched-tags -Werror=global-constructors -O3 -DNDEBUG -std=c++17  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -MD -MT tools/mlir/lib/Conversion/VectorToXeGPU/CMakeFiles/obj.MLIRVectorToXeGPU.dir/VectorToXeGPU.cpp.o -MF tools/mlir/lib/Conversion/VectorToXeGPU/CMakeFiles/obj.MLIRVectorToXeGPU.dir/VectorToXeGPU.cpp.o.d -o tools/mlir/lib/Conversion/VectorToXeGPU/CMakeFiles/obj.MLIRVectorToXeGPU.dir/VectorToXeGPU.cpp.o -c /home/tcwg-buildbot/worker/flang-aarch64-dylib/llvm-project/mlir/lib/Conversion/VectorToXeGPU/VectorToXeGPU.cpp
../llvm-project/mlir/lib/Conversion/VectorToXeGPU/VectorToXeGPU.cpp:172:16: error: no member named 'MemoryScope' in namespace 'mlir::xegpu'
  172 |         xegpu::MemoryScope::Global,
      |         ~~~~~~~^
../llvm-project/mlir/lib/Conversion/VectorToXeGPU/VectorToXeGPU.cpp:217:57: error: no member named 'MemoryScope' in namespace 'mlir::xegpu'
  217 |         /*scattered=*/false, /*array_length=*/1, xegpu::MemoryScope::Global,
      |                                                  ~~~~~~~^
2 errors generated.
80.573 [172/15/6494] Linking CXX executable bin/mlir-cpu-runner
80.989 [172/14/6495] Linking CXX shared library lib/libclang.so.20.0.0git
82.964 [172/13/6496] Linking CXX executable bin/mlir-translate
83.057 [172/12/6497] Linking CXX executable tools/flang/unittests/Evaluate/folding.test
83.077 [172/11/6498] Linking CXX executable tools/flang/unittests/Evaluate/expression.test
113.432 [172/10/6499] Building CXX object tools/mlir/tools/mlir-query/CMakeFiles/mlir-query.dir/mlir-query.cpp.o
114.607 [172/9/6500] Building CXX object tools/mlir/tools/mlir-lsp-server/CMakeFiles/mlir-lsp-server.dir/mlir-lsp-server.cpp.o
116.496 [172/8/6501] Building CXX object tools/flang/lib/Optimizer/Support/CMakeFiles/FIRSupport.dir/InitFIR.cpp.o
118.088 [172/7/6502] Building CXX object tools/mlir/tools/mlir-reduce/CMakeFiles/mlir-reduce.dir/mlir-reduce.cpp.o
119.440 [172/6/6503] Building CXX object tools/flang/tools/fir-opt/CMakeFiles/fir-opt.dir/fir-opt.cpp.o
121.444 [172/5/6504] Building CXX object tools/flang/tools/tco/CMakeFiles/tco.dir/tco.cpp.o
123.158 [172/4/6505] Building CXX object tools/mlir/tools/mlir-opt/CMakeFiles/mlir-opt.dir/mlir-opt.cpp.o
123.788 [172/3/6506] Building CXX object tools/mlir/examples/transform-opt/CMakeFiles/mlir-transform-opt.dir/mlir-transform-opt.cpp.o
176.143 [172/2/6507] Building CXX object tools/flang/tools/bbc/CMakeFiles/bbc.dir/bbc.cpp.o
279.476 [172/1/6508] Building CXX object tools/flang/lib/Frontend/CMakeFiles/flangFrontend.dir/FrontendActions.cpp.o
ninja: build stopped: subcommand failed.

@llvm-ci
Copy link
Collaborator

llvm-ci commented Sep 23, 2024

LLVM Buildbot has detected a new failure on builder premerge-monolithic-linux running on premerge-linux-1 while building mlir at step 6 "build-unified-tree".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/153/builds/9772

Here is the relevant piece of the build log for the reference
Step 6 (build-unified-tree) failure: build (failure)
...
5.850 [3005/32/112] Linking CXX executable bin/clang-query
5.866 [3005/31/113] Linking CXX executable bin/tool-template
5.870 [3005/30/114] Linking CXX executable bin/clang-doc
5.887 [3005/29/115] Linking CXX executable bin/clang-change-namespace
5.898 [3005/28/116] Linking CXX executable bin/pp-trace
5.909 [3005/27/117] Linking CXX executable bin/clang-move
5.929 [3005/26/118] Linking CXX executable bin/find-all-symbols
6.554 [3005/25/119] Building CXX object tools/mlir/lib/Dialect/XeGPU/Transforms/CMakeFiles/obj.MLIRXeGPUTransforms.dir/XeGPUFoldAliasOps.cpp.o
6.672 [3005/24/120] Linking CXX executable bin/clang-tidy
6.823 [3005/23/121] Building CXX object tools/mlir/lib/Conversion/VectorToXeGPU/CMakeFiles/obj.MLIRVectorToXeGPU.dir/VectorToXeGPU.cpp.o
FAILED: tools/mlir/lib/Conversion/VectorToXeGPU/CMakeFiles/obj.MLIRVectorToXeGPU.dir/VectorToXeGPU.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes /usr/bin/ccache /usr/bin/clang++ -DGTEST_HAS_RTTI=0 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/build/buildbot/premerge-monolithic-linux/build/tools/mlir/lib/Conversion/VectorToXeGPU -I/build/buildbot/premerge-monolithic-linux/llvm-project/mlir/lib/Conversion/VectorToXeGPU -I/build/buildbot/premerge-monolithic-linux/build/include -I/build/buildbot/premerge-monolithic-linux/llvm-project/llvm/include -I/build/buildbot/premerge-monolithic-linux/llvm-project/mlir/include -I/build/buildbot/premerge-monolithic-linux/build/tools/mlir/include -gmlt -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Wundef -Werror=mismatched-tags -Werror=global-constructors -O3 -DNDEBUG  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -std=c++17 -MD -MT tools/mlir/lib/Conversion/VectorToXeGPU/CMakeFiles/obj.MLIRVectorToXeGPU.dir/VectorToXeGPU.cpp.o -MF tools/mlir/lib/Conversion/VectorToXeGPU/CMakeFiles/obj.MLIRVectorToXeGPU.dir/VectorToXeGPU.cpp.o.d -o tools/mlir/lib/Conversion/VectorToXeGPU/CMakeFiles/obj.MLIRVectorToXeGPU.dir/VectorToXeGPU.cpp.o -c /build/buildbot/premerge-monolithic-linux/llvm-project/mlir/lib/Conversion/VectorToXeGPU/VectorToXeGPU.cpp
/build/buildbot/premerge-monolithic-linux/llvm-project/mlir/lib/Conversion/VectorToXeGPU/VectorToXeGPU.cpp:172:16: error: no member named 'MemoryScope' in namespace 'mlir::xegpu'
        xegpu::MemoryScope::Global,
        ~~~~~~~^
/build/buildbot/premerge-monolithic-linux/llvm-project/mlir/lib/Conversion/VectorToXeGPU/VectorToXeGPU.cpp:217:57: error: no member named 'MemoryScope' in namespace 'mlir::xegpu'
        /*scattered=*/false, /*array_length=*/1, xegpu::MemoryScope::Global,
                                                 ~~~~~~~^
2 errors generated.
9.916 [3005/22/122] Building CXX object tools/mlir/lib/Dialect/XeGPU/IR/CMakeFiles/obj.MLIRXeGPUDialect.dir/XeGPUDialect.cpp.o
10.417 [3005/21/123] Building CXX object tools/mlir/lib/Dialect/XeGPU/IR/CMakeFiles/obj.MLIRXeGPUDialect.dir/XeGPUOps.cpp.o
13.034 [3005/20/124] Building CXX object lib/CodeGen/AsmPrinter/CMakeFiles/LLVMAsmPrinter.dir/AsmPrinter.cpp.o
13.347 [3005/19/125] Building CXX object lib/LTO/CMakeFiles/LLVMLTO.dir/LTO.cpp.o
22.862 [3005/18/126] Building CXX object tools/flang/lib/Optimizer/Support/CMakeFiles/FIRSupport.dir/InitFIR.cpp.o
22.945 [3005/17/127] Building CXX object tools/mlir/tools/mlir-query/CMakeFiles/mlir-query.dir/mlir-query.cpp.o
23.164 [3005/16/128] Building CXX object tools/mlir/tools/mlir-lsp-server/CMakeFiles/mlir-lsp-server.dir/mlir-lsp-server.cpp.o
23.588 [3005/15/129] Building CXX object tools/mlir/examples/transform/Ch2/CMakeFiles/transform-opt-ch2.dir/transform-opt/transform-opt.cpp.o
23.849 [3005/14/130] Building CXX object tools/mlir/examples/transform/Ch3/CMakeFiles/transform-opt-ch3.dir/transform-opt/transform-opt.cpp.o
23.986 [3005/13/131] Building CXX object tools/mlir/examples/transform/Ch4/CMakeFiles/transform-opt-ch4.dir/transform-opt/transform-opt.cpp.o
24.577 [3005/12/132] Building CXX object tools/mlir/examples/toy/Ch5/CMakeFiles/toyc-ch5.dir/toyc.cpp.o
24.797 [3005/11/133] Building CXX object tools/flang/tools/fir-opt/CMakeFiles/fir-opt.dir/fir-opt.cpp.o
26.452 [3005/10/134] Building CXX object tools/flang/tools/tco/CMakeFiles/tco.dir/tco.cpp.o
27.309 [3005/9/135] Building CXX object tools/mlir/tools/mlir-reduce/CMakeFiles/mlir-reduce.dir/mlir-reduce.cpp.o
27.601 [3005/8/136] Building CXX object tools/mlir/examples/toy/Ch6/CMakeFiles/toyc-ch6.dir/toyc.cpp.o
27.713 [3005/7/137] Building CXX object tools/mlir/lib/CAPI/RegisterEverything/CMakeFiles/obj.MLIRCAPIRegisterEverything.dir/RegisterEverything.cpp.o
28.045 [3005/6/138] Building CXX object tools/mlir/examples/toy/Ch7/CMakeFiles/toyc-ch7.dir/toyc.cpp.o
28.047 [3005/5/139] Building CXX object tools/mlir/tools/mlir-opt/CMakeFiles/MLIRMlirOptMain.dir/mlir-opt.cpp.o
28.238 [3005/4/140] Building CXX object tools/mlir/tools/mlir-opt/CMakeFiles/mlir-opt.dir/mlir-opt.cpp.o
29.021 [3005/3/141] Building CXX object tools/mlir/examples/transform-opt/CMakeFiles/mlir-transform-opt.dir/mlir-transform-opt.cpp.o
59.479 [3005/2/142] Building CXX object tools/flang/tools/bbc/CMakeFiles/bbc.dir/bbc.cpp.o
123.412 [3005/1/143] Building CXX object tools/flang/lib/Frontend/CMakeFiles/flangFrontend.dir/FrontendActions.cpp.o
ninja: build stopped: subcommand failed.

chencha3 added a commit that referenced this pull request Sep 24, 2024
…definition (#109675)

Bring back #109144 with fixes to VectorToXeGPU
qiaojbao pushed a commit to GPUOpen-Drivers/llvm-project that referenced this pull request Oct 31, 2024
…efb6db236

Local branch amd-gfx 842efb6 Merged main:e0bd8d3485075d24ecff2b4f5d9e2117853bd08b into amd-gfx:44ce984e8f2a
Remote branch main 2162723 [MLIR][XeGPU] Updates XeGPU TensorDescAttr and Refine Gather/Scatter definition.  (llvm#109144)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants