Skip to content

Create general PoolingOp and decompose to MaxPool2d #1482

Create general PoolingOp and decompose to MaxPool2d

Create general PoolingOp and decompose to MaxPool2d #1482

GitHub Actions / MLIR Tests failed Nov 4, 2024 in 0s

219 tests run, 203 passed, 7 skipped, 9 failed.

Annotations

Check failure on line 1 in ttmlir/Conversion/StableHLOToTTIR

See this annotation in the file changed.

@github-actions github-actions / MLIR Tests

ttmlir/Conversion/StableHLOToTTIR.maxpool2d_op.mlir

Exit Code: 2
Raw output
Exit Code: 2

Command Output (stderr):
--
RUN: at line 2: /__w/tt-mlir/tt-mlir/build/bin/ttmlir-opt --stablehlo-to-ttir-pipeline /__w/tt-mlir/tt-mlir/test/ttmlir/Conversion/StableHLOToTTIR/maxpool2d_op.mlir | /opt/ttmlir-toolchain/bin/FileCheck /__w/tt-mlir/tt-mlir/test/ttmlir/Conversion/StableHLOToTTIR/maxpool2d_op.mlir
+ /opt/ttmlir-toolchain/bin/FileCheck /__w/tt-mlir/tt-mlir/test/ttmlir/Conversion/StableHLOToTTIR/maxpool2d_op.mlir
+ /__w/tt-mlir/tt-mlir/build/bin/ttmlir-opt --stablehlo-to-ttir-pipeline /__w/tt-mlir/tt-mlir/test/ttmlir/Conversion/StableHLOToTTIR/maxpool2d_op.mlir
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
Stack dump:
0.	Program arguments: /__w/tt-mlir/tt-mlir/build/bin/ttmlir-opt --stablehlo-to-ttir-pipeline /__w/tt-mlir/tt-mlir/test/ttmlir/Conversion/StableHLOToTTIR/maxpool2d_op.mlir
 #0 0x00007fc9465b395c llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/opt/ttmlir-toolchain/lib/libLLVM.so.20.0git+0xe5495c)
 #1 0x00007fc9465b3d86 SignalHandler(int) Signals.cpp:0:0
 #2 0x00007fc94523c520 (/lib/x86_64-linux-gnu/libc.so.6+0x42520)
 #3 0x0000559c2d56443e mlir::detail::OperandStorage::OperandStorage(mlir::Operation*, mlir::OpOperand*, mlir::ValueRange) (/__w/tt-mlir/tt-mlir/build/bin/ttmlir-opt+0x1dcb43e)
 #4 0x0000559c2d55dc60 mlir::Operation::create(mlir::Location, mlir::OperationName, mlir::TypeRange, mlir::ValueRange, mlir::DictionaryAttr, mlir::OpaqueProperties, mlir::BlockRange, unsigned int) (/__w/tt-mlir/tt-mlir/build/bin/ttmlir-opt+0x1dc4c60)
 #5 0x0000559c2d55d892 mlir::Operation::create(mlir::Location, mlir::OperationName, mlir::TypeRange, mlir::ValueRange, mlir::NamedAttrList&&, mlir::OpaqueProperties, mlir::BlockRange, unsigned int) (/__w/tt-mlir/tt-mlir/build/bin/ttmlir-opt+0x1dc4892)
 #6 0x0000559c2d55d734 mlir::Operation::create(mlir::Location, mlir::OperationName, mlir::TypeRange, mlir::ValueRange, mlir::NamedAttrList&&, mlir::OpaqueProperties, mlir::BlockRange, mlir::RegionRange) (/__w/tt-mlir/tt-mlir/build/bin/ttmlir-opt+0x1dc4734)
 #7 0x0000559c2d55d671 mlir::Operation::create(mlir::OperationState const&) (/__w/tt-mlir/tt-mlir/build/bin/ttmlir-opt+0x1dc4671)
 #8 0x0000559c2d4fe2fa mlir::OpBuilder::create(mlir::OperationState const&) (/__w/tt-mlir/tt-mlir/build/bin/ttmlir-opt+0x1d652fa)
 #9 0x0000559c2ccc9d30 mlir::tt::ttir::PoolingOp mlir::OpBuilder::create<mlir::tt::ttir::PoolingOp, mlir::RankedTensorType&, mlir::ValueRange&, mlir::ValueRange&, mlir::tt::ttir::PoolingMethod&, mlir::detail::DenseArrayAttrImpl<long>&, mlir::detail::DenseArrayAttrImpl<long>&, mlir::detail::DenseArrayAttrImpl<long>&, mlir::detail::DenseArrayAttrImpl<long>&, mlir::detail::DenseArrayAttrImpl<long>&, mlir::ArrayAttr&>(mlir::Location, mlir::RankedTensorType&, mlir::ValueRange&, mlir::ValueRange&, mlir::tt::ttir::PoolingMethod&, mlir::detail::DenseArrayAttrImpl<long>&, mlir::detail::DenseArrayAttrImpl<long>&, mlir::detail::DenseArrayAttrImpl<long>&, mlir::detail::DenseArrayAttrImpl<long>&, mlir::detail::DenseArrayAttrImpl<long>&, mlir::ArrayAttr&) (/__w/tt-mlir/tt-mlir/build/bin/ttmlir-opt+0x1530d30)
