[Mlir-commits] [mlir] [TOSA] bug fix infer shape for slice (PR #108306)

LLVM Continuous Integration llvmlistbot at llvm.org
Tue Oct 22 20:28:36 PDT 2024


llvm-ci wrote:

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

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

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

```
Step 5 (build-check-mlir-build-only) failure: build (failure)
...
34.000 [95/7/4488] Linking CXX static library lib/libMLIRNVGPUToNVVM.a
34.015 [94/7/4489] Linking CXX static library lib/libMLIRMathToROCDL.a
34.028 [93/7/4490] Linking CXX static library lib/libMLIRGPUToNVVMTransforms.a
34.066 [92/7/4491] Linking CXX static library lib/libMLIRNVGPUTransformOps.a
34.075 [92/6/4492] Linking CXX static library lib/libMLIRGPUToROCDLTransforms.a
34.101 [92/5/4493] Linking CXX static library lib/libMLIRGPUTransformOps.a
34.633 [92/4/4494] Linking CXX executable bin/lli
34.712 [92/3/4495] Linking CXX executable bin/llc
34.975 [92/2/4496] Linking CXX executable tools/mlir/unittests/Target/LLVM/MLIRTargetLLVMTests
38.212 [92/1/4497] Building CXX object tools/mlir/lib/Dialect/Tosa/CMakeFiles/obj.MLIRTosaDialect.dir/IR/TosaOps.cpp.o
FAILED: tools/mlir/lib/Dialect/Tosa/CMakeFiles/obj.MLIRTosaDialect.dir/IR/TosaOps.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes /usr/bin/ccache /usr/bin/g++-7 -DGTEST_HAS_RTTI=0 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/vol/worker/mlir-nvidia/mlir-nvidia-gcc7/llvm.obj/tools/mlir/lib/Dialect/Tosa -I/vol/worker/mlir-nvidia/mlir-nvidia-gcc7/llvm.src/mlir/lib/Dialect/Tosa -I/vol/worker/mlir-nvidia/mlir-nvidia-gcc7/llvm.obj/include -I/vol/worker/mlir-nvidia/mlir-nvidia-gcc7/llvm.src/llvm/include -I/vol/worker/mlir-nvidia/mlir-nvidia-gcc7/llvm.src/mlir/include -I/vol/worker/mlir-nvidia/mlir-nvidia-gcc7/llvm.obj/tools/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 -Wno-deprecated-copy -O3 -DNDEBUG  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -std=c++1z -MD -MT tools/mlir/lib/Dialect/Tosa/CMakeFiles/obj.MLIRTosaDialect.dir/IR/TosaOps.cpp.o -MF tools/mlir/lib/Dialect/Tosa/CMakeFiles/obj.MLIRTosaDialect.dir/IR/TosaOps.cpp.o.d -o tools/mlir/lib/Dialect/Tosa/CMakeFiles/obj.MLIRTosaDialect.dir/IR/TosaOps.cpp.o -c /vol/worker/mlir-nvidia/mlir-nvidia-gcc7/llvm.src/mlir/lib/Dialect/Tosa/IR/TosaOps.cpp
/vol/worker/mlir-nvidia/mlir-nvidia-gcc7/llvm.src/mlir/lib/Dialect/Tosa/IR/TosaOps.cpp: In static member function ‘static llvm::LogicalResult mlir::tosa::SliceOp::inferReturnTypeComponents(mlir::MLIRContext*, std::optional<mlir::Location>, mlir::tosa::SliceOp::Adaptor, llvm::SmallVectorImpl<mlir::ShapedTypeComponents>&)’:
/vol/worker/mlir-nvidia/mlir-nvidia-gcc7/llvm.src/mlir/lib/Dialect/Tosa/IR/TosaOps.cpp:852:35: error: ‘using Adaptor = class mlir::tosa::SliceOpAdaptor {aka class mlir::tosa::SliceOpAdaptor}’ has no member named ‘getInput’; did you mean ‘getInput1’?
   ShapeAdaptor inputShape(adaptor.getInput().getType());
                                   ^~~~~~~~
                                   getInput1
At global scope:
cc1plus: warning: unrecognized command line option ‘-Wno-deprecated-copy’
ninja: build stopped: subcommand failed.

```

</details>

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


More information about the Mlir-commits mailing list