Skip to content

jit: Fail to run SciMark2 on darwin-arm64 #477

Closed
@jserv

Description

@jserv

The JIT compiler is designed to support GNU/Linux and macOS across x86-64 and Arm64 architectures. However, rv32emu encounters issues running SciMark2 with JIT enabled on darwin-arm64 (macOS for ARM 64-bit).

The way to reproduce:

  • Obtain GNU Toolchain for RISC-V from xPack, extract the tarball, and then set environment variable PATH properly.
  • Rebuild rv32emu with JIT enabled: make ENABLE_JIT=1 clean all
  • Rebuild SciMark2 with latest GNU Toolchain: make -C tests/scimark2 clean all
  • Launch the test on macOS for Arm 64-bit (Apple M1): build/rv32emu tests/scimark2/scimark2.elf

Error messages:

**                                                              **
** SciMark2 Numeric Benchmark, see http://math.nist.gov/scimark **
** for details. (Results can be submitted to [email protected])     **
**                                                              **
Using       2.00 seconds min time per kenel.
[3]    2515 segmentation fault  build/rv32emu tests/scimark2

The following environments are known to work with JIT compilation:

  • Ubuntu Linux 22.04 + x86-64
  • Ubuntu Linux 22.04 + Arm64
  • macOS 10.157 + x86-64

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions