[LLVM 21.1.1] Investigate libomp and MLIR test suit failures on P550 #2

Open
opened 2025-12-04 11:33:20 +00:00 by kashyapc · 1 comment
Owner

Description

Compared to LLVM 20.0.0, all the 27 failing 'libarcher' tests pass now on LLVM 21.1.0. However, the 'libomp' and 'MLIR' test suites still have the same failures.

Environment

  • LLVM 21.1.1
  • Fedora 42
  • Hardware: "HiFive Premier P550" by SiFive

libomp test failures:

Based on the build log for llvm-21.1.1-2.0.riscv64.fc43 from here.

Failed Tests (7):

libomp :: ompt/misc/control_tool.c
libomp :: ompt/synchronization/barrier/explicit.c
libomp :: ompt/synchronization/critical.c
libomp :: ompt/synchronization/flush.c
libomp :: ompt/synchronization/ordered.c
libomp :: ompt/synchronization/taskgroup.c
libomp :: ompt/synchronization/taskwait.c

MLIR test failures:

(Here is the upstream issue for MLIR: https://github.com/llvm/llvm-project/issues/162655)

Based on the build log for llvm-21.1.1-2.0.riscv64.fc43 from here.

Failed Tests (27):

MLIR :: CAPI/execution_engine.c
MLIR :: mlir-runner/async-error.mlir
MLIR :: mlir-runner/async-func.mlir
MLIR :: mlir-runner/async-group.mlir
MLIR :: mlir-runner/async-value.mlir
MLIR :: mlir-runner/async.mlir
MLIR :: mlir-runner/bare-ptr-call-conv.mlir
MLIR :: mlir-runner/copy.mlir
MLIR :: mlir-runner/expand-arith-ops.mlir
MLIR :: mlir-runner/global-constructors.mlir
MLIR :: mlir-runner/global-memref.mlir
MLIR :: mlir-runner/math-polynomial-approx.mlir
MLIR :: mlir-runner/memref-reinterpret-cast.mlir
MLIR :: mlir-runner/memref-reshape.mlir
MLIR :: mlir-runner/sgemm-naive-codegen.mlir
MLIR :: mlir-runner/simple.mlir
MLIR :: mlir-runner/test-expand-math-approx.mlir
MLIR :: mlir-runner/unranked-memref.mlir
MLIR :: mlir-runner/utils.mlir
MLIR :: python/execution_engine.py
MLIR :: python/multithreaded_tests.py
MLIR-Unit :: ExecutionEngine/./MLIRExecutionEngineTests/0/6
MLIR-Unit :: ExecutionEngine/./MLIRExecutionEngineTests/1/6
MLIR-Unit :: ExecutionEngine/./MLIRExecutionEngineTests/2/6
MLIR-Unit :: ExecutionEngine/./MLIRExecutionEngineTests/3/6
MLIR-Unit :: ExecutionEngine/./MLIRExecutionEngineTests/4/6
MLIR-Unit :: ExecutionEngine/./MLIRExecutionEngineTests/5/6
## Description Compared to LLVM 20.0.0, all the 27 failing 'libarcher' tests pass now on LLVM 21.1.0. However, the 'libomp' and 'MLIR' test suites still have the same failures. ## Environment - LLVM 21.1.1 - Fedora 42 - Hardware: "HiFive Premier P550" by SiFive ## `libomp` test failures: Based on the build log for llvm-21.1.1-2.0.riscv64.fc43 from [here](https://riscv-koji.fedoraproject.org/koji/packageinfo?packageID=21312). Failed Tests (7): libomp :: ompt/misc/control_tool.c libomp :: ompt/synchronization/barrier/explicit.c libomp :: ompt/synchronization/critical.c libomp :: ompt/synchronization/flush.c libomp :: ompt/synchronization/ordered.c libomp :: ompt/synchronization/taskgroup.c libomp :: ompt/synchronization/taskwait.c ## MLIR test failures: (Here is the upstream issue for MLIR: https://github.com/llvm/llvm-project/issues/162655) Based on the build log for llvm-21.1.1-2.0.riscv64.fc43 from [here](https://riscv-koji.fedoraproject.org/koji/packageinfo?packageID=21312). Failed Tests (27): MLIR :: CAPI/execution_engine.c MLIR :: mlir-runner/async-error.mlir MLIR :: mlir-runner/async-func.mlir MLIR :: mlir-runner/async-group.mlir MLIR :: mlir-runner/async-value.mlir MLIR :: mlir-runner/async.mlir MLIR :: mlir-runner/bare-ptr-call-conv.mlir MLIR :: mlir-runner/copy.mlir MLIR :: mlir-runner/expand-arith-ops.mlir MLIR :: mlir-runner/global-constructors.mlir MLIR :: mlir-runner/global-memref.mlir MLIR :: mlir-runner/math-polynomial-approx.mlir MLIR :: mlir-runner/memref-reinterpret-cast.mlir MLIR :: mlir-runner/memref-reshape.mlir MLIR :: mlir-runner/sgemm-naive-codegen.mlir MLIR :: mlir-runner/simple.mlir MLIR :: mlir-runner/test-expand-math-approx.mlir MLIR :: mlir-runner/unranked-memref.mlir MLIR :: mlir-runner/utils.mlir MLIR :: python/execution_engine.py MLIR :: python/multithreaded_tests.py MLIR-Unit :: ExecutionEngine/./MLIRExecutionEngineTests/0/6 MLIR-Unit :: ExecutionEngine/./MLIRExecutionEngineTests/1/6 MLIR-Unit :: ExecutionEngine/./MLIRExecutionEngineTests/2/6 MLIR-Unit :: ExecutionEngine/./MLIRExecutionEngineTests/3/6 MLIR-Unit :: ExecutionEngine/./MLIRExecutionEngineTests/4/6 MLIR-Unit :: ExecutionEngine/./MLIRExecutionEngineTests/5/6
kashyapc changed title from [LLVM 21.1.1] libomp and MLIR test suits fail on P550 to [LLVM 21.1.1] Investigate libomp and MLIR test suit failures on P550 2025-12-04 13:34:11 +00:00
Author
Owner

Updates for the MLIR test failures:

Updates for the MLIR test failures: - Filed an `mlir-runner` test suite failure bug: https://github.com/llvm/llvm-project/issues/188073 - Wrote a draft patch based on upstream suggestion: https://github.com/kashyapc/llvm-project/commit/86e20a7c0f04 - We will workaround this upstream problem in Fedora with a couple of patches from here (still testing): https://src.fedoraproject.org/fork/kashyapc/rpms/llvm/commits/filter_out_some_mlir_tests
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
riscv/planning#2
No description provided.