sysprog21 / rv32emu

Compact and Efficient RISC-V RV32I[MAFC] emulator
MIT License
402 stars 97 forks source link

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

Closed jserv closed 2 weeks ago

jserv commented 3 months ago

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:

Error messages:

**                                                              **
** SciMark2 Numeric Benchmark, see http://math.nist.gov/scimark **
** for details. (Results can be submitted to pozo@nist.gov)     **
**                                                              **
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:

jserv commented 2 weeks ago

The issue was resolved with recent RV32IMF build of SciMark2:

Using       2.00 seconds min time per kenel.
Composite Score:           12.12
FFT             Mflops:     6.01    (N=1024)
SOR             Mflops:    17.82    (100 x 100)
MonteCarlo:     Mflops:     8.51
Sparse matmult  Mflops:    15.16    (N=1000, nz=5000)
LU              Mflops:    13.09    (M=100, N=100)