[Mlir-commits] [mlir] [MLIR][XeGPU] Updates XeGPU TensorDescAttr and Refine Gather/Scatter definition. (PR #109144)

LLVM Continuous Integration llvmlistbot at llvm.org
Mon Sep 23 07:03:58 PDT 2024


llvm-ci wrote:

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

<details>
<summary>Here is the relevant piece of the build log for the reference</summary>

```
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,

```

</details>

https://github.com/llvm/llvm-project/pull/109144


More information about the Mlir-commits mailing list