Skip to content

[iree-opt][llvm] fails to convet an linalg to llvm using pipeline #20510

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
piyushhingu opened this issue Apr 9, 2025 · 0 comments
Open

[iree-opt][llvm] fails to convet an linalg to llvm using pipeline #20510

piyushhingu opened this issue Apr 9, 2025 · 0 comments
Labels
bug 🐞 Something isn't working

Comments

@piyushhingu
Copy link

piyushhingu commented Apr 9, 2025

What happened?

0.	Program arguments: /workspace/docker/mlir_venv/lib/python3.10/site-packages/iree/compiler/tools/../_mlir_libs/iree-opt -pass-pipeline=builtin.module(func.func(iree-codegen-linalg-to-llvm-pipeline)) mlirs/linalg.mlir
 #0 0x00007e87cd7c2448 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/workspace/docker/mlir_venv/lib/python3.10/site-packages/iree/compiler/_mlir_libs/libIREECompiler.so+0x57c2448)
 #1 0x00007e87cd7c01ee llvm::sys::RunSignalHandlers() (/workspace/docker/mlir_venv/lib/python3.10/site-packages/iree/compiler/_mlir_libs/libIREECompiler.so+0x57c01ee)
 #2 0x00007e87cd7c2af6 SignalHandler(int, siginfo_t*, void*) Signals.cpp:0:0
 #3 0x00007e87c7e19520 (/usr/lib/x86_64-linux-gnu/libc.so.6+0x42520)
 #4 0x00007e87c7e6d9fc __pthread_kill_implementation ./nptl/pthread_kill.c:44:76
 #5 0x00007e87c7e6d9fc __pthread_kill_internal ./nptl/pthread_kill.c:78:10
 #6 0x00007e87c7e6d9fc pthread_kill ./nptl/pthread_kill.c:89:10
 #7 0x00007e87c7e19476 gsignal ./signal/../sysdeps/posix/raise.c:27:6
 #8 0x00007e87c7dff7f3 abort ./stdlib/abort.c:81:7
 #9 0x00007e87cd7417d3 llvm::report_fatal_error(llvm::Twine const&, bool) (/workspace/docker/mlir_venv/lib/python3.10/site-packages/iree/compiler/_mlir_libs/libIREECompiler.so+0x57417d3)
