[Mlir-commits] [mlir] [mlir] [XeGPU] Add XeGPU workgroup to subgroup pass (PR #139477)

LLVM Continuous Integration llvmlistbot at llvm.org
Tue May 20 14:42:39 PDT 2025


llvm-ci wrote:

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/13253

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

```
Step 5 (build-unified-tree) failure: build (failure)
...
620.500 [387/1/7024] Linking CXX shared library lib/libMLIRVectorToLLVMPass.so.21.0git
620.525 [386/1/7025] Creating library symlink lib/libMLIRVectorToLLVMPass.so
621.044 [385/1/7026] Linking CXX shared library lib/libMLIRVectorTransformOps.so.21.0git
621.076 [384/1/7027] Creating library symlink lib/libMLIRVectorTransformOps.so
621.104 [383/1/7028] Creating library symlink lib/libMLIRXeGPUDialect.so
621.338 [382/1/7029] Linking CXX shared library lib/libMLIRVectorToXeGPU.so.21.0git
621.352 [381/1/7030] Creating library symlink lib/libMLIRVectorToXeGPU.so
621.545 [380/1/7031] Linking CXX shared library lib/libMLIRXeGPUUtils.so.21.0git
621.571 [379/1/7032] Creating library symlink lib/libMLIRXeGPUUtils.so
621.969 [378/1/7033] Linking CXX shared library lib/libMLIRXeGPUTransforms.so.21.0git
FAILED: lib/libMLIRXeGPUTransforms.so.21.0git 
: && /usr/local/bin/c++ -fPIC -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -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 -Wno-unnecessary-virtual-specifier -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Wundef -Wno-unused-but-set-parameter -O3 -DNDEBUG  -Wl,-z,defs -Wl,-z,nodelete   -Wl,-rpath-link,/home/tcwg-buildbot/worker/flang-aarch64-latest-gcc/build/./lib  -Wl,--gc-sections -shared -Wl,-soname,libMLIRXeGPUTransforms.so.21.0git -o lib/libMLIRXeGPUTransforms.so.21.0git tools/mlir/lib/Dialect/XeGPU/Transforms/CMakeFiles/obj.MLIRXeGPUTransforms.dir/XeGPUFoldAliasOps.cpp.o tools/mlir/lib/Dialect/XeGPU/Transforms/CMakeFiles/obj.MLIRXeGPUTransforms.dir/XeGPUSubgroupDistribute.cpp.o tools/mlir/lib/Dialect/XeGPU/Transforms/CMakeFiles/obj.MLIRXeGPUTransforms.dir/XeGPUUnroll.cpp.o tools/mlir/lib/Dialect/XeGPU/Transforms/CMakeFiles/obj.MLIRXeGPUTransforms.dir/XeGPUWgToSgDistribute.cpp.o  -Wl,-rpath,"\$ORIGIN/../lib:/home/tcwg-buildbot/worker/flang-aarch64-latest-gcc/build/lib:"  lib/libMLIRXeGPUUtils.so.21.0git  lib/libMLIRVectorTransforms.so.21.0git  lib/libMLIRXeGPUDialect.so.21.0git  lib/libMLIRAffineUtils.so.21.0git  lib/libMLIRTransforms.so.21.0git  lib/libMLIRTransformUtils.so.21.0git  lib/libMLIRRewrite.so.21.0git  lib/libMLIRRewritePDL.so.21.0git  lib/libMLIRPDLToPDLInterp.so.21.0git  lib/libMLIRPass.so.21.0git  lib/libMLIRPDLInterpDialect.so.21.0git  lib/libMLIRPDLDialect.so.21.0git  lib/libMLIRRuntimeVerifiableOpInterface.so.21.0git  lib/libMLIRGPUUtils.so.21.0git  lib/libMLIRGPUDialect.so.21.0git  lib/libMLIRDLTIDialect.so.21.0git  lib/libMLIRLinalgDialect.so.21.0git  lib/libMLIRBufferizationDialect.so.21.0git  lib/libMLIRParser.so.21.0git  lib/libMLIRBytecodeReader.so.21.0git  lib/libMLIRAsmParser.so.21.0git  lib/libMLIRSparseTensorDialect.so.21.0git  lib/libMLIRMathDialect.so.21.0git  lib/libMLIRMemRefUtils.so.21.0git  lib/libMLIRSubsetOpInterface.so.21.0git  lib/libMLIRVectorUtils.so.21.0git  lib/libMLIRAffineAnalysis.so.21.0git  lib/libMLIRSCFDialect.so.21.0git  lib/libMLIRControlFlowDialect.so.21.0git  lib/libMLIRFuncDialect.so.21.0git  lib/libMLIRVectorDialect.so.21.0git  lib/libMLIRMaskableOpInterface.so.21.0git  lib/libMLIRMaskingOpInterface.so.21.0git  lib/libMLIRTensorDialect.so.21.0git  lib/libMLIRAffineDialect.so.21.0git  lib/libMLIRMemRefDialect.so.21.0git  lib/libMLIRMemorySlotInterfaces.so.21.0git  lib/libMLIRArithUtils.so.21.0git  lib/libMLIRDialectUtils.so.21.0git  lib/libMLIRValueBoundsOpInterface.so.21.0git  lib/libMLIRAnalysis.so.21.0git  lib/libMLIRViewLikeInterface.so.21.0git  lib/libMLIRControlFlowInterfaces.so.21.0git  lib/libMLIRSideEffectInterfaces.so.21.0git  lib/libMLIRLoopLikeInterface.so.21.0git  lib/libMLIRFunctionInterfaces.so.21.0git  lib/libMLIRCallInterfaces.so.21.0git  lib/libMLIRPresburger.so.21.0git  lib/libMLIRDataLayoutInterfaces.so.21.0git  lib/libMLIRComplexDialect.so.21.0git  lib/libMLIRArithDialect.so.21.0git  lib/libMLIRInferIntRangeCommon.so.21.0git  lib/libMLIRShapedOpInterfaces.so.21.0git  lib/libMLIRInferIntRangeInterface.so.21.0git  lib/libMLIRUBDialect.so.21.0git  lib/libMLIRDialect.so.21.0git  lib/libMLIRInferTypeOpInterface.so.21.0git  lib/libMLIRCastInterfaces.so.21.0git  lib/libMLIRDestinationStyleOpInterface.so.21.0git  lib/libMLIRParallelCombiningOpInterface.so.21.0git  lib/libMLIRVectorInterfaces.so.21.0git  lib/libMLIRIR.so.21.0git  lib/libMLIRSupport.so.21.0git  lib/libLLVMSupport.so.21.0git  -Wl,-rpath-link,/home/tcwg-buildbot/worker/flang-aarch64-latest-gcc/build/lib && :
/usr/bin/ld: tools/mlir/lib/Dialect/XeGPU/Transforms/CMakeFiles/obj.MLIRXeGPUTransforms.dir/XeGPUWgToSgDistribute.cpp.o: in function `mlir::xegpu::impl::XeGPUWgToSgDistributeBase<(anonymous namespace)::XeGPUWgToSgDistributePass>::getDependentDialects(mlir::DialectRegistry&) const':
XeGPUWgToSgDistribute.cpp:(.text._ZNK4mlir5xegpu4impl25XeGPUWgToSgDistributeBaseIN12_GLOBAL__N_125XeGPUWgToSgDistributePassEE20getDependentDialectsERNS_15DialectRegistryE+0x1b8): undefined reference to `mlir::detail::TypeIDResolver<mlir::index::IndexDialect, void>::id'
/usr/bin/ld: XeGPUWgToSgDistribute.cpp:(.text._ZNK4mlir5xegpu4impl25XeGPUWgToSgDistributeBaseIN12_GLOBAL__N_125XeGPUWgToSgDistributePassEE20getDependentDialectsERNS_15DialectRegistryE+0x1bc): undefined reference to `mlir::detail::TypeIDResolver<mlir::index::IndexDialect, void>::id'
/usr/bin/ld: tools/mlir/lib/Dialect/XeGPU/Transforms/CMakeFiles/obj.MLIRXeGPUTransforms.dir/XeGPUWgToSgDistribute.cpp.o: in function `std::_Function_handler<mlir::Dialect* (mlir::MLIRContext*), mlir::DialectRegistry::insert<mlir::index::IndexDialect>()::{lambda(mlir::MLIRContext*)#1}>::_M_invoke(std::_Any_data const&, mlir::MLIRContext*&&)':
XeGPUWgToSgDistribute.cpp:(.text._ZNSt17_Function_handlerIFPN4mlir7DialectEPNS0_11MLIRContextEEZNS0_15DialectRegistry6insertINS0_5index12IndexDialectEEEvvEUlS4_E_E9_M_invokeERKSt9_Any_dataOS4_[_ZNSt17_Function_handlerIFPN4mlir7DialectEPNS0_11MLIRContextEEZNS0_15DialectRegistry6insertINS0_5index12IndexDialectEEEvvEUlS4_E_E9_M_invokeERKSt9_Any_dataOS4_]+0x28): undefined reference to `mlir::detail::TypeIDResolver<mlir::index::IndexDialect, void>::id'
/usr/bin/ld: XeGPUWgToSgDistribute.cpp:(.text._ZNSt17_Function_handlerIFPN4mlir7DialectEPNS0_11MLIRContextEEZNS0_15DialectRegistry6insertINS0_5index12IndexDialectEEEvvEUlS4_E_E9_M_invokeERKSt9_Any_dataOS4_[_ZNSt17_Function_handlerIFPN4mlir7DialectEPNS0_11MLIRContextEEZNS0_15DialectRegistry6insertINS0_5index12IndexDialectEEEvvEUlS4_E_E9_M_invokeERKSt9_Any_dataOS4_]+0x2c): undefined reference to `mlir::detail::TypeIDResolver<mlir::index::IndexDialect, void>::id'
/usr/bin/ld: tools/mlir/lib/Dialect/XeGPU/Transforms/CMakeFiles/obj.MLIRXeGPUTransforms.dir/XeGPUWgToSgDistribute.cpp.o: in function `std::unique_ptr<mlir::Dialect, std::default_delete<mlir::Dialect> > llvm::function_ref<std::unique_ptr<mlir::Dialect, std::default_delete<mlir::Dialect> > ()>::callback_fn<mlir::MLIRContext::getOrLoadDialect<mlir::index::IndexDialect>()::{lambda()#1}>(long)':
XeGPUWgToSgDistribute.cpp:(.text._ZN4llvm12function_refIFSt10unique_ptrIN4mlir7DialectESt14default_deleteIS3_EEvEE11callback_fnIZNS2_11MLIRContext16getOrLoadDialectINS2_5index12IndexDialectEEEPT_vEUlvE_EES6_l[_ZN4llvm12function_refIFSt10unique_ptrIN4mlir7DialectESt14default_deleteIS3_EEvEE11callback_fnIZNS2_11MLIRContext16getOrLoadDialectINS2_5index12IndexDialectEEEPT_vEUlvE_EES6_l]+0x28): undefined reference to `mlir::index::IndexDialect::IndexDialect(mlir::MLIRContext*)'
/usr/bin/ld: tools/mlir/lib/Dialect/XeGPU/Transforms/CMakeFiles/obj.MLIRXeGPUTransforms.dir/XeGPUWgToSgDistribute.cpp.o: in function `(anonymous namespace)::WgToSgCreateNdOp::matchAndRewrite(mlir::xegpu::CreateNdDescOp, mlir::xegpu::CreateNdDescOpGenericAdaptor<llvm::ArrayRef<mlir::ValueRange> >, mlir::ConversionPatternRewriter&) const':
XeGPUWgToSgDistribute.cpp:(.text._ZNK12_GLOBAL__N_116WgToSgCreateNdOp15matchAndRewriteEN4mlir5xegpu14CreateNdDescOpENS2_28CreateNdDescOpGenericAdaptorIN4llvm8ArrayRefINS1_10ValueRangeEEEEERNS1_25ConversionPatternRewriterE+0xa2c): undefined reference to `mlir::detail::TypeIDResolver<mlir::index::MulOp, void>::id'
/usr/bin/ld: XeGPUWgToSgDistribute.cpp:(.text._ZNK12_GLOBAL__N_116WgToSgCreateNdOp15matchAndRewriteEN4mlir5xegpu14CreateNdDescOpENS2_28CreateNdDescOpGenericAdaptorIN4llvm8ArrayRefINS1_10ValueRangeEEEEERNS1_25ConversionPatternRewriterE+0xa30): undefined reference to `mlir::detail::TypeIDResolver<mlir::index::MulOp, void>::id'
/usr/bin/ld: XeGPUWgToSgDistribute.cpp:(.text._ZNK12_GLOBAL__N_116WgToSgCreateNdOp15matchAndRewriteEN4mlir5xegpu14CreateNdDescOpENS2_28CreateNdDescOpGenericAdaptorIN4llvm8ArrayRefINS1_10ValueRangeEEEEERNS1_25ConversionPatternRewriterE+0xba4): undefined reference to `mlir::index::MulOp::build(mlir::OpBuilder&, mlir::OperationState&, mlir::Value, mlir::Value)'
/usr/bin/ld: XeGPUWgToSgDistribute.cpp:(.text._ZNK12_GLOBAL__N_116WgToSgCreateNdOp15matchAndRewriteEN4mlir5xegpu14CreateNdDescOpENS2_28CreateNdDescOpGenericAdaptorIN4llvm8ArrayRefINS1_10ValueRangeEEEEERNS1_25ConversionPatternRewriterE+0xd10): undefined reference to `mlir::index::AddOp::build(mlir::OpBuilder&, mlir::OperationState&, mlir::Value, mlir::Value)'
/usr/bin/ld: XeGPUWgToSgDistribute.cpp:(.text._ZNK12_GLOBAL__N_116WgToSgCreateNdOp15matchAndRewriteEN4mlir5xegpu14CreateNdDescOpENS2_28CreateNdDescOpGenericAdaptorIN4llvm8ArrayRefINS1_10ValueRangeEEEEERNS1_25ConversionPatternRewriterE+0xf4c): undefined reference to `mlir::index::RemUOp::build(mlir::OpBuilder&, mlir::OperationState&, mlir::Value, mlir::Value)'
/usr/bin/ld: XeGPUWgToSgDistribute.cpp:(.text._ZNK12_GLOBAL__N_116WgToSgCreateNdOp15matchAndRewriteEN4mlir5xegpu14CreateNdDescOpENS2_28CreateNdDescOpGenericAdaptorIN4llvm8ArrayRefINS1_10ValueRangeEEEEERNS1_25ConversionPatternRewriterE+0x112c): undefined reference to `mlir::index::AddOp::build(mlir::OpBuilder&, mlir::OperationState&, mlir::Value, mlir::Value)'
/usr/bin/ld: XeGPUWgToSgDistribute.cpp:(.text._ZNK12_GLOBAL__N_116WgToSgCreateNdOp15matchAndRewriteEN4mlir5xegpu14CreateNdDescOpENS2_28CreateNdDescOpGenericAdaptorIN4llvm8ArrayRefINS1_10ValueRangeEEEEERNS1_25ConversionPatternRewriterE+0x1934): undefined reference to `mlir::detail::TypeIDResolver<mlir::index::AddOp, void>::id'
/usr/bin/ld: XeGPUWgToSgDistribute.cpp:(.text._ZNK12_GLOBAL__N_116WgToSgCreateNdOp15matchAndRewriteEN4mlir5xegpu14CreateNdDescOpENS2_28CreateNdDescOpGenericAdaptorIN4llvm8ArrayRefINS1_10ValueRangeEEEEERNS1_25ConversionPatternRewriterE+0x1938): undefined reference to `mlir::detail::TypeIDResolver<mlir::index::AddOp, void>::id'
/usr/bin/ld: XeGPUWgToSgDistribute.cpp:(.text._ZNK12_GLOBAL__N_116WgToSgCreateNdOp15matchAndRewriteEN4mlir5xegpu14CreateNdDescOpENS2_28CreateNdDescOpGenericAdaptorIN4llvm8ArrayRefINS1_10ValueRangeEEEEERNS1_25ConversionPatternRewriterE+0x1940): undefined reference to `mlir::detail::TypeIDResolver<mlir::index::RemUOp, void>::id'
/usr/bin/ld: XeGPUWgToSgDistribute.cpp:(.text._ZNK12_GLOBAL__N_116WgToSgCreateNdOp15matchAndRewriteEN4mlir5xegpu14CreateNdDescOpENS2_28CreateNdDescOpGenericAdaptorIN4llvm8ArrayRefINS1_10ValueRangeEEEEERNS1_25ConversionPatternRewriterE+0x1944): undefined reference to `mlir::detail::TypeIDResolver<mlir::index::RemUOp, void>::id'
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.

```

</details>

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


More information about the Mlir-commits mailing list