[Mlir-commits] [flang] [mlir] [mlir][acc] Move acc routine functions into GPU module (PR #187161)

LLVM Continuous Integration llvmlistbot at llvm.org
Wed Mar 18 07:54:41 PDT 2026


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `amdgpu-offload-ubuntu-22-cmake-build-only` running on `rocm-docker-ubu-22` while building `flang,mlir` at step 4 "annotate".

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

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

```
Step 4 (annotate) failure: '../llvm-zorg/zorg/buildbot/builders/annotated/amdgpu-offload-cmake.py --jobs=32' (failure)
...
[8432/8508] Building CXX object tools/flang/tools/fir-lsp-server/CMakeFiles/fir-lsp-server.dir/fir-lsp-server.cpp.o
[8433/8508] Linking CXX shared library lib/libFIRBuilder.so.23.0git
[8434/8508] Creating library symlink lib/libFIRBuilder.so
[8435/8508] Linking CXX shared library lib/libFIROpenMPSupport.so.23.0git
[8436/8508] Creating library symlink lib/libFIROpenMPSupport.so
[8437/8508] Linking CXX shared library lib/libFortranUtils.so.23.0git
[8438/8508] Creating library symlink lib/libFortranUtils.so
[8439/8508] Linking CXX shared library lib/libFIROpenACCSupport.so.23.0git
[8440/8508] Creating library symlink lib/libFIROpenACCSupport.so
[8441/8508] Linking CXX shared library lib/libFIROpenACCAnalysis.so.23.0git
FAILED: lib/libFIROpenACCAnalysis.so.23.0git 
: && /usr/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-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-array-bounds -Wno-stringop-overread -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Wno-deprecated-copy -Wno-ctad-maybe-unsupported -fno-semantic-interposition -O3 -DNDEBUG -fno-semantic-interposition  -Wl,-z,defs -Wl,-z,nodelete   -Wl,-rpath-link,/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/build/./lib  -Wl,--gc-sections -shared -Wl,-soname,libFIROpenACCAnalysis.so.23.0git -o lib/libFIROpenACCAnalysis.so.23.0git tools/flang/lib/Optimizer/OpenACC/Analysis/CMakeFiles/FIROpenACCAnalysis.dir/FIROpenACCSupportAnalysis.cpp.o  -Wl,-rpath,"\$ORIGIN/../lib:/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/build/lib:"  lib/libFIROpenACCSupport.so.23.0git  lib/libFIRAnalysis.so.23.0git  lib/libHLFIRDialect.so.23.0git  lib/libFIRDialect.so.23.0git  lib/libMLIROpenACCUtils.so.23.0git  lib/libMLIROpenACCDialect.so.23.0git  lib/libMLIRSCFUtils.so.23.0git  lib/libMLIRAffineAnalysis.so.23.0git  lib/libMLIRSCFDialect.so.23.0git  lib/libMLIRTensorDialect.so.23.0git  lib/libMLIRParallelCombiningOpInterface.so.23.0git  lib/libMLIRControlFlowDialect.so.23.0git  lib/libMLIRAffineDialect.so.23.0git  lib/libMLIRTransforms.so.23.0git  lib/libMLIRTransformUtils.so.23.0git  lib/libMLIRSubsetOpInterface.so.23.0git  lib/libMLIRRewrite.so.23.0git  lib/libMLIRRewritePDL.so.23.0git  lib/libMLIRPDLToPDLInterp.so.23.0git  lib/libMLIRPDLInterpDialect.so.23.0git  lib/libMLIRPDLDialect.so.23.0git  lib/libMLIRRuntimeVerifiableOpInterface.so.23.0git  lib/libMLIRPass.so.23.0git  lib/libMLIROpenACCMPCommon.so.23.0git  lib/libMLIRFuncDialect.so.23.0git  lib/libMLIRGPUDialect.so.23.0git  lib/libMLIRMemRefDialect.so.23.0git  lib/libMLIRArithUtils.so.23.0git  lib/libMLIRComplexDialect.so.23.0git  lib/libMLIRDialectUtils.so.23.0git  lib/libMLIRMemOpInterfaces.so.23.0git  lib/libMLIRValueBoundsOpInterface.so.23.0git  lib/libMLIRAnalysis.so.23.0git  lib/libMLIRInferStridedMetadataInterface.so.23.0git  lib/libMLIRLoopLikeInterface.so.23.0git  lib/libMLIRPresburger.so.23.0git  lib/libMLIRDestinationStyleOpInterface.so.23.0git  lib/libMLIRViewLikeInterface.so.23.0git  lib/libMLIRDLTIDialect.so.23.0git  lib/libMLIRMathDialect.so.23.0git  lib/libMLIRArithDialect.so.23.0git  lib/libMLIRInferIntRangeCommon.so.23.0git  lib/libMLIRShapedOpInterfaces.so.23.0git  lib/libMLIRCastInterfaces.so.23.0git  lib/libMLIRDialect.so.23.0git  lib/libMLIRUBDialect.so.23.0git  lib/libMLIRLLVMDialect.so.23.0git  lib/libMLIRDataLayoutInterfaces.so.23.0git  lib/libMLIRControlFlowInterfaces.so.23.0git  lib/libMLIRFunctionInterfaces.so.23.0git  lib/libMLIRCallInterfaces.so.23.0git  lib/libMLIRInferTypeOpInterface.so.23.0git  lib/libMLIRMemorySlotInterfaces.so.23.0git  lib/libMLIRPtrMemorySpaceInterfaces.so.23.0git  lib/libMLIRInferIntRangeInterface.so.23.0git  lib/libMLIRSideEffectInterfaces.so.23.0git  lib/libMLIRAsmParser.so.23.0git  lib/libMLIRIR.so.23.0git  lib/libMLIRSupport.so.23.0git  lib/libLLVMCore.so.23.0git  lib/libLLVMBinaryFormat.so.23.0git  lib/libLLVMSupport.so.23.0git  -Wl,-rpath-link,/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/build/lib && :
/usr/bin/ld: tools/flang/lib/Optimizer/OpenACC/Analysis/CMakeFiles/FIROpenACCAnalysis.dir/FIROpenACCSupportAnalysis.cpp.o: in function `fir::acc::FIROpenACCSupportAnalysis::isValidSymbolUse(mlir::Operation*, mlir::SymbolRefAttr, mlir::Operation**)':
FIROpenACCSupportAnalysis.cpp:(.text._ZN3fir3acc25FIROpenACCSupportAnalysis16isValidSymbolUseEPN4mlir9OperationENS2_13SymbolRefAttrEPS4_+0xc2): undefined reference to `mlir::detail::TypeIDResolver<cuf::ProcAttributeAttr, void>::id'
/usr/bin/ld: FIROpenACCSupportAnalysis.cpp:(.text._ZN3fir3acc25FIROpenACCSupportAnalysis16isValidSymbolUseEPN4mlir9OperationENS2_13SymbolRefAttrEPS4_+0x1ab): undefined reference to `cuf::ProcAttributeAttr::getValue() const'
collect2: error: ld returned 1 exit status
[8442/8508] Linking CXX shared library lib/libFIRTestOpenACCInterfaces.so.23.0git
[8443/8508] Linking CXX shared library lib/libFIRCodeGen.so.23.0git
[8444/8508] Linking CXX shared library lib/libFlangOpenMPTransforms.so.23.0git
[8445/8508] Linking CXX executable bin/fir-lsp-server
[8446/8508] Building CXX object tools/flang/tools/fir-opt/CMakeFiles/fir-opt.dir/fir-opt.cpp.o
[8447/8508] Building CXX object tools/flang/tools/tco/CMakeFiles/tco.dir/tco.cpp.o
[8448/8508] Building CXX object tools/flang/lib/Frontend/CMakeFiles/flangFrontend.dir/FrontendActions.cpp.o
[8449/8508] Building CXX object tools/flang/tools/bbc/CMakeFiles/bbc.dir/bbc.cpp.o
ninja: build stopped: subcommand failed.
['ninja'] exited with return code 1.
The build step threw an exception...
Traceback (most recent call last):
  File "/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/build/../llvm-zorg/zorg/buildbot/builders/annotated/amdgpu-offload-cmake.py", line 62, in step
    yield
  File "/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/build/../llvm-zorg/zorg/buildbot/builders/annotated/amdgpu-offload-cmake.py", line 53, in main
    run_command(["ninja"])
  File "/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/build/../llvm-zorg/zorg/buildbot/builders/annotated/amdgpu-offload-cmake.py", line 75, in run_command
    util.report_run_cmd(cmd, cwd=directory)
  File "/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/llvm-zorg/zorg/buildbot/builders/annotated/util.py", line 49, in report_run_cmd
    subprocess.check_call(cmd, shell=shell, *args, **kwargs)
  File "/usr/lib/python3.10/subprocess.py", line 369, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['ninja']' returned non-zero exit status 1.
@@@STEP_FAILURE@@@
Step 7 (build cmake config) failure: build cmake config (failure)
...
[8432/8508] Building CXX object tools/flang/tools/fir-lsp-server/CMakeFiles/fir-lsp-server.dir/fir-lsp-server.cpp.o
[8433/8508] Linking CXX shared library lib/libFIRBuilder.so.23.0git
[8434/8508] Creating library symlink lib/libFIRBuilder.so
[8435/8508] Linking CXX shared library lib/libFIROpenMPSupport.so.23.0git
[8436/8508] Creating library symlink lib/libFIROpenMPSupport.so
[8437/8508] Linking CXX shared library lib/libFortranUtils.so.23.0git
[8438/8508] Creating library symlink lib/libFortranUtils.so
[8439/8508] Linking CXX shared library lib/libFIROpenACCSupport.so.23.0git
[8440/8508] Creating library symlink lib/libFIROpenACCSupport.so
[8441/8508] Linking CXX shared library lib/libFIROpenACCAnalysis.so.23.0git
FAILED: lib/libFIROpenACCAnalysis.so.23.0git 
: && /usr/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-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-array-bounds -Wno-stringop-overread -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Wno-deprecated-copy -Wno-ctad-maybe-unsupported -fno-semantic-interposition -O3 -DNDEBUG -fno-semantic-interposition  -Wl,-z,defs -Wl,-z,nodelete   -Wl,-rpath-link,/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/build/./lib  -Wl,--gc-sections -shared -Wl,-soname,libFIROpenACCAnalysis.so.23.0git -o lib/libFIROpenACCAnalysis.so.23.0git tools/flang/lib/Optimizer/OpenACC/Analysis/CMakeFiles/FIROpenACCAnalysis.dir/FIROpenACCSupportAnalysis.cpp.o  -Wl,-rpath,"\$ORIGIN/../lib:/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/build/lib:"  lib/libFIROpenACCSupport.so.23.0git  lib/libFIRAnalysis.so.23.0git  lib/libHLFIRDialect.so.23.0git  lib/libFIRDialect.so.23.0git  lib/libMLIROpenACCUtils.so.23.0git  lib/libMLIROpenACCDialect.so.23.0git  lib/libMLIRSCFUtils.so.23.0git  lib/libMLIRAffineAnalysis.so.23.0git  lib/libMLIRSCFDialect.so.23.0git  lib/libMLIRTensorDialect.so.23.0git  lib/libMLIRParallelCombiningOpInterface.so.23.0git  lib/libMLIRControlFlowDialect.so.23.0git  lib/libMLIRAffineDialect.so.23.0git  lib/libMLIRTransforms.so.23.0git  lib/libMLIRTransformUtils.so.23.0git  lib/libMLIRSubsetOpInterface.so.23.0git  lib/libMLIRRewrite.so.23.0git  lib/libMLIRRewritePDL.so.23.0git  lib/libMLIRPDLToPDLInterp.so.23.0git  lib/libMLIRPDLInterpDialect.so.23.0git  lib/libMLIRPDLDialect.so.23.0git  lib/libMLIRRuntimeVerifiableOpInterface.so.23.0git  lib/libMLIRPass.so.23.0git  lib/libMLIROpenACCMPCommon.so.23.0git  lib/libMLIRFuncDialect.so.23.0git  lib/libMLIRGPUDialect.so.23.0git  lib/libMLIRMemRefDialect.so.23.0git  lib/libMLIRArithUtils.so.23.0git  lib/libMLIRComplexDialect.so.23.0git  lib/libMLIRDialectUtils.so.23.0git  lib/libMLIRMemOpInterfaces.so.23.0git  lib/libMLIRValueBoundsOpInterface.so.23.0git  lib/libMLIRAnalysis.so.23.0git  lib/libMLIRInferStridedMetadataInterface.so.23.0git  lib/libMLIRLoopLikeInterface.so.23.0git  lib/libMLIRPresburger.so.23.0git  lib/libMLIRDestinationStyleOpInterface.so.23.0git  lib/libMLIRViewLikeInterface.so.23.0git  lib/libMLIRDLTIDialect.so.23.0git  lib/libMLIRMathDialect.so.23.0git  lib/libMLIRArithDialect.so.23.0git  lib/libMLIRInferIntRangeCommon.so.23.0git  lib/libMLIRShapedOpInterfaces.so.23.0git  lib/libMLIRCastInterfaces.so.23.0git  lib/libMLIRDialect.so.23.0git  lib/libMLIRUBDialect.so.23.0git  lib/libMLIRLLVMDialect.so.23.0git  lib/libMLIRDataLayoutInterfaces.so.23.0git  lib/libMLIRControlFlowInterfaces.so.23.0git  lib/libMLIRFunctionInterfaces.so.23.0git  lib/libMLIRCallInterfaces.so.23.0git  lib/libMLIRInferTypeOpInterface.so.23.0git  lib/libMLIRMemorySlotInterfaces.so.23.0git  lib/libMLIRPtrMemorySpaceInterfaces.so.23.0git  lib/libMLIRInferIntRangeInterface.so.23.0git  lib/libMLIRSideEffectInterfaces.so.23.0git  lib/libMLIRAsmParser.so.23.0git  lib/libMLIRIR.so.23.0git  lib/libMLIRSupport.so.23.0git  lib/libLLVMCore.so.23.0git  lib/libLLVMBinaryFormat.so.23.0git  lib/libLLVMSupport.so.23.0git  -Wl,-rpath-link,/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/build/lib && :
/usr/bin/ld: tools/flang/lib/Optimizer/OpenACC/Analysis/CMakeFiles/FIROpenACCAnalysis.dir/FIROpenACCSupportAnalysis.cpp.o: in function `fir::acc::FIROpenACCSupportAnalysis::isValidSymbolUse(mlir::Operation*, mlir::SymbolRefAttr, mlir::Operation**)':
FIROpenACCSupportAnalysis.cpp:(.text._ZN3fir3acc25FIROpenACCSupportAnalysis16isValidSymbolUseEPN4mlir9OperationENS2_13SymbolRefAttrEPS4_+0xc2): undefined reference to `mlir::detail::TypeIDResolver<cuf::ProcAttributeAttr, void>::id'
/usr/bin/ld: FIROpenACCSupportAnalysis.cpp:(.text._ZN3fir3acc25FIROpenACCSupportAnalysis16isValidSymbolUseEPN4mlir9OperationENS2_13SymbolRefAttrEPS4_+0x1ab): undefined reference to `cuf::ProcAttributeAttr::getValue() const'
collect2: error: ld returned 1 exit status
[8442/8508] Linking CXX shared library lib/libFIRTestOpenACCInterfaces.so.23.0git
[8443/8508] Linking CXX shared library lib/libFIRCodeGen.so.23.0git
[8444/8508] Linking CXX shared library lib/libFlangOpenMPTransforms.so.23.0git
[8445/8508] Linking CXX executable bin/fir-lsp-server
[8446/8508] Building CXX object tools/flang/tools/fir-opt/CMakeFiles/fir-opt.dir/fir-opt.cpp.o
[8447/8508] Building CXX object tools/flang/tools/tco/CMakeFiles/tco.dir/tco.cpp.o
[8448/8508] Building CXX object tools/flang/lib/Frontend/CMakeFiles/flangFrontend.dir/FrontendActions.cpp.o
[8449/8508] Building CXX object tools/flang/tools/bbc/CMakeFiles/bbc.dir/bbc.cpp.o
ninja: build stopped: subcommand failed.
['ninja'] exited with return code 1.
The build step threw an exception...
Traceback (most recent call last):
  File "/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/build/../llvm-zorg/zorg/buildbot/builders/annotated/amdgpu-offload-cmake.py", line 62, in step
    yield
  File "/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/build/../llvm-zorg/zorg/buildbot/builders/annotated/amdgpu-offload-cmake.py", line 53, in main
    run_command(["ninja"])
  File "/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/build/../llvm-zorg/zorg/buildbot/builders/annotated/amdgpu-offload-cmake.py", line 75, in run_command
    util.report_run_cmd(cmd, cwd=directory)
  File "/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/llvm-zorg/zorg/buildbot/builders/annotated/util.py", line 49, in report_run_cmd
    subprocess.check_call(cmd, shell=shell, *args, **kwargs)
  File "/usr/lib/python3.10/subprocess.py", line 369, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['ninja']' returned non-zero exit status 1.
program finished with exit code 0
elapsedTime=119.035968

```

</details>

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


More information about the Mlir-commits mailing list