#10 0x0000559c2ccc916e (anonymous namespace)::StableHLOToTTIRReduceWindowOpConversionPattern::matchAndRewrite(mlir::stablehlo::ReduceWindowOp, mlir::stablehlo::ReduceWindowOpAdaptor, mlir::ConversionPatternRewriter&) const StableHLOToTTIRPatterns.cpp:0:0
#11 0x0000559c2ccc7bda mlir::OpConversionPattern<mlir::stablehlo::ReduceWindowOp>::matchAndRewrite(mlir::Operation*, llvm::ArrayRef<mlir::Value>, mlir::ConversionPatternRewriter&) const (/__w/tt-mlir/tt-mlir/build/bin/ttmlir-opt+0x152ebda)
#12 0x0000559c2d37f6c5 mlir::ConversionPattern::matchAndRewrite(mlir::Operation*, mlir::PatternRewriter&) const (/__w/tt-mlir/tt-mlir/build/bin/ttmlir-opt+0x1be66c5)
#13 0x0000559c2d3aa822 void llvm::function_ref<void ()>::callback_fn<mlir::PatternApplicator::matchAndRewrite(mlir::Operation*, mlir::PatternRewriter&, llvm::function_ref<bool (mlir::Pattern const&)>, llvm::function_ref<void (mlir::Pattern const&)>, llvm::function_ref<llvm::LogicalResult (mlir::Pattern const&)>)::$_0>(long) PatternApplicator.cpp:0:0
#14 0x0000559c2d3a8324 mlir::PatternApplicator::matchAndRewrite(mlir::Operation*, mlir::PatternRewriter&, llvm::function_ref<bool (mlir::Pattern const&)>, llvm::function_ref<void (mlir::Pattern const&)>, llvm::function_ref<llvm::LogicalResult (mlir::Pattern const&)>) (/__w/tt-mlir/tt-mlir/build/bin/ttmlir-opt+0x1c0f324)
#15 0x0000559c2d37ff94 (anonymous namespace)::OperationLegalizer::legalize(mlir::Operation*, mlir::ConversionPatternRewriter&) DialectConversion.cpp:0:0
#16 0x0000559c2d37f74a mlir::OperationConverter::convert(mlir::ConversionPatternRewriter&, mlir::Operation*) (/__w/tt-mlir/tt-mlir/build/bin/ttmlir-opt+0x1be674a)
#17 0x0000559c2d3803de mlir::OperationConverter::convertOperations(llvm::ArrayRef<mlir::Operation*>) (/__w/tt-mlir/tt-mlir/build/bin/ttmlir-opt+0x1be73de)
#18 0x0000559c2d383a53 mlir::applyFullConversion(llvm::ArrayRef<mlir::Operation*>, mlir::ConversionTarget const&, mlir::FrozenRewritePatternSet const&, mlir::ConversionConfig) (/__w/tt-mlir/tt-mlir/build/bin/ttmlir-opt+0x1beaa53)
#19 0x0000559c2d383abf mlir::applyFullConversion(mlir::Operation*, mlir::ConversionTarget const&, mlir::FrozenRewritePatternSet const&, mlir::ConversionConfig) (/__w/tt-mlir/tt-mlir/build/bin/ttmlir-opt+0x1beaabf)
#20 0x0000559c2cca835f (anonymous namespace)::ConvertStableHLOToTTIRPass::runOnOperation() StableHLOToTTIRPass.cpp:0:0
#21 0x0000559c2d46f2ce void llvm::function_ref<void ()>::callback_fn<mlir::detail::OpToOpPassAdaptor::run(mlir::Pass*, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int)::$_1>(long) Pass.cpp:0:0
#22 0x0000559c2d46b8e6 mlir::detail::OpToOpPassAdaptor::run(mlir::Pass*, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int) (/__w/tt-mlir/tt-mlir/build/bin/ttmlir-opt+0x1cd28e6)
#23 0x0000559c2d46bceb mlir::detail::OpToOpPassAdaptor::runPipeline(mlir::OpPassManager&, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int, mlir::PassInstrumentor*, mlir::PassInstrumentation::PipelineParentInfo const*) (/__w/tt-mlir/tt-mlir/build/bin/ttmlir-opt+0x1cd2ceb)
#24 0x0000559c2d46d5fc mlir::PassManager::run(mlir::Operation*) (/__w/tt-mlir/tt-mlir/build/bin/ttmlir-opt+0x1cd45fc)
#25 0x0000559c2c6c20b8 performActions(llvm::raw_ostream&, std::shared_ptr<llvm::SourceMgr> const&, mlir::MLIRContext*, mlir::MlirOptMainConfig const&) MlirOptMain.cpp:0:0
#26 0x0000559c2c6c1d86 llvm::LogicalResult llvm::function_ref<llvm::LogicalResult (std::unique_ptr<llvm::MemoryBuffer, std::default_delete<llvm::MemoryBuffer>>, llvm::raw_ostream&)>::callback_fn<mlir::MlirOptMain(llvm::raw_ostream&, std::unique_ptr<llvm::MemoryBuffer, std::default_delete<llvm::MemoryBuffer>>, mlir::DialectRegistry&, mlir::MlirOptMainConfig const&)::$_0>(long, std::unique_ptr<llvm::MemoryBuffer, std::default_delete<llvm::MemoryBuffer>>, llvm::raw_ostream&) MlirOptMain.cpp:0:0
#27 0x0000559c2d57da39 mlir::splitAndProcessBuffer(std::unique_ptr<llvm::MemoryBuffer, std::default_delete<llvm::MemoryBuffer>>, llvm::function_ref<llvm::LogicalResult (std::unique_ptr<llvm::MemoryBuffer, std::default_delete<llvm::MemoryBuffer>>, llvm::raw_ostream&)>, llvm::raw_ostream&, llvm::StringRef, llvm::StringRef) (/__w/tt-mlir/tt-mlir/build/bin/ttmlir-opt+0x1de4a39)
#28 0x0000559c2c6be491 mlir::MlirOptMain(llvm::raw_ostream&, std::unique_ptr<llvm::MemoryBuffer, std::default_delete<llvm::MemoryBuffer>>, mlir::DialectRegistry&, mlir::MlirOptMainConfig const&) (/__w/tt-mlir/tt-mlir/build/bin/ttmlir-opt+0xf25491)
#29 0x0000559c2c6be6c6 mlir::MlirOptMain(int, char**, llvm::StringRef, llvm::StringRef, mlir::DialectRegistry&) (/__w/tt-mlir/tt-mlir/build/bin/ttmlir-opt+0xf256c6)
#30 0x0000559c2c6be86c mlir::MlirOptMain(int, char**, llvm::StringRef, mlir::DialectRegistry&) (/__w/tt-mlir/tt-mlir/build/bin/ttmlir-opt+0xf2586c)
#31 0x0000559c2b9f41ef main (/__w/tt-mlir/tt-mlir/build/bin/ttmlir-opt+0x25b1ef)
#32 0x00007fc945223d90 (/lib/x86_64-linux-gnu/libc.so.6+0x29d90)
#33 0x00007fc945223e40 __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x29e40)
#34 0x0000559c2b9f40d5 _start (/__w/tt-mlir/tt-mlir/build/bin/ttmlir-opt+0x25b0d5)
FileCheck error: '<stdin>' is empty.
FileCheck command line:  /opt/ttmlir-toolchain/bin/FileCheck /__w/tt-mlir/tt-mlir/test/ttmlir/Conversion/StableHLOToTTIR/maxpool2d_op.mlir

--

Check failure on line 32 in ttmlir/Dialect/TTNN/convolution

See this annotation in the file changed.

@github-actions github-actions / MLIR Tests

ttmlir/Dialect/TTNN/convolution.complex_conv_channel_first.mlir

Exit Code: 2
Raw output
Exit Code: 2

