[flang-commits] [flang] [flang][cuda] Convert cuf.alloc for box to fir.alloca in device context (PR #102662)

LLVM Continuous Integration via flang-commits flang-commits at lists.llvm.org
Fri Aug 9 13:45:38 PDT 2024


llvm-ci wrote:

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

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

Here is the relevant piece of the build log for the reference:
```
Step 5 (build-unified-tree) failure: build (failure)
...
91.426 [154/3/6961] Linking CXX executable bin/opt
94.800 [154/2/6962] Linking CXX shared library lib/libFortranSemantics.so.20.0git
94.807 [153/2/6963] Creating library symlink lib/libFortranSemantics.so
94.941 [148/6/6964] Linking CXX executable tools/flang/unittests/Evaluate/logical.test
94.950 [148/5/6965] Linking CXX executable tools/flang/unittests/Evaluate/integer.test
94.957 [148/4/6966] Linking CXX executable tools/flang/unittests/Evaluate/real.test
95.050 [148/3/6967] Linking CXX executable tools/flang/unittests/Evaluate/folding.test
95.097 [148/2/6968] Linking CXX executable tools/flang/unittests/Evaluate/expression.test
109.596 [148/1/6969] Building CXX object tools/flang/lib/Optimizer/Transforms/CMakeFiles/FIRTransforms.dir/CufOpConversion.cpp.o
109.883 [147/1/6970] Linking CXX shared library lib/libFIRTransforms.so.20.0git
FAILED: lib/libFIRTransforms.so.20.0git 
: && /usr/local/bin/c++ -fPIC -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 -Werror -Wno-deprecated-copy -Wno-string-conversion -Wno-ctad-maybe-unsupported -Wno-unused-command-line-argument -Wstring-conversion           -Wcovered-switch-default -Wno-nested-anon-types -O3 -DNDEBUG  -stdlib=libc++ -Wl,-z,defs -Wl,-z,nodelete   -Wl,-rpath-link,/home/tcwg-buildbot/worker/flang-aarch64-libcxx/build/./lib  -Wl,--gc-sections -shared -Wl,-soname,libFIRTransforms.so.20.0git -o lib/libFIRTransforms.so.20.0git tools/flang/lib/Optimizer/Transforms/CMakeFiles/FIRTransforms.dir/AbstractResult.cpp.o tools/flang/lib/Optimizer/Transforms/CMakeFiles/FIRTransforms.dir/AddAliasTags.cpp.o tools/flang/lib/Optimizer/Transforms/CMakeFiles/FIRTransforms.dir/AffinePromotion.cpp.o tools/flang/lib/Optimizer/Transforms/CMakeFiles/FIRTransforms.dir/AffineDemotion.cpp.o tools/flang/lib/Optimizer/Transforms/CMakeFiles/FIRTransforms.dir/AnnotateConstant.cpp.o tools/flang/lib/Optimizer/Transforms/CMakeFiles/FIRTransforms.dir/AssumedRankOpConversion.cpp.o tools/flang/lib/Optimizer/Transforms/CMakeFiles/FIRTransforms.dir/CharacterConversion.cpp.o tools/flang/lib/Optimizer/Transforms/CMakeFiles/FIRTransforms.dir/ConstantArgumentGlobalisation.cpp.o tools/flang/lib/Optimizer/Transforms/CMakeFiles/FIRTransforms.dir/ControlFlowConverter.cpp.o tools/flang/lib/Optimizer/Transforms/CMakeFiles/FIRTransforms.dir/CufOpConversion.cpp.o tools/flang/lib/Optimizer/Transforms/CMakeFiles/FIRTransforms.dir/ArrayValueCopy.cpp.o tools/flang/lib/Optimizer/Transforms/CMakeFiles/FIRTransforms.dir/ExternalNameConversion.cpp.o tools/flang/lib/Optimizer/Transforms/CMakeFiles/FIRTransforms.dir/MemoryUtils.cpp.o tools/flang/lib/Optimizer/Transforms/CMakeFiles/FIRTransforms.dir/MemoryAllocation.cpp.o tools/flang/lib/Optimizer/Transforms/CMakeFiles/FIRTransforms.dir/StackArrays.cpp.o tools/flang/lib/Optimizer/Transforms/CMakeFiles/FIRTransforms.dir/MemRefDataFlowOpt.cpp.o tools/flang/lib/Optimizer/Transforms/CMakeFiles/FIRTransforms.dir/SimplifyRegionLite.cpp.o tools/flang/lib/Optimizer/Transforms/CMakeFiles/FIRTransforms.dir/AlgebraicSimplification.cpp.o tools/flang/lib/Optimizer/Transforms/CMakeFiles/FIRTransforms.dir/SimplifyIntrinsics.cpp.o tools/flang/lib/Optimizer/Transforms/CMakeFiles/FIRTransforms.dir/AddDebugInfo.cpp.o tools/flang/lib/Optimizer/Transforms/CMakeFiles/FIRTransforms.dir/PolymorphicOpConversion.cpp.o tools/flang/lib/Optimizer/Transforms/CMakeFiles/FIRTransforms.dir/LoopVersioning.cpp.o tools/flang/lib/Optimizer/Transforms/CMakeFiles/FIRTransforms.dir/OMPFunctionFiltering.cpp.o tools/flang/lib/Optimizer/Transforms/CMakeFiles/FIRTransforms.dir/OMPMapInfoFinalization.cpp.o tools/flang/lib/Optimizer/Transforms/CMakeFiles/FIRTransforms.dir/OMPMarkDeclareTarget.cpp.o tools/flang/lib/Optimizer/Transforms/CMakeFiles/FIRTransforms.dir/StackReclaim.cpp.o tools/flang/lib/Optimizer/Transforms/CMakeFiles/FIRTransforms.dir/VScaleAttr.cpp.o tools/flang/lib/Optimizer/Transforms/CMakeFiles/FIRTransforms.dir/FunctionAttr.cpp.o tools/flang/lib/Optimizer/Transforms/CMakeFiles/FIRTransforms.dir/DebugTypeGenerator.cpp.o  -Wl,-rpath,"\$ORIGIN/../lib:/home/tcwg-buildbot/worker/flang-aarch64-libcxx/build/lib:"  lib/libCUFDialect.so.20.0git  lib/libFIRCodeGen.so.20.0git  lib/libFortranCommon.so.20.0git  lib/libFIRAnalysis.so.20.0git  lib/libFIRBuilder.so.20.0git  lib/libHLFIRDialect.so.20.0git  lib/libFIRSupport.so.20.0git  lib/libFIRDialect.so.20.0git  lib/libFIRDialectSupport.so.20.0git  lib/libMLIRMathTransforms.so.20.0git  lib/libMLIROpenACCToLLVMIRTranslation.so.20.0git  lib/libMLIRX86VectorDialect.so.20.0git  lib/libMLIROpenACCDialect.so.20.0git  lib/libMLIROpenMPDialect.so.20.0git  lib/libMLIROpenACCMPCommon.so.20.0git  lib/libMLIRLLVMCommonConversion.so.20.0git  lib/libMLIRTargetLLVMIRExport.so.20.0git  lib/libMLIRLLVMIRTransforms.so.20.0git  lib/libMLIRNVVMDialect.so.20.0git  lib/libMLIRTranslateLib.so.20.0git  lib/libLLVMFrontendOpenMP.so.20.0git  lib/libLLVMTransformUtils.so.20.0git  lib/libMLIRAffineUtils.so.20.0git  lib/libMLIRTransforms.so.20.0git  lib/libMLIRTransformUtils.so.20.0git  lib/libMLIRRewrite.so.20.0git  lib/libMLIRRewritePDL.so.20.0git  lib/libMLIRPDLToPDLInterp.so.20.0git  lib/libMLIRPDLInterpDialect.so.20.0git  lib/libMLIRPDLDialect.so.20.0git  lib/libMLIRCopyOpInterface.so.20.0git  lib/libMLIRRuntimeVerifiableOpInterface.so.20.0git  lib/libMLIRPass.so.20.0git  lib/libMLIRDLTIDialect.so.20.0git  lib/libMLIRMathDialect.so.20.0git  lib/libMLIRParser.so.20.0git  lib/libMLIRBytecodeReader.so.20.0git  lib/libMLIRAsmParser.so.20.0git  lib/libMLIRSubsetOpInterface.so.20.0git  lib/libMLIRFuncDialect.so.20.0git  lib/libMLIRAffineAnalysis.so.20.0git  lib/libMLIRSCFDialect.so.20.0git  lib/libMLIRControlFlowDialect.so.20.0git  lib/libMLIRVectorDialect.so.20.0git  lib/libMLIRMaskableOpInterface.so.20.0git  lib/libMLIRMaskingOpInterface.so.20.0git  lib/libMLIRTensorDialect.so.20.0git  lib/libMLIRAffineDialect.so.20.0git  lib/libMLIRMemRefDialect.so.20.0git  lib/libMLIRArithUtils.so.20.0git  lib/libMLIRDialectUtils.so.20.0git  lib/libMLIRShapedOpInterfaces.so.20.0git  lib/libMLIRValueBoundsOpInterface.so.20.0git  lib/libMLIRAnalysis.so.20.0git  lib/libMLIRViewLikeInterface.so.20.0git  lib/libMLIRLoopLikeInterface.so.20.0git  lib/libMLIRPresburger.so.20.0git  lib/libMLIRComplexDialect.so.20.0git  lib/libMLIRArithAttrToLLVMConversion.so.20.0git  lib/libMLIRLLVMDialect.so.20.0git  lib/libMLIRCallInterfaces.so.20.0git  lib/libMLIRControlFlowInterfaces.so.20.0git  lib/libMLIRFunctionInterfaces.so.20.0git  lib/libMLIRSideEffectInterfaces.so.20.0git  lib/libMLIRDataLayoutInterfaces.so.20.0git  lib/libMLIRMemorySlotInterfaces.so.20.0git  lib/libLLVMBitWriter.so.20.0git  lib/libLLVMAsmParser.so.20.0git  lib/libLLVMBitReader.so.20.0git  lib/libLLVMCore.so.20.0git  lib/libLLVMBinaryFormat.so.20.0git  lib/libLLVMTargetParser.so.20.0git  lib/libMLIRArithDialect.so.20.0git  lib/libMLIRInferTypeOpInterface.so.20.0git  lib/libMLIRUBDialect.so.20.0git  lib/libMLIRDialect.so.20.0git  lib/libMLIRInferIntRangeCommon.so.20.0git  lib/libMLIRInferIntRangeInterface.so.20.0git  lib/libMLIRCastInterfaces.so.20.0git  lib/libMLIRDestinationStyleOpInterface.so.20.0git  lib/libMLIRParallelCombiningOpInterface.so.20.0git  lib/libMLIRVectorInterfaces.so.20.0git  lib/libMLIRIR.so.20.0git  lib/libMLIRSupport.so.20.0git  -lpthread  lib/libLLVMSupport.so.20.0git  -Wl,-rpath-link,/home/tcwg-buildbot/worker/flang-aarch64-libcxx/build/lib && :
/usr/bin/ld: tools/flang/lib/Optimizer/Transforms/CMakeFiles/FIRTransforms.dir/CufOpConversion.cpp.o: in function `(anonymous namespace)::inDeviceContext(mlir::Operation*)':
CufOpConversion.cpp:(.text._ZN12_GLOBAL__N_115inDeviceContextEPN4mlir9OperationE+0xb0): undefined reference to `mlir::detail::TypeIDResolver<cuf::ProcAttributeAttr, void>::id'
/usr/bin/ld: CufOpConversion.cpp:(.text._ZN12_GLOBAL__N_115inDeviceContextEPN4mlir9OperationE+0xb8): undefined reference to `mlir::detail::TypeIDResolver<cuf::ProcAttributeAttr, void>::id'
/usr/bin/ld: CufOpConversion.cpp:(.text._ZN12_GLOBAL__N_115inDeviceContextEPN4mlir9OperationE+0xe4): undefined reference to `cuf::ProcAttributeAttr::getValue() const'
/usr/bin/ld: CufOpConversion.cpp:(.text._ZN12_GLOBAL__N_115inDeviceContextEPN4mlir9OperationE+0xf0): undefined reference to `cuf::ProcAttributeAttr::getValue() const'
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.

```

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


More information about the flang-commits mailing list