riscv-coremark icon indicating copy to clipboard operation
riscv-coremark copied to clipboard

coremark Iterations for 40000 times

Open qqjinger opened this issue 4 years ago • 1 comments

Hi, I'm using this riscv-baremetal and find its default iterations alway equal to 40000. I have tried to change it to num 1 by cmd "./spike ./coremark.bare.riscv 0x0 0x0 0x66 1", but it does work! However, when I use pk, changing iterations by using cmd "./spike ./coremark.riscv 0x0 0x0 0x66 1" works well. Can someone tell me how to change the default iterations in baremetal mode? Thanks.

qqjinger avatar Mar 01 '21 07:03 qqjinger

There is no way to pass cmd line arguments into bare metal binaries. To change number of iterations, you must edit the coremark source code.

jerryz123 avatar Mar 01 '21 07:03 jerryz123