Command Output (stderr):
--
RUN: at line 1: /__w/tt-mlir/tt-mlir/build/bin/ttmlir-opt --ttir-to-ttnn-backend-pipeline /__w/tt-mlir/tt-mlir/test/ttmlir/Dialect/TTNN/convolution/complex_conv_channel_first.mlir | /opt/ttmlir-toolchain/bin/FileCheck /__w/tt-mlir/tt-mlir/test/ttmlir/Dialect/TTNN/convolution/complex_conv_channel_first.mlir
+ /opt/ttmlir-toolchain/bin/FileCheck /__w/tt-mlir/tt-mlir/test/ttmlir/Dialect/TTNN/convolution/complex_conv_channel_first.mlir
+ /__w/tt-mlir/tt-mlir/build/bin/ttmlir-opt --ttir-to-ttnn-backend-pipeline /__w/tt-mlir/tt-mlir/test/ttmlir/Dialect/TTNN/convolution/complex_conv_channel_first.mlir
/__w/tt-mlir/tt-mlir/test/ttmlir/Dialect/TTNN/convolution/complex_conv_channel_first.mlir:9:10: error: failed to legalize unresolved materialization from ('tensor<1x100x7x100xbf16>') to 'tensor<1x7x100x100xbf16>' that remained live after conversion
    %1 = "ttir.convolution"(%arg0, %arg1, %0) <{
         ^
/__w/tt-mlir/tt-mlir/test/ttmlir/Dialect/TTNN/convolution/complex_conv_channel_first.mlir:9:10: note: see current operation: %11 = "builtin.unrealized_conversion_cast"(%10) : (tensor<1x100x7x100xbf16>) -> tensor<1x7x100x100xbf16>
/__w/tt-mlir/tt-mlir/test/ttmlir/Dialect/TTNN/convolution/complex_conv_channel_first.mlir:32:5: note: see existing live user here: func.return %11 : tensor<1x7x100x100xbf16>
    return %1 : tensor<1x7x100x100xbf16>
    ^
FileCheck error: '<stdin>' is empty.
FileCheck command line:  /opt/ttmlir-toolchain/bin/FileCheck /__w/tt-mlir/tt-mlir/test/ttmlir/Dialect/TTNN/convolution/complex_conv_channel_first.mlir

--

Check failure on line 1 in ttmlir/Dialect/TTNN/pooling

See this annotation in the file changed.

@github-actions github-actions / MLIR Tests

ttmlir/Dialect/TTNN/pooling.simple_maxpool2d.mlir

Exit Code: 2
Raw output
Exit Code: 2

Command Output (stderr):
--
RUN: at line 1: /__w/tt-mlir/tt-mlir/build/bin/ttmlir-opt --ttir-to-ttnn-backend-pipeline /__w/tt-mlir/tt-mlir/test/ttmlir/Dialect/TTNN/pooling/simple_maxpool2d.mlir | /opt/ttmlir-toolchain/bin/FileCheck /__w/tt-mlir/tt-mlir/test/ttmlir/Dialect/TTNN/pooling/simple_maxpool2d.mlir
+ /opt/ttmlir-toolchain/bin/FileCheck /__w/tt-mlir/tt-mlir/test/ttmlir/Dialect/TTNN/pooling/simple_maxpool2d.mlir
+ /__w/tt-mlir/tt-mlir/build/bin/ttmlir-opt --ttir-to-ttnn-backend-pipeline /__w/tt-mlir/tt-mlir/test/ttmlir/Dialect/TTNN/pooling/simple_maxpool2d.mlir
ttmlir-opt: /__w/tt-mlir/tt-mlir/lib/Conversion/TTIRToTTNN/TTIRToTTNN.cpp:725: virtual LogicalResult MaxPool2dOpConversionPattern::matchAndRewrite(ttir::MaxPool2dOp, OpAdaptor, ConversionPatternRewriter &) const: Assertion `adaptor.getOriginalHeight().has_value() && "ttir::MaxPool2dOp must have original_height set before translating " "to TTNN dialect."' failed.
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
Stack dump:
0.	Program arguments: /__w/tt-mlir/tt-mlir/build/bin/ttmlir-opt --ttir-to-ttnn-backend-pipeline /__w/tt-mlir/tt-mlir/test/ttmlir/Dialect/TTNN/pooling/simple_maxpool2d.mlir
 #0 0x00007f14fdfb095c llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/opt/ttmlir-toolchain/lib/libLLVM.so.20.0git+0xe5495c)
 #1 0x00007f14fdfb0d86 SignalHandler(int) Signals.cpp:0:0
 #2 0x00007f14fcc39520 (/lib/x86_64-linux-gnu/libc.so.6+0x42520)
 #3 0x00007f14fcc8d9fc pthread_kill (/lib/x86_64-linux-gnu/libc.so.6+0x969fc)
 #4 0x00007f14fcc39476 gsignal (/lib/x86_64-linux-gnu/libc.so.6+0x42476)
 #5 0x00007f14fcc1f7f3 abort (/lib/x86_64-linux-gnu/libc.so.6+0x287f3)
 #6 0x00007f14fcc1f71b (/lib/x86_64-linux-gnu/libc.so.6+0x2871b)
 #7 0x00007f14fcc30e96 (/lib/x86_64-linux-gnu/libc.so.6+0x39e96)
 #8 0x000055b3aebaaa3a MaxPool2dOpConversionPattern::matchAndRewrite(mlir::tt::ttir::MaxPool2dOp, mlir::tt::ttir::MaxPool2dOpAdaptor, mlir::ConversionPatternRewriter&) const (/__w/tt-mlir/tt-mlir/build/bin/ttmlir-opt+0x14a6a3a)
 #9 0x000055b3aebaa22c mlir::OpConversionPattern<mlir::tt::ttir::MaxPool2dOp>::matchAndRewrite(mlir::Operation*, llvm::ArrayRef<mlir::Value>, mlir::ConversionPatternRewriter&) const (/__w/tt-mlir/tt-mlir/build/bin/ttmlir-opt+0x14a622c)
#10 0x000055b3af2ea6c5 mlir::ConversionPattern::matchAndRewrite(mlir::Operation*, mlir::PatternRewriter&) const (/__w/tt-mlir/tt-mlir/build/bin/ttmlir-opt+0x1be66c5)
#11 0x000055b3af315822 void llvm::function_ref<void ()>::callback_fn<mlir::PatternApplicator::matchAndRewrite(mlir::Operation*, mlir::PatternRewriter&, llvm::function_ref<bool (mlir::Pattern const&)>, llvm::function_ref<void (mlir::Pattern const&)>, llvm::function_ref<llvm::LogicalResult (mlir::Pattern const&)>)::$_0>(long) PatternApplicator.cpp:0:0
#12 0x000055b3af313324 mlir::PatternApplicator::matchAndRewrite(mlir::Operation*, mlir::PatternRewriter&, llvm::function_ref<bool (mlir::Pattern const&)>, llvm::function_ref<void (mlir::Pattern const&)>, llvm::function_ref<llvm::LogicalResult (mlir::Pattern const&)>) (/__w/tt-mlir/tt-mlir/build/bin/ttmlir-opt+0x1c0f324)
#13 0x000055b3af2eaf94 (anonymous namespace)::OperationLegalizer::legalize(mlir::Operation*, mlir::ConversionPatternRewriter&) DialectConversion.cpp:0:0
#14 0x000055b3af2ea74a mlir::OperationConverter::convert(mlir::ConversionPatternRewriter&, mlir::Operation*) (/__w/tt-mlir/tt-mlir/build/bin/ttmlir-opt+0x1be674a)
#15 0x000055b3af2eb3de mlir::OperationConverter::convertOperations(llvm::ArrayRef<mlir::Operation*>) (/__w/tt-mlir/tt-mlir/build/bin/ttmlir-opt+0x1be73de)
#16 0x000055b3af2eea53 mlir::applyFullConversion(llvm::ArrayRef<mlir::Operation*>, mlir::ConversionTarget const&, mlir::FrozenRewritePatternSet const&, mlir::ConversionConfig) (/__w/tt-mlir/tt-mlir/build/bin/ttmlir-opt+0x1beaa53)
#17 0x000055b3af2eeabf mlir::applyFullConversion(mlir::Operation*, mlir::ConversionTarget const&, mlir::FrozenRewritePatternSet const&, mlir::ConversionConfig) (/__w/tt-mlir/tt-mlir/build/bin/ttmlir-opt+0x1beaabf)
#18 0x000055b3aeb820f5 (anonymous namespace)::ConvertTTIRToTTNNPass::runOnOperation() TTIRToTTNNPass.cpp:0:0
#19 0x000055b3af3da2ce void llvm::function_ref<void ()>::callback_fn<mlir::detail::OpToOpPassAdaptor::run(mlir::Pass*, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int)::$_1>(long) Pass.cpp:0:0
#20 0x000055b3af3d68e6 mlir::detail::OpToOpPassAdaptor::run(mlir::Pass*, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int) (/__w/tt-mlir/tt-mlir/build/bin/ttmlir-opt+0x1cd28e6)
#21 0x000055b3af3d6ceb mlir::detail::OpToOpPassAdaptor::runPipeline(mlir::OpPassManager&, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int, mlir::PassInstrumentor*, mlir::PassInstrumentation::PipelineParentInfo const*) (/__w/tt-mlir/tt-mlir/build/bin/ttmlir-opt+0x1cd2ceb)
#22 0x000055b3af3d85fc mlir::PassManager::run(mlir::Operation*) (/__w/tt-mlir/tt-mlir/build/bin/ttmlir-opt+0x1cd45fc)
#23 0x000055b3ae62d0b8 performActions(llvm::raw_ostream&, std::shared_ptr<llvm::SourceMgr> const&, mlir::MLIRContext*, mlir::MlirOptMainConfig const&) MlirOptMain.cpp:0:0
#24 0x000055b3ae62cd86 llvm::LogicalResult llvm::function_ref<llvm::LogicalResult (std::unique_ptr<llvm::MemoryBuffer, std::default_delete<llvm::MemoryBuffer>>, llvm::raw_ostream&)>::callback_fn<mlir::MlirOptMain(llvm::raw_ostream&, std::unique_ptr<llvm::MemoryBuffer, std::default_delete<llvm::MemoryBuffer>>, mlir::DialectRegistry&, mlir::MlirOptMainConfig const&)::$_0>(long, std::unique_ptr<llvm::MemoryBuffer, std::default_delete<llvm::MemoryBuffer>>, llvm::raw_ostream&) MlirOptMain.cpp:0:0
#25 0x000055b3af4e8a39 mlir::splitAndProcessBuffer(std::unique_ptr<llvm::MemoryBuffer, std::default_delete<llvm::MemoryBuffer>>, llvm::function_ref<llvm::LogicalResult (std::unique_ptr<llvm::MemoryBuffer, std::default_delete<llvm::MemoryBuffer>>, llvm::raw_ostream&)>, llvm::raw_ostream&, llvm::StringRef, llvm::StringRef) (/__w/tt-mlir/tt-mlir/build/bin/ttmlir-opt+0x1de4a39)
#26 0x000055b3ae629491 mlir::MlirOptMain(llvm::raw_ostream&, std::unique_ptr<llvm::MemoryBuffer, std::default_delete<llvm::MemoryBuffer>>, mlir::DialectRegistry&, mlir::MlirOptMainConfig const&) (/__w/tt-mlir/tt-mlir/build/bin/ttmlir-opt+0xf25491)
#27 0x000055b3ae6296c6 mlir::MlirOptMain(int, char**, llvm::StringRef, llvm::StringRef, mlir::DialectRegistry&) (/__w/tt-mlir/tt-mlir/build/bin/ttmlir-opt+0xf256c6)
#28 0x000055b3ae62986c mlir::MlirOptMain(int, char**, llvm::StringRef, mlir::DialectRegistry&) (/__w/tt-mlir/tt-mlir/build/bin/ttmlir-opt+0xf2586c)
#29 0x000055b3ad95f1ef main (/__w/tt-mlir/tt-mlir/build/bin/ttmlir-opt+0x25b1ef)
#30 0x00007f14fcc20d90 (/lib/x86_64-linux-gnu/libc.so.6+0x29d90)
#31 0x00007f14fcc20e40 __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x29e40)
#32 0x000055b3ad95f0d5 _start (/__w/tt-mlir/tt-mlir/build/bin/ttmlir-opt+0x25b0d5)
FileCheck error: '<stdin>' is empty.
FileCheck command line:  /opt/ttmlir-toolchain/bin/FileCheck /__w/tt-mlir/tt-mlir/test/ttmlir/Dialect/TTNN/pooling/simple_maxpool2d.mlir

--

Check failure on line 24 in ttmlir/Dialect/TTNN

See this annotation in the file changed.

@github-actions github-actions / MLIR Tests

ttmlir/Dialect/TTNN.simple_constant.mlir

Exit Code: 1
Raw output
Exit Code: 1

Command Output (stderr):
--
RUN: at line 1: /__w/tt-mlir/tt-mlir/build/bin/ttmlir-opt --ttir-to-ttnn-backend-pipeline /__w/tt-mlir/tt-mlir/test/ttmlir/Dialect/TTNN/simple_constant.mlir | /opt/ttmlir-toolchain/bin/FileCheck /__w/tt-mlir/tt-mlir/test/ttmlir/Dialect/TTNN/simple_constant.mlir
+ /__w/tt-mlir/tt-mlir/build/bin/ttmlir-opt --ttir-to-ttnn-backend-pipeline /__w/tt-mlir/tt-mlir/test/ttmlir/Dialect/TTNN/simple_constant.mlir
+ /opt/ttmlir-toolchain/bin/FileCheck /__w/tt-mlir/tt-mlir/test/ttmlir/Dialect/TTNN/simple_constant.mlir
/__w/tt-mlir/tt-mlir/test/ttmlir/Dialect/TTNN/simple_constant.mlir:24:12: error: CHECK: expected string not found in input
 // CHECK: %[[C:.*]] = "ttnn.full"[[C:.*]]
           ^
<stdin>:19:112: note: scanning from here
 %1 = "ttnn.full"(%0) <{fillValue = 1.000000e+00 : f32}> : (!tt.device<#device>) -> tensor<64x128xi32, #layout>
                                                                                                               ^
<stdin>:24:2: note: possible intended match here
 %1 = "ttnn.empty"() <{dtype = #tt.supportedDataTypes<f32>, layout = #ttnn.layout<row_major>, shape = #ttnn.shape<64x128>}> : () -> tensor<64x128xf32, #layout1>
 ^

Input file: <stdin>
Check file: /__w/tt-mlir/tt-mlir/test/ttmlir/Dialect/TTNN/simple_constant.mlir

-dump-input=help explains the following input dump.

Input was:
<<<<<<
            .
            .
            .
           14:  %1 = "ttnn.empty"() <{dtype = #tt.supportedDataTypes<f32>, layout = #ttnn.layout<row_major>, shape = #ttnn.shape<64x128>}> : () -> tensor<64x128xf32, #layout1> 
           15:  return %1 : tensor<64x128xf32, #layout1> 
           16:  } 
           17:  func.func @test_full_int() -> tensor<64x128xi32, #layout> { 
           18:  %0 = "ttnn.get_device"() <{mesh_shape = #ttnn<mesh_shape 1x1>}> : () -> !tt.device<#device> 
           19:  %1 = "ttnn.full"(%0) <{fillValue = 1.000000e+00 : f32}> : (!tt.device<#device>) -> tensor<64x128xi32, #layout> 
check:24'0                                                                                                                    X error: no match found
           20:  return %1 : tensor<64x128xi32, #layout> 
check:24'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
           21:  } 
check:24'0     ~~~
           22:  func.func @test_full_float() -> tensor<64x128xf32, #layout1> { 
check:24'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
           23:  %0 = "ttnn.get_device"() <{mesh_shape = #ttnn<mesh_shape 1x1>}> : () -> !tt.device<#device> 
check:24'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
           24:  %1 = "ttnn.empty"() <{dtype = #tt.supportedDataTypes<f32>, layout = #ttnn.layout<row_major>, shape = #ttnn.shape<64x128>}> : () -> tensor<64x128xf32, #layout1> 
check:24'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
check:24'1      ?                                                                                                                                                                possible intended match
           25:  return %1 : tensor<64x128xf32, #layout1> 
check:24'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
           26:  } 
check:24'0     ~~~
           27: } 
check:24'0     ~~
           28:  
check:24'0     ~
>>>>>>

--

Check failure on line 34 in ttmlir/Silicon/TTNN

See this annotation in the file changed.

@github-actions github-actions / MLIR Tests

ttmlir/Silicon/TTNN.complex_conv_channel_first.mlir

Exit Code: 1
Raw output
Exit Code: 1

Command Output (stderr):
--
RUN: at line 1: /__w/tt-mlir/tt-mlir/build/bin/ttmlir-opt --ttir-to-ttnn-backend-pipeline="system-desc-path=" /__w/tt-mlir/tt-mlir/test/ttmlir/Silicon/TTNN/complex_conv_channel_first.mlir > /__w/tt-mlir/tt-mlir/build/test/ttmlir/Silicon/TTNN/Output/complex_conv_channel_first.mlir.tmp.mlir
+ /__w/tt-mlir/tt-mlir/build/bin/ttmlir-opt --ttir-to-ttnn-backend-pipeline=system-desc-path= /__w/tt-mlir/tt-mlir/test/ttmlir/Silicon/TTNN/complex_conv_channel_first.mlir
/__w/tt-mlir/tt-mlir/test/ttmlir/Silicon/TTNN/complex_conv_channel_first.mlir:11:10: error: failed to legalize unresolved materialization from ('tensor<1x100x7x100xbf16>') to 'tensor<1x7x100x100xbf16>' that remained live after conversion
    %1 = "ttir.convolution"(%arg0, %arg1, %0) <{
         ^
/__w/tt-mlir/tt-mlir/test/ttmlir/Silicon/TTNN/complex_conv_channel_first.mlir:11:10: note: see current operation: %11 = "builtin.unrealized_conversion_cast"(%10) : (tensor<1x100x7x100xbf16>) -> tensor<1x7x100x100xbf16>
/__w/tt-mlir/tt-mlir/test/ttmlir/Silicon/TTNN/complex_conv_channel_first.mlir:34:5: note: see existing live user here: func.return %11 : tensor<1x7x100x100xbf16>
    return %1 : tensor<1x7x100x100xbf16>
    ^

--

Check failure on line 1 in ttmlir/Silicon/TTNN/perf_unit

See this annotation in the file changed.

@github-actions github-actions / MLIR Tests

ttmlir/Silicon/TTNN/perf_unit.test_perf_maxpool2d.mlir

Exit Code: 134
Raw output
Exit Code: 134

Command Output (stderr):
--
RUN: at line 1: /__w/tt-mlir/tt-mlir/build/bin/ttmlir-opt --ttir-to-ttnn-backend-pipeline="system-desc-path=" /__w/tt-mlir/tt-mlir/test/ttmlir/Silicon/TTNN/perf_unit/test_perf_maxpool2d.mlir > /__w/tt-mlir/tt-mlir/build/test/ttmlir/Silicon/TTNN/perf_unit/Output/test_perf_maxpool2d.mlir.tmp.mlir
+ /__w/tt-mlir/tt-mlir/build/bin/ttmlir-opt --ttir-to-ttnn-backend-pipeline=system-desc-path= /__w/tt-mlir/tt-mlir/test/ttmlir/Silicon/TTNN/perf_unit/test_perf_maxpool2d.mlir
ttmlir-opt: /__w/tt-mlir/tt-mlir/lib/Conversion/TTIRToTTNN/TTIRToTTNN.cpp:725: virtual LogicalResult MaxPool2dOpConversionPattern::matchAndRewrite(ttir::MaxPool2dOp, OpAdaptor, ConversionPatternRewriter &) const: Assertion `adaptor.getOriginalHeight().has_value() && "ttir::MaxPool2dOp must have original_height set before translating " "to TTNN dialect."' failed.
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
Stack dump:
0.	Program arguments: /__w/tt-mlir/tt-mlir/build/bin/ttmlir-opt --ttir-to-ttnn-backend-pipeline=system-desc-path= /__w/tt-mlir/tt-mlir/test/ttmlir/Silicon/TTNN/perf_unit/test_perf_maxpool2d.mlir
 #0 0x00007f3f5468295c llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/opt/ttmlir-toolchain/lib/libLLVM.so.20.0git+0xe5495c)
 #1 0x00007f3f54682d86 SignalHandler(int) Signals.cpp:0:0
 #2 0x00007f3f5330b520 (/lib/x86_64-linux-gnu/libc.so.6+0x42520)
 #3 0x00007f3f5335f9fc pthread_kill (/lib/x86_64-linux-gnu/libc.so.6+0x969fc)
 #4 0x00007f3f5330b476 gsignal (/lib/x86_64-linux-gnu/libc.so.6+0x42476)
 #5 0x00007f3f532f17f3 abort (/lib/x86_64-linux-gnu/libc.so.6+0x287f3)
 #6 0x00007f3f532f171b (/lib/x86_64-linux-gnu/libc.so.6+0x2871b)
 #7 0x00007f3f53302e96 (/lib/x86_64-linux-gnu/libc.so.6+0x39e96)
 #8 0x000055e13c4dda3a MaxPool2dOpConversionPattern::matchAndRewrite(mlir::tt::ttir::MaxPool2dOp, mlir::tt::ttir::MaxPool2dOpAdaptor, mlir::ConversionPatternRewriter&) const (/__w/tt-mlir/tt-mlir/build/bin/ttmlir-opt+0x14a6a3a)
 #9 0x000055e13c4dd22c mlir::OpConversionPattern<mlir::tt::ttir::MaxPool2dOp>::matchAndRewrite(mlir::Operation*, llvm::ArrayRef<mlir::Value>, mlir::ConversionPatternRewriter&) const (/__w/tt-mlir/tt-mlir/build/bin/ttmlir-opt+0x14a622c)
#10 0x000055e13cc1d6c5 mlir::ConversionPattern::matchAndRewrite(mlir::Operation*, mlir::PatternRewriter&) const (/__w/tt-mlir/tt-mlir/build/bin/ttmlir-opt+0x1be66c5)
#11 0x000055e13cc48822 void llvm::function_ref<void ()>::callback_fn<mlir::PatternApplicator::matchAndRewrite(mlir::Operation*, mlir::PatternRewriter&, llvm::function_ref<bool (mlir::Pattern const&)>, llvm::function_ref<void (mlir::Pattern const&)>, llvm::function_ref<llvm::LogicalResult (mlir::Pattern const&)>)::$_0>(long) PatternApplicator.cpp:0:0
#12 0x000055e13cc46324 mlir::PatternApplicator::matchAndRewrite(mlir::Operation*, mlir::PatternRewriter&, llvm::function_ref<bool (mlir::Pattern const&)>, llvm::function_ref<void (mlir::Pattern const&)>, llvm::function_ref<llvm::LogicalResult (mlir::Pattern const&)>) (/__w/tt-mlir/tt-mlir/build/bin/ttmlir-opt+0x1c0f324)
#13 0x000055e13cc1df94 (anonymous namespace)::OperationLegalizer::legalize(mlir::Operation*, mlir::ConversionPatternRewriter&) DialectConversion.cpp:0:0
#14 0x000055e13cc1d74a mlir::OperationConverter::convert(mlir::ConversionPatternRewriter&, mlir::Operation*) (/__w/tt-mlir/tt-mlir/build/bin/ttmlir-opt+0x1be674a)
#15 0x000055e13cc1e3de mlir::OperationConverter::convertOperations(llvm::ArrayRef<mlir::Operation*>) (/__w/tt-mlir/tt-mlir/build/bin/ttmlir-opt+0x1be73de)
#16 0x000055e13cc21a53 mlir::applyFullConversion(llvm::ArrayRef<mlir::Operation*>, mlir::ConversionTarget const&, mlir::FrozenRewritePatternSet const&, mlir::ConversionConfig) (/__w/tt-mlir/tt-mlir/build/bin/ttmlir-opt+0x1beaa53)
#17 0x000055e13cc21abf mlir::applyFullConversion(mlir::Operation*, mlir::ConversionTarget const&, mlir::FrozenRewritePatternSet const&, mlir::ConversionConfig) (/__w/tt-mlir/tt-mlir/build/bin/ttmlir-opt+0x1beaabf)
#18 0x000055e13c4b50f5 (anonymous namespace)::ConvertTTIRToTTNNPass::runOnOperation() TTIRToTTNNPass.cpp:0:0
#19 0x000055e13cd0d2ce void llvm::function_ref<void ()>::callback_fn<mlir::detail::OpToOpPassAdaptor::run(mlir::Pass*, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int)::$_1>(long) Pass.cpp:0:0
#20 0x000055e13cd098e6 mlir::detail::OpToOpPassAdaptor::run(mlir::Pass*, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int) (/__w/tt-mlir/tt-mlir/build/bin/ttmlir-opt+0x1cd28e6)
#21 0x000055e13cd09ceb mlir::detail::OpToOpPassAdaptor::runPipeline(mlir::OpPassManager&, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int, mlir::PassInstrumentor*, mlir::PassInstrumentation::PipelineParentInfo const*) (/__w/tt-mlir/tt-mlir/build/bin/ttmlir-opt+0x1cd2ceb)
#22 0x000055e13cd0b5fc mlir::PassManager::run(mlir::Operation*) (/__w/tt-mlir/tt-mlir/build/bin/ttmlir-opt+0x1cd45fc)
#23 0x000055e13bf600b8 performActions(llvm::raw_ostream&, std::shared_ptr<llvm::SourceMgr> const&, mlir::MLIRContext*, mlir::MlirOptMainConfig const&) MlirOptMain.cpp:0:0
#24 0x000055e13bf5fd86 llvm::LogicalResult llvm::function_ref<llvm::LogicalResult (std::unique_ptr<llvm::MemoryBuffer, std::default_delete<llvm::MemoryBuffer>>, llvm::raw_ostream&)>::callback_fn<mlir::MlirOptMain(llvm::raw_ostream&, std::unique_ptr<llvm::MemoryBuffer, std::default_delete<llvm::MemoryBuffer>>, mlir::DialectRegistry&, mlir::MlirOptMainConfig const&)::$_0>(long, std::unique_ptr<llvm::MemoryBuffer, std::default_delete<llvm::MemoryBuffer>>, llvm::raw_ostream&) MlirOptMain.cpp:0:0
#25 0x000055e13ce1ba39 mlir::splitAndProcessBuffer(std::unique_ptr<llvm::MemoryBuffer, std::default_delete<llvm::MemoryBuffer>>, llvm::function_ref<llvm::LogicalResult (std::unique_ptr<llvm::MemoryBuffer, std::default_delete<llvm::MemoryBuffer>>, llvm::raw_ostream&)>, llvm::raw_ostream&, llvm::StringRef, llvm::StringRef) (/__w/tt-mlir/tt-mlir/build/bin/ttmlir-opt+0x1de4a39)
#26 0x000055e13bf5c491 mlir::MlirOptMain(llvm::raw_ostream&, std::unique_ptr<llvm::MemoryBuffer, std::default_delete<llvm::MemoryBuffer>>, mlir::DialectRegistry&, mlir::MlirOptMainConfig const&) (/__w/tt-mlir/tt-mlir/build/bin/ttmlir-opt+0xf25491)
#27 0x000055e13bf5c6c6 mlir::MlirOptMain(int, char**, llvm::StringRef, llvm::StringRef, mlir::DialectRegistry&) (/__w/tt-mlir/tt-mlir/build/bin/ttmlir-opt+0xf256c6)
#28 0x000055e13bf5c86c mlir::MlirOptMain(int, char**, llvm::StringRef, mlir::DialectRegistry&) (/__w/tt-mlir/tt-mlir/build/bin/ttmlir-opt+0xf2586c)
#29 0x000055e13b2921ef main (/__w/tt-mlir/tt-mlir/build/bin/ttmlir-opt+0x25b1ef)
#30 0x00007f3f532f2d90 (/lib/x86_64-linux-gnu/libc.so.6+0x29d90)
#31 0x00007f3f532f2e40 __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x29e40)
#32 0x000055e13b2920d5 _start (/__w/tt-mlir/tt-mlir/build/bin/ttmlir-opt+0x25b0d5)
/__w/tt-mlir/tt-mlir/build/test/ttmlir/Silicon/TTNN/perf_unit/Output/test_perf_maxpool2d.mlir.script: line 3:  8835 Aborted                 (core dumped) /__w/tt-mlir/tt-mlir/build/bin/ttmlir-opt --ttir-to-ttnn-backend-pipeline="system-desc-path=" /__w/tt-mlir/tt-mlir/test/ttmlir/Silicon/TTNN/perf_unit/test_perf_maxpool2d.mlir > /__w/tt-mlir/tt-mlir/build/test/ttmlir/Silicon/TTNN/perf_unit/Output/test_perf_maxpool2d.mlir.tmp.mlir

--

Check failure on line 1 in ttmlir/Silicon/TTNN/pooling

See this annotation in the file changed.

@github-actions github-actions / MLIR Tests

ttmlir/Silicon/TTNN/pooling.simple_pooling.mlir

Exit Code: 2
Raw output
Exit Code: 2

Command Output (stderr):
--
RUN: at line 1: /__w/tt-mlir/tt-mlir/build/bin/ttmlir-opt --ttir-to-ttnn-backend-pipeline="system-desc-path=" /__w/tt-mlir/tt-mlir/test/ttmlir/Silicon/TTNN/pooling/simple_pooling.mlir > /__w/tt-mlir/tt-mlir/build/test/ttmlir/Silicon/TTNN/pooling/Output/simple_pooling.mlir.tmp.mlir
+ /__w/tt-mlir/tt-mlir/build/bin/ttmlir-opt --ttir-to-ttnn-backend-pipeline=system-desc-path= /__w/tt-mlir/tt-mlir/test/ttmlir/Silicon/TTNN/pooling/simple_pooling.mlir
RUN: at line 2: /opt/ttmlir-toolchain/bin/FileCheck /__w/tt-mlir/tt-mlir/test/ttmlir/Silicon/TTNN/pooling/simple_pooling.mlir --input-file=/__w/tt-mlir/tt-mlir/build/test/ttmlir/Silicon/TTNN/pooling/Output/simple_pooling.mlir.tmp.mlir
+ /opt/ttmlir-toolchain/bin/FileCheck /__w/tt-mlir/tt-mlir/test/ttmlir/Silicon/TTNN/pooling/simple_pooling.mlir --input-file=/__w/tt-mlir/tt-mlir/build/test/ttmlir/Silicon/TTNN/pooling/Output/simple_pooling.mlir.tmp.mlir
error: no check strings found with prefix 'CHECK:'

--

Check failure on line 30 in ttmlir/Silicon/TTNN

See this annotation in the file changed.

@github-actions github-actions / MLIR Tests

ttmlir/Silicon/TTNN.simple_constant.mlir

Exit Code: 1
Raw output
Exit Code: 1

Command Output (stderr):
--
RUN: at line 1: /__w/tt-mlir/tt-mlir/build/bin/ttmlir-opt --ttir-to-ttnn-backend-pipeline="system-desc-path=" /__w/tt-mlir/tt-mlir/test/ttmlir/Silicon/TTNN/simple_constant.mlir > /__w/tt-mlir/tt-mlir/build/test/ttmlir/Silicon/TTNN/Output/simple_constant.mlir.tmp.mlir
+ /__w/tt-mlir/tt-mlir/build/bin/ttmlir-opt --ttir-to-ttnn-backend-pipeline=system-desc-path= /__w/tt-mlir/tt-mlir/test/ttmlir/Silicon/TTNN/simple_constant.mlir
RUN: at line 2: /opt/ttmlir-toolchain/bin/FileCheck /__w/tt-mlir/tt-mlir/test/ttmlir/Silicon/TTNN/simple_constant.mlir --input-file=/__w/tt-mlir/tt-mlir/build/test/ttmlir/Silicon/TTNN/Output/simple_constant.mlir.tmp.mlir
+ /opt/ttmlir-toolchain/bin/FileCheck /__w/tt-mlir/tt-mlir/test/ttmlir/Silicon/TTNN/simple_constant.mlir --input-file=/__w/tt-mlir/tt-mlir/build/test/ttmlir/Silicon/TTNN/Output/simple_constant.mlir.tmp.mlir
/__w/tt-mlir/tt-mlir/test/ttmlir/Silicon/TTNN/simple_constant.mlir:32:12: error: CHECK: expected string not found in input
 // CHECK: %[[C:.*]] = "ttnn.full"[[C:.*]]
           ^
/__w/tt-mlir/tt-mlir/build/test/ttmlir/Silicon/TTNN/Output/simple_constant.mlir.tmp.mlir:25:112: note: scanning from here
 %1 = "ttnn.full"(%0) <{fillValue = 1.000000e+00 : f32}> : (!tt.device<#device>) -> tensor<64x128xi32, #layout>
                                                                                                               ^
/__w/tt-mlir/tt-mlir/build/test/ttmlir/Silicon/TTNN/Output/simple_constant.mlir.tmp.mlir:30:2: note: possible intended match here
 %1 = "ttnn.empty"() <{dtype = #tt.supportedDataTypes<f32>, layout = #ttnn.layout<row_major>, shape = #ttnn.shape<64x128>}> : () -> tensor<64x128xf32, #layout1>
 ^

Input file: /__w/tt-mlir/tt-mlir/build/test/ttmlir/Silicon/TTNN/Output/simple_constant.mlir.tmp.mlir
Check file: /__w/tt-mlir/tt-mlir/test/ttmlir/Silicon/TTNN/simple_constant.mlir

-dump-input=help explains the following input dump.

Input was:
<<<<<<
            .
            .
            .
           20:  %1 = "ttnn.empty"() <{dtype = #tt.supportedDataTypes<f32>, layout = #ttnn.layout<row_major>, shape = #ttnn.shape<1x1>}> : () -> tensor<1x1xf32, #layout2> 
           21:  return %1 : tensor<1x1xf32, #layout2> 
           22:  } 
           23:  func.func @test_full_int() -> tensor<64x128xi32, #layout> { 
           24:  %0 = "ttnn.get_device"() <{mesh_shape = #ttnn<mesh_shape 1x1>}> : () -> !tt.device<#device> 
           25:  %1 = "ttnn.full"(%0) <{fillValue = 1.000000e+00 : f32}> : (!tt.device<#device>) -> tensor<64x128xi32, #layout> 
check:32'0                                                                                                                    X error: no match found
           26:  return %1 : tensor<64x128xi32, #layout> 
check:32'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
           27:  } 
check:32'0     ~~~
           28:  func.func @test_full_float() -> tensor<64x128xf32, #layout1> { 
check:32'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
           29:  %0 = "ttnn.get_device"() <{mesh_shape = #ttnn<mesh_shape 1x1>}> : () -> !tt.device<#device> 
check:32'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
           30:  %1 = "ttnn.empty"() <{dtype = #tt.supportedDataTypes<f32>, layout = #ttnn.layout<row_major>, shape = #ttnn.shape<64x128>}> : () -> tensor<64x128xf32, #layout1> 
check:32'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
check:32'1      ?                                                                                                                                                                possible intended match
           31:  return %1 : tensor<64x128xf32, #layout1> 
check:32'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
           32:  } 
check:32'0     ~~~
           33:  func.func @test_full_scalar() -> tensor<1x1xf32, #layout2> { 
check:32'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
           34:  %0 = "ttnn.get_device"() <{mesh_shape = #ttnn<mesh_shape 1x1>}> : () -> !tt.device<#device> 
check:32'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
           35:  %1 = "ttnn.empty"() <{dtype = #tt.supportedDataTypes<f32>, layout = #ttnn.layout<row_major>, shape = #ttnn.shape<1x1>}> : () -> tensor<1x1xf32, #layout2> 
check:32'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
            .
            .
            .
>>>>>>

--

Check failure on line 1 in ttmlir/Silicon/TTNN

See this annotation in the file changed.

@github-actions github-actions / MLIR Tests

ttmlir/Silicon/TTNN.simple_maxpool2d.mlir

Exit Code: 134
Raw output
Exit Code: 134

Command Output (stderr):
--
RUN: at line 1: /__w/tt-mlir/tt-mlir/build/bin/ttmlir-opt --ttir-to-ttnn-backend-pipeline="system-desc-path=" /__w/tt-mlir/tt-mlir/test/ttmlir/Silicon/TTNN/simple_maxpool2d.mlir > /__w/tt-mlir/tt-mlir/build/test/ttmlir/Silicon/TTNN/Output/simple_maxpool2d.mlir.tmp.mlir
+ /__w/tt-mlir/tt-mlir/build/bin/ttmlir-opt --ttir-to-ttnn-backend-pipeline=system-desc-path= /__w/tt-mlir/tt-mlir/test/ttmlir/Silicon/TTNN/simple_maxpool2d.mlir
ttmlir-opt: /__w/tt-mlir/tt-mlir/lib/Conversion/TTIRToTTNN/TTIRToTTNN.cpp:725: virtual LogicalResult MaxPool2dOpConversionPattern::matchAndRewrite(ttir::MaxPool2dOp, OpAdaptor, ConversionPatternRewriter &) const: Assertion `adaptor.getOriginalHeight().has_value() && "ttir::MaxPool2dOp must have original_height set before translating " "to TTNN dialect."' failed.
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
Stack dump:
0.	Program arguments: /__w/tt-mlir/tt-mlir/build/bin/ttmlir-opt --ttir-to-ttnn-backend-pipeline=system-desc-path= /__w/tt-mlir/tt-mlir/test/ttmlir/Silicon/TTNN/simple_maxpool2d.mlir
 #0 0x00007f738ceb595c llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/opt/ttmlir-toolchain/lib/libLLVM.so.20.0git+0xe5495c)
 #1 0x00007f738ceb5d86 SignalHandler(int) Signals.cpp:0:0
 #2 0x00007f738bb3e520 (/lib/x86_64-linux-gnu/libc.so.6+0x42520)
 #3 0x00007f738bb929fc pthread_kill (/lib/x86_64-linux-gnu/libc.so.6+0x969fc)
 #4 0x00007f738bb3e476 gsignal (/lib/x86_64-linux-gnu/libc.so.6+0x42476)
 #5 0x00007f738bb247f3 abort (/lib/x86_64-linux-gnu/libc.so.6+0x287f3)
 #6 0x00007f738bb2471b (/lib/x86_64-linux-gnu/libc.so.6+0x2871b)
 #7 0x00007f738bb35e96 (/lib/x86_64-linux-gnu/libc.so.6+0x39e96)
 #8 0x0000557793610a3a MaxPool2dOpConversionPattern::matchAndRewrite(mlir::tt::ttir::MaxPool2dOp, mlir::tt::ttir::MaxPool2dOpAdaptor, mlir::ConversionPatternRewriter&) const (/__w/tt-mlir/tt-mlir/build/bin/ttmlir-opt+0x14a6a3a)
 #9 0x000055779361022c mlir::OpConversionPattern<mlir::tt::ttir::MaxPool2dOp>::matchAndRewrite(mlir::Operation*, llvm::ArrayRef<mlir::Value>, mlir::ConversionPatternRewriter&) const (/__w/tt-mlir/tt-mlir/build/bin/ttmlir-opt+0x14a622c)
#10 0x0000557793d506c5 mlir::ConversionPattern::matchAndRewrite(mlir::Operation*, mlir::PatternRewriter&) const (/__w/tt-mlir/tt-mlir/build/bin/ttmlir-opt+0x1be66c5)
#11 0x0000557793d7b822 void llvm::function_ref<void ()>::callback_fn<mlir::PatternApplicator::matchAndRewrite(mlir::Operation*, mlir::PatternRewriter&, llvm::function_ref<bool (mlir::Pattern const&)>, llvm::function_ref<void (mlir::Pattern const&)>, llvm::function_ref<llvm::LogicalResult (mlir::Pattern const&)>)::$_0>(long) PatternApplicator.cpp:0:0
#12 0x0000557793d79324 mlir::PatternApplicator::matchAndRewrite(mlir::Operation*, mlir::PatternRewriter&, llvm::function_ref<bool (mlir::Pattern const&)>, llvm::function_ref<void (mlir::Pattern const&)>, llvm::function_ref<llvm::LogicalResult (mlir::Pattern const&)>) (/__w/tt-mlir/tt-mlir/build/bin/ttmlir-opt+0x1c0f324)
#13 0x0000557793d50f94 (anonymous namespace)::OperationLegalizer::legalize(mlir::Operation*, mlir::ConversionPatternRewriter&) DialectConversion.cpp:0:0
#14 0x0000557793d5074a mlir::OperationConverter::convert(mlir::ConversionPatternRewriter&, mlir::Operation*) (/__w/tt-mlir/tt-mlir/build/bin/ttmlir-opt+0x1be674a)
#15 0x0000557793d513de mlir::OperationConverter::convertOperations(llvm::ArrayRef<mlir::Operation*>) (/__w/tt-mlir/tt-mlir/build/bin/ttmlir-opt+0x1be73de)
#16 0x0000557793d54a53 mlir::applyFullConversion(llvm::ArrayRef<mlir::Operation*>, mlir::ConversionTarget const&, mlir::FrozenRewritePatternSet const&, mlir::ConversionConfig) (/__w/tt-mlir/tt-mlir/build/bin/ttmlir-opt+0x1beaa53)
#17 0x0000557793d54abf mlir::applyFullConversion(mlir::Operation*, mlir::ConversionTarget const&, mlir::FrozenRewritePatternSet const&, mlir::ConversionConfig) (/__w/tt-mlir/tt-mlir/build/bin/ttmlir-opt+0x1beaabf)
#18 0x00005577935e80f5 (anonymous namespace)::ConvertTTIRToTTNNPass::runOnOperation() TTIRToTTNNPass.cpp:0:0
#19 0x0000557793e402ce void llvm::function_ref<void ()>::callback_fn<mlir::detail::OpToOpPassAdaptor::run(mlir::Pass*, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int)::$_1>(long) Pass.cpp:0:0
#20 0x0000557793e3c8e6 mlir::detail::OpToOpPassAdaptor::run(mlir::Pass*, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int) (/__w/tt-mlir/tt-mlir/build/bin/ttmlir-opt+0x1cd28e6)
#21 0x0000557793e3cceb mlir::detail::OpToOpPassAdaptor::runPipeline(mlir::OpPassManager&, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int, mlir::PassInstrumentor*, mlir::PassInstrumentation::PipelineParentInfo const*) (/__w/tt-mlir/tt-mlir/build/bin/ttmlir-opt+0x1cd2ceb)
#22 0x0000557793e3e5fc mlir::PassManager::run(mlir::Operation*) (/__w/tt-mlir/tt-mlir/build/bin/ttmlir-opt+0x1cd45fc)
#23 0x00005577930930b8 performActions(llvm::raw_ostream&, std::shared_ptr<llvm::SourceMgr> const&, mlir::MLIRContext*, mlir::MlirOptMainConfig const&) MlirOptMain.cpp:0:0
#24 0x0000557793092d86 llvm::LogicalResult llvm::function_ref<llvm::LogicalResult (std::unique_ptr<llvm::MemoryBuffer, std::default_delete<llvm::MemoryBuffer>>, llvm::raw_ostream&)>::callback_fn<mlir::MlirOptMain(llvm::raw_ostream&, std::unique_ptr<llvm::MemoryBuffer, std::default_delete<llvm::MemoryBuffer>>, mlir::DialectRegistry&, mlir::MlirOptMainConfig const&)::$_0>(long, std::unique_ptr<llvm::MemoryBuffer, std::default_delete<llvm::MemoryBuffer>>, llvm::raw_ostream&) MlirOptMain.cpp:0:0
#25 0x0000557793f4ea39 mlir::splitAndProcessBuffer(std::unique_ptr<llvm::MemoryBuffer, std::default_delete<llvm::MemoryBuffer>>, llvm::function_ref<llvm::LogicalResult (std::unique_ptr<llvm::MemoryBuffer, std::default_delete<llvm::MemoryBuffer>>, llvm::raw_ostream&)>, llvm::raw_ostream&, llvm::StringRef, llvm::StringRef) (/__w/tt-mlir/tt-mlir/build/bin/ttmlir-opt+0x1de4a39)
#26 0x000055779308f491 mlir::MlirOptMain(llvm::raw_ostream&, std::unique_ptr<llvm::MemoryBuffer, std::default_delete<llvm::MemoryBuffer>>, mlir::DialectRegistry&, mlir::MlirOptMainConfig const&) (/__w/tt-mlir/tt-mlir/build/bin/ttmlir-opt+0xf25491)
#27 0x000055779308f6c6 mlir::MlirOptMain(int, char**, llvm::StringRef, llvm::StringRef, mlir::DialectRegistry&) (/__w/tt-mlir/tt-mlir/build/bin/ttmlir-opt+0xf256c6)
#28 0x000055779308f86c mlir::MlirOptMain(int, char**, llvm::StringRef, mlir::DialectRegistry&) (/__w/tt-mlir/tt-mlir/build/bin/ttmlir-opt+0xf2586c)
#29 0x00005577923c51ef main (/__w/tt-mlir/tt-mlir/build/bin/ttmlir-opt+0x25b1ef)
#30 0x00007f738bb25d90 (/lib/x86_64-linux-gnu/libc.so.6+0x29d90)
#31 0x00007f738bb25e40 __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x29e40)
#32 0x00005577923c50d5 _start (/__w/tt-mlir/tt-mlir/build/bin/ttmlir-opt+0x25b0d5)
/__w/tt-mlir/tt-mlir/build/test/ttmlir/Silicon/TTNN/Output/simple_maxpool2d.mlir.script: line 3:  8983 Aborted                 (core dumped) /__w/tt-mlir/tt-mlir/build/bin/ttmlir-opt --ttir-to-ttnn-backend-pipeline="system-desc-path=" /__w/tt-mlir/tt-mlir/test/ttmlir/Silicon/TTNN/simple_maxpool2d.mlir > /__w/tt-mlir/tt-mlir/build/test/ttmlir/Silicon/TTNN/Output/simple_maxpool2d.mlir.tmp.mlir

--