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

LLVM Continuous Integration llvmlistbot at llvm.org
Tue May 20 10:49:21 PDT 2025


llvm-ci wrote:

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

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

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

```
Step 6 (build-check-mlir-build-only) failure: build (failure)
...
34.252 [61/11/5150] Linking CXX shared library lib/libMLIRCAPIConversion.so.21.0git
34.258 [60/11/5151] Creating library symlink lib/libMLIRCAPIConversion.so
34.294 [60/10/5152] Linking CXX shared library lib/libMLIRGPUTestPasses.so.21.0git
34.302 [59/10/5153] Creating library symlink lib/libMLIRGPUTestPasses.so
34.311 [59/9/5154] Linking CXX shared library lib/libMLIRTestPass.so.21.0git
34.317 [58/9/5155] Creating library symlink lib/libMLIRTestPass.so
34.880 [58/8/5156] Building CXX object tools/mlir/lib/Dialect/XeGPU/Transforms/CMakeFiles/obj.MLIRXeGPUTransforms.dir/XeGPUWgToSgDistribute.cpp.o
35.422 [58/7/5157] Building CXX object tools/mlir/test/lib/Dialect/XeGPU/CMakeFiles/MLIRXeGPUTestPasses.dir/TestXeGPUTransforms.cpp.o
37.420 [58/6/5158] Building CXX object tools/mlir/lib/Dialect/XeGPU/Transforms/CMakeFiles/obj.MLIRXeGPUTransforms.dir/XeGPUSubgroupDistribute.cpp.o
37.516 [57/6/5159] Linking CXX shared library lib/libMLIRXeGPUTransforms.so.21.0git
FAILED: lib/libMLIRXeGPUTransforms.so.21.0git 
: && /usr/bin/clang++ -fPIC -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  -Wl,-z,defs -Wl,-z,nodelete -fuse-ld=lld -Wl,--color-diagnostics   -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:/vol/worker/mlir-nvidia/mlir-nvidia/llvm.obj/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,/vol/worker/mlir-nvidia/mlir-nvidia/llvm.obj/lib && :
ld.lld: error: undefined symbol: mlir::detail::TypeIDResolver<mlir::index::IndexDialect, void>::id
>>> referenced by XeGPUWgToSgDistribute.cpp
>>>               tools/mlir/lib/Dialect/XeGPU/Transforms/CMakeFiles/obj.MLIRXeGPUTransforms.dir/XeGPUWgToSgDistribute.cpp.o:(mlir::xegpu::impl::XeGPUWgToSgDistributeBase<(anonymous namespace)::XeGPUWgToSgDistributePass>::getDependentDialects(mlir::DialectRegistry&) const)
>>> referenced by XeGPUWgToSgDistribute.cpp
>>>               tools/mlir/lib/Dialect/XeGPU/Transforms/CMakeFiles/obj.MLIRXeGPUTransforms.dir/XeGPUWgToSgDistribute.cpp.o:(std::_Function_handler<mlir::Dialect* (mlir::MLIRContext*), void mlir::DialectRegistry::insert<mlir::index::IndexDialect>()::'lambda'(mlir::MLIRContext*)>::_M_invoke(std::_Any_data const&, mlir::MLIRContext*&&))

ld.lld: error: undefined symbol: mlir::index::IndexDialect::IndexDialect(mlir::MLIRContext*)
>>> referenced by XeGPUWgToSgDistribute.cpp
>>>               tools/mlir/lib/Dialect/XeGPU/Transforms/CMakeFiles/obj.MLIRXeGPUTransforms.dir/XeGPUWgToSgDistribute.cpp.o:(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::index::IndexDialect* mlir::MLIRContext::getOrLoadDialect<mlir::index::IndexDialect>()::'lambda'()>(long))

ld.lld: error: undefined symbol: mlir::detail::TypeIDResolver<mlir::index::MulOp, void>::id
>>> referenced by XeGPUWgToSgDistribute.cpp
>>>               tools/mlir/lib/Dialect/XeGPU/Transforms/CMakeFiles/obj.MLIRXeGPUTransforms.dir/XeGPUWgToSgDistribute.cpp.o:(void mlir::OpBuilder::createOrFold<mlir::index::MulOp, mlir::Value&, mlir::Value&>(llvm::SmallVectorImpl<mlir::Value>&, mlir::Location, mlir::Value&, mlir::Value&))

ld.lld: error: undefined symbol: mlir::index::MulOp::build(mlir::OpBuilder&, mlir::OperationState&, mlir::Value, mlir::Value)
>>> referenced by XeGPUWgToSgDistribute.cpp
>>>               tools/mlir/lib/Dialect/XeGPU/Transforms/CMakeFiles/obj.MLIRXeGPUTransforms.dir/XeGPUWgToSgDistribute.cpp.o:(void mlir::OpBuilder::createOrFold<mlir::index::MulOp, mlir::Value&, mlir::Value&>(llvm::SmallVectorImpl<mlir::Value>&, mlir::Location, mlir::Value&, mlir::Value&))

ld.lld: error: undefined symbol: mlir::detail::TypeIDResolver<mlir::index::AddOp, void>::id
>>> referenced by XeGPUWgToSgDistribute.cpp
>>>               tools/mlir/lib/Dialect/XeGPU/Transforms/CMakeFiles/obj.MLIRXeGPUTransforms.dir/XeGPUWgToSgDistribute.cpp.o:(void mlir::OpBuilder::createOrFold<mlir::index::AddOp, mlir::Value const&, mlir::Value&>(llvm::SmallVectorImpl<mlir::Value>&, mlir::Location, mlir::Value const&, mlir::Value&))
>>> referenced by XeGPUWgToSgDistribute.cpp
>>>               tools/mlir/lib/Dialect/XeGPU/Transforms/CMakeFiles/obj.MLIRXeGPUTransforms.dir/XeGPUWgToSgDistribute.cpp.o:(void mlir::OpBuilder::createOrFold<mlir::index::AddOp, mlir::Value&, mlir::Value&>(llvm::SmallVectorImpl<mlir::Value>&, mlir::Location, mlir::Value&, mlir::Value&))

ld.lld: error: undefined symbol: mlir::index::AddOp::build(mlir::OpBuilder&, mlir::OperationState&, mlir::Value, mlir::Value)
>>> referenced by XeGPUWgToSgDistribute.cpp
>>>               tools/mlir/lib/Dialect/XeGPU/Transforms/CMakeFiles/obj.MLIRXeGPUTransforms.dir/XeGPUWgToSgDistribute.cpp.o:(void mlir::OpBuilder::createOrFold<mlir::index::AddOp, mlir::Value const&, mlir::Value&>(llvm::SmallVectorImpl<mlir::Value>&, mlir::Location, mlir::Value const&, mlir::Value&))
>>> referenced by XeGPUWgToSgDistribute.cpp
>>>               tools/mlir/lib/Dialect/XeGPU/Transforms/CMakeFiles/obj.MLIRXeGPUTransforms.dir/XeGPUWgToSgDistribute.cpp.o:(void mlir::OpBuilder::createOrFold<mlir::index::AddOp, mlir::Value&, mlir::Value&>(llvm::SmallVectorImpl<mlir::Value>&, mlir::Location, mlir::Value&, mlir::Value&))

ld.lld: error: undefined symbol: mlir::detail::TypeIDResolver<mlir::index::RemUOp, void>::id
>>> referenced by XeGPUWgToSgDistribute.cpp
>>>               tools/mlir/lib/Dialect/XeGPU/Transforms/CMakeFiles/obj.MLIRXeGPUTransforms.dir/XeGPUWgToSgDistribute.cpp.o:(void mlir::OpBuilder::createOrFold<mlir::index::RemUOp, mlir::Value&, mlir::Value&>(llvm::SmallVectorImpl<mlir::Value>&, mlir::Location, mlir::Value&, mlir::Value&))

ld.lld: error: undefined symbol: mlir::index::RemUOp::build(mlir::OpBuilder&, mlir::OperationState&, mlir::Value, mlir::Value)
>>> referenced by XeGPUWgToSgDistribute.cpp
>>>               tools/mlir/lib/Dialect/XeGPU/Transforms/CMakeFiles/obj.MLIRXeGPUTransforms.dir/XeGPUWgToSgDistribute.cpp.o:(void mlir::OpBuilder::createOrFold<mlir::index::RemUOp, mlir::Value&, mlir::Value&>(llvm::SmallVectorImpl<mlir::Value>&, mlir::Location, mlir::Value&, mlir::Value&))

```

</details>

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


More information about the Mlir-commits mailing list