llvm / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
http://llvm.org
Other
28.49k stars 11.78k forks source link

[MLIR] sgemm-naive-codegen.mlir test execution crashes on ARM64 #111167

Open sine-zhow opened 1 week ago

sine-zhow commented 1 week ago

The test MLIR :: mlir-cpu-runner/sgemm-naive-codegen.mlir fails with exit code 2. The failure appears during the execution of the mlir-cpu-runner tool, and the FileCheck command reports an error due to an empty stdin. The full stack trace and output are provided below.

Steps to Reproduce:

  1. Build the project with MLIR enabled.
  2. Run the mlir-cpu-runner test suite, specifically targeting sgemm-naive-codegen.mlir.
  3. Observe the failure.

Error Output:

| PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.

| Stack dump:

| 0. Program arguments: /root/work/circt/llvm/build/bin/mlir-cpu-runner -O3 -e main -entry-point-result=void -shared-libs=/root/work/circt/llvm/build/lib/libmlir_c_runner_utils.so

| #0 0x0000003001876230 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/root/work/circt/llvm/build/bin/mlir-cpu-runner+0x1876230)

| #1 0x0000003001874220 llvm::sys::RunSignalHandlers() (/root/work/circt/llvm/build/bin/mlir-cpu-runner+0x1874220)

| #2 0x0000003001876ce0 SignalHandler(int) Signals.cpp:0:0

| #3 0x0000007885ba6860

| #4 0x0000007885ba3254

`-----------------------------

error: command failed with exit status: -4

System Information:

Architecture: AArch64 OS: Linux LLVM Version: 19

joker-eph commented 1 week ago

This may be an ARM64 specific issue, the test runs in CI on X86 I believe.