#10 0x00007e87cda0bb25 (/workspace/docker/mlir_venv/lib/python3.10/site-packages/iree/compiler/_mlir_libs/libIREECompiler.so+0x5a0bb25)
#11 0x00007e87cda0bb4a mlir::OpPassManager::addPass(std::unique_ptr<mlir::Pass, std::default_delete<mlir::Pass>>) (/workspace/docker/mlir_venv/lib/python3.10/site-packages/iree/compiler/_mlir_libs/libIREECompiler.so+0x5a0bb4a)
#12 0x00007e87cf372313 mlir::iree_compiler::buildLLVMCPUCodegenPassPipeline(mlir::OpPassManager&, bool) Passes.cpp:0:0
#13 0x00007e87cf373fe3 std::_Function_handler<llvm::LogicalResult (mlir::OpPassManager&, llvm::StringRef, llvm::function_ref<llvm::LogicalResult (llvm::Twine const&)>), mlir::PassPipelineRegistration<mlir::iree_compiler::registerCodegenLLVMCPUPasses()::LinalgToLLVMPipelineOptions>::PassPipelineRegistration(llvm::StringRef, llvm::StringRef, std::function<void (mlir::OpPassManager&, mlir::iree_compiler::registerCodegenLLVMCPUPasses()::LinalgToLLVMPipelineOptions const&)>)::'lambda'(mlir::OpPassManager&, llvm::StringRef, llvm::function_ref<llvm::LogicalResult (llvm::Twine const&)>)>::_M_invoke(std::_Any_data const&, mlir::OpPassManager&, llvm::StringRef&&, llvm::function_ref<llvm::LogicalResult (llvm::Twine const&)>&&) Passes.cpp:0:0
#14 0x00007e87cda219a8 (anonymous namespace)::TextualPipeline::addToPipeline(llvm::ArrayRef<(anonymous namespace)::TextualPipeline::PipelineElement>, mlir::OpPassManager&, llvm::function_ref<llvm::LogicalResult (llvm::Twine const&)>) const PassRegistry.cpp:0:0
#15 0x00007e87cda21953 (anonymous namespace)::TextualPipeline::addToPipeline(llvm::ArrayRef<(anonymous namespace)::TextualPipeline::PipelineElement>, mlir::OpPassManager&, llvm::function_ref<llvm::LogicalResult (llvm::Twine const&)>) const PassRegistry.cpp:0:0
#16 0x00007e87cda207fc mlir::parsePassPipeline(llvm::StringRef, mlir::OpPassManager&, llvm::raw_ostream&) (/workspace/docker/mlir_venv/lib/python3.10/site-packages/iree/compiler/_mlir_libs/libIREECompiler.so+0x5a207fc)
#17 0x00007e87cda1fb28 mlir::parsePassPipeline(llvm::StringRef, llvm::raw_ostream&) (/workspace/docker/mlir_venv/lib/python3.10/site-packages/iree/compiler/_mlir_libs/libIREECompiler.so+0x5a1fb28)
#18 0x00007e87cda20f08 mlir::PassPipelineCLParser::addToPipeline(mlir::OpPassManager&, llvm::function_ref<llvm::LogicalResult (llvm::Twine const&)>) const (/workspace/docker/mlir_venv/lib/python3.10/site-packages/iree/compiler/_mlir_libs/libIREECompiler.so+0x5a20f08)
#19 0x00007e87cda050cc std::_Function_handler<llvm::LogicalResult (mlir::PassManager&), mlir::MlirOptMainConfig::setPassPipelineParser(mlir::PassPipelineCLParser const&)::$_0>::_M_invoke(std::_Any_data const&, mlir::PassManager&) MlirOptMain.cpp:0:0
#20 0x00007e87cda05904 performActions(llvm::raw_ostream&, std::shared_ptr<llvm::SourceMgr> const&, mlir::MLIRContext*, mlir::MlirOptMainConfig const&) MlirOptMain.cpp:0:0
#21 0x00007e87cda0559c 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
#22 0x00007e87cda074f2 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) (/workspace/docker/mlir_venv/lib/python3.10/site-packages/iree/compiler/_mlir_libs/libIREECompiler.so+0x5a074f2)
#23 0x00007e87cda004b2 mlir::MlirOptMain(llvm::raw_ostream&, std::unique_ptr<llvm::MemoryBuffer, std::default_delete<llvm::MemoryBuffer>>, mlir::DialectRegistry&, mlir::MlirOptMainConfig const&) (/workspace/docker/mlir_venv/lib/python3.10/site-packages/iree/compiler/_mlir_libs/libIREECompiler.so+0x5a004b2)
#24 0x00007e87cd72376d ireeOptRunMain (/workspace/docker/mlir_venv/lib/python3.10/site-packages/iree/compiler/_mlir_libs/libIREECompiler.so+0x572376d)
#25 0x00007e87c7e00d90 __libc_start_call_main ./csu/../sysdeps/nptl/libc_start_call_main.h:58:16
#26 0x00007e87c7e00e40 call_init ./csu/../csu/libc-start.c:128:20
#27 0x00007e87c7e00e40 __libc_start_main ./csu/../csu/libc-start.c:379:5
#28 0x000000000020169e _start (/workspace/docker/mlir_venv/lib/python3.10/site-packages/iree/compiler/tools/../_mlir_libs/iree-opt+0x20169e)

Steps to reproduce your issue

  1. convert an inception-v3 into onnx file using torch.onnx.export
  2. convert this onnx into torch and than into linalg mlir

What component(s) does this issue relate to?

No response

Version information

No response

Additional context

No response

@piyushhingu piyushhingu added the bug 🐞 Something isn't working label Apr 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐞 Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant