Open kurapov-peter opened 1 month ago
Complete stack trace:
#0 __pthread_kill_implementation (no_tid=0, signo=6, threadid=140737175215296) at ./nptl/pthread_kill.c:44
#1 __pthread_kill_internal (signo=6, threadid=140737175215296) at ./nptl/pthread_kill.c:78
#2 __GI___pthread_kill (threadid=140737175215296, signo=signo@entry=6) at ./nptl/pthread_kill.c:89
#3 0x00007ffff768f476 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
#4 0x00007ffff76757f3 in __GI_abort () at ./stdlib/abort.c:79
#5 0x00007ffff767571b in __assert_fail_base (fmt=0x7ffff782a130 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=0x7ffff100db48 "&S == &APFloat::PPCDoubleDouble() && \"Unknown FP format\"", file=0x7ffff100d9e8 "/home/jovyan/graph-compiler/externals/llvm-project/llvm/lib/IR/Type.cpp",
line=108, function=<optimized out>) at ./assert/assert.c:92
#6 0x00007ffff7686e96 in __GI___assert_fail (assertion=0x7ffff100db48 "&S == &APFloat::PPCDoubleDouble() && \"Unknown FP format\"", file=0x7ffff100d9e8 "/home/jovyan/graph-compiler/externals/llvm-project/llvm/lib/IR/Type.cpp", line=108,
function=0x7ffff100dae0 "static llvm::Type* llvm::Type::getFloatingPointTy(llvm::LLVMContext&, const llvm::fltSemantics&)") at ./assert/assert.c:101
#7 0x00007fffee0ac0db in llvm::Type::getFloatingPointTy (C=..., S=...) at /home/jovyan/graph-compiler/externals/llvm-project/llvm/lib/IR/Type.cpp:108
#8 0x00007ffff63acb85 in mlir::LLVM::detail::getLLVMConstant (llvmType=0x555555a95580, attr=attr@entry=..., loc=loc@entry=..., moduleTranslation=...) at /home/jovyan/graph-compiler/externals/llvm-project/llvm/include/llvm/IR/Type.h:129
#9 0x00007ffff633b425 in convertOperationImpl (opInst=..., builder=..., moduleTranslation=...) at /home/jovyan/graph-compiler/externals/llvm-project/build/tools/mlir/include/mlir/Dialect/LLVMIR/LLVMConversions.inc:100
#10 0x00007ffff63aaf46 in mlir::LLVM::ModuleTranslation::convertOperation (this=0x7ffffff748a0, op=..., builder=..., recordInsertions=<optimized out>) at /home/jovyan/graph-compiler/externals/llvm-project/mlir/lib/Target/LLVMIR/ModuleTranslation.cpp:916
#11 0x00007ffff63b3d15 in mlir::LLVM::ModuleTranslation::convertBlockImpl (this=0x7ffffff748a0, bb=..., ignoreArguments=<optimized out>, builder=..., recordInsertions=true) at /home/jovyan/graph-compiler/externals/llvm-project/mlir/lib/Target/LLVMIR/ModuleTranslation.cpp:964
#12 0x00007ffff63b528e in mlir::LLVM::ModuleTranslation::convertOneFunction (this=0x7ffffff748a0, func=...) at /home/jovyan/graph-compiler/externals/llvm-project/mlir/lib/Target/LLVMIR/ModuleTranslation.cpp:1374
#13 0x00007ffff63b5ea8 in mlir::LLVM::ModuleTranslation::convertFunctions (this=0x7ffffff748a0) at /home/jovyan/graph-compiler/externals/llvm-project/mlir/lib/Target/LLVMIR/ModuleTranslation.cpp:1540
#14 0x00007ffff63bbc4c in mlir::translateModuleToLLVMIR (module=module@entry=0x555555945090, llvmContext=..., name=..., disableVerification=disableVerification@entry=false) at /home/jovyan/graph-compiler/externals/llvm-project/mlir/lib/Target/LLVMIR/ModuleTranslation.cpp:1884
#15 0x00007ffff763d3ba in mlir::ExecutionEngine::create (m=0x555555945090, options=..., tm=std::unique_ptr<llvm::TargetMachine> = {...}) at /usr/include/c++/11/bits/char_traits.h:399
#16 0x00007ffff7c58c3e in mlir::gc::JitModule::create (op=0x555555945090, options=...) at /home/jovyan/graph-compiler/lib/gc/ExecutionEngine/Driver/Driver.cpp:60
#17 0x00007ffff7c4a5a1 in dnnl_graph_compiler_executable::dnnl_graph_compiler_executable (this=0x555555941470, context=...,
json="{\n \"version\": \"3.5.0\",\n \"engine_kind\": \"cpu\",\n \"fpmath_mode\": \"any\",\n \"input_ports\": [\n 0,\n 1,\n 2\n ],\n \"output_ports\": [\n 3\n ],\n \"graph\": [\n {\n \"kind\": \"MatMul\",\n \"att"...)
at /home/jovyan/graph-compiler/src/dnnl/dnnl_graph_compiler.cpp:55
#18 0x00007ffff7c44f1d in dnnl_graph_compiler_compile (gc=0x55555576ad60,
graph_json=0x55555576a990 "{\n \"version\": \"3.5.0\",\n \"engine_kind\": \"cpu\",\n \"fpmath_mode\": \"any\",\n \"input_ports\": [\n 0,\n 1,\n 2\n ],\n \"output_ports\": [\n 3\n ],\n \"graph\": [\n {\n \"kind\": \"MatMul\",\n \"att"..., exe=0x7ffffff75cd8)
at /home/jovyan/graph-compiler/src/dnnl/dnnl_graph_compiler.cpp:200
#19 0x0000555555591ae4 in exec (fileName=0x5555556b94e7 "matmul.json", inputs=0x7ffffff75e30, outputs=0x7ffffff75e10) at /home/jovyan/graph-compiler/test/dnnl/TestApiOps.cpp:33
#20 0x0000555555592514 in TestApiOps_matMul_Test::TestBody (this=0x555555769e80) at /home/jovyan/graph-compiler/test/dnnl/TestApiOps.cpp:100
#21 0x000055555568aa5d in testing::internal::HandleSehExceptionsInMethodIfSupported<testing::Test, void> (object=0x555555769e80, method=&virtual testing::Test::TestBody(), location=0x5555556dc6f3 "the test body") at /home/jovyan/graph-compiler/externals/gtest-src/googletest/src/gtest.cc:2612
#22 0x0000555555681acd in testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void> (object=0x555555769e80, method=&virtual testing::Test::TestBody(), location=0x5555556dc6f3 "the test body") at /home/jovyan/graph-compiler/externals/gtest-src/googletest/src/gtest.cc:2648
#23 0x0000555555659750 in testing::Test::Run (this=0x555555769e80) at /home/jovyan/graph-compiler/externals/gtest-src/googletest/src/gtest.cc:2687
#24 0x000055555565a26b in testing::TestInfo::Run (this=0x555555768960) at /home/jovyan/graph-compiler/externals/gtest-src/googletest/src/gtest.cc:2836
#25 0x000055555565ac79 in testing::TestSuite::Run (this=0x555555766e50) at /home/jovyan/graph-compiler/externals/gtest-src/googletest/src/gtest.cc:3015
#26 0x000055555566b24d in testing::internal::UnitTestImpl::RunAllTests (this=0x5555557684b0) at /home/jovyan/graph-compiler/externals/gtest-src/googletest/src/gtest.cc:5920
#27 0x000055555568bbb2 in testing::internal::HandleSehExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> (object=0x5555557684b0,
method=(bool (testing::internal::UnitTestImpl::*)(testing::internal::UnitTestImpl * const)) 0x55555566ae1e <testing::internal::UnitTestImpl::RunAllTests()>, location=0x5555556dd140 "auxiliary test code (environments or event listeners)")
at /home/jovyan/graph-compiler/externals/gtest-src/googletest/src/gtest.cc:2612
#28 0x0000555555683032 in testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> (object=0x5555557684b0,
method=(bool (testing::internal::UnitTestImpl::*)(testing::internal::UnitTestImpl * const)) 0x55555566ae1e <testing::internal::UnitTestImpl::RunAllTests()>, location=0x5555556dd140 "auxiliary test code (environments or event listeners)")
at /home/jovyan/graph-compiler/externals/gtest-src/googletest/src/gtest.cc:2648
#29 0x0000555555669825 in testing::UnitTest::Run (this=0x55555573b7c0 <testing::UnitTest::GetInstance()::instance>) at /home/jovyan/graph-compiler/externals/gtest-src/googletest/src/gtest.cc:5484
#30 0x000055555559526e in RUN_ALL_TESTS () at /home/jovyan/graph-compiler/externals/gtest-src/googletest/include/gtest/gtest.h:2317
#31 0x0000555555594295 in main (argc=1, argv=0x7fffffffe528) at /home/jovyan/graph-compiler/test/dnnl/TestApiOps.cpp:324
The function being processed:
It fails when processing the line:
%1 = llvm.mlir.constant(0.000000e+00 : f32) : f32
Seems to be a LLVM bug, I will discuss this with the local llvm team.
to verify from iteration 6. no update currently 08/27
./TestApiOps --gtest_filter="*.matMul"
Fails with: