Skip to content

Instantly share code, notes, and snippets.

@fwsGonzo
Last active May 28, 2024 19:41
Show Gist options
  • Save fwsGonzo/7ef100ba4fe7116e97ddb20cf26e6879 to your computer and use it in GitHub Desktop.
Save fwsGonzo/7ef100ba4fe7116e97ddb20cf26e6879 to your computer and use it in GitHub Desktop.
CoreMark: libriscv w/binary translation, Ryzen 7950X
-== 32-bit ==-
$ VERBOSE=1 ./rvlinux ~/github/coremark/coremark.exe
* Loading program of size 78808 from 0x792f37268010 to virtual 0x10000
* Program segment readable: 1 writable: 0 executable: 1
* Loading program of size 1860 from 0x792f3727b3e8 to virtual 0x243d8
* Program segment readable: 1 writable: 1 executable: 0
* Entry is at 0x10a88
2K performance run parameters for coremark.
CoreMark Size : 666
Total ticks : 13742
Total time (secs): 13.742000
Iterations/Sec : 14553.922282
Iterations : 200000
Compiler version : GCC15.0.0 20240429 (experimental)
Compiler flags : -O3 -DPERFORMANCE_RUN=1
Memory location : Please put data memory location here
(e.g. code in flash, data on heap etc)
seedcrc : 0xe9f5
[0]crclist : 0xe714
[0]crcmatrix : 0x1fd7
[0]crcstate : 0x8e3a
[0]crcfinal : 0x4983
Correct operation validated. See README.md for run and reporting rules.
CoreMark 1.0 : 14553.922282 / GCC15.0.0 20240429 (experimental) -O3 -DPERFORMANCE_RUN=1 / Static
>>> Program exited, exit code = 0 (0x0)
Instructions executed: 89753240574 Runtime: 21483.845ms Insn/s: 4178mi/s
Pages in use: 26 (104 kB virtual memory, total 335 kB)
-== 64-bit ==-
$ VERBOSE=1 ./rvlinux ~/github/coremark/coremark-rv64g_b
* Loading program of size 67537 from 0x7a7effd70010 to virtual 0x10000
* Program segment readable: 1 writable: 0 executable: 1
* Loading program of size 3072 from 0x7a7effd81010 to virtual 0x21000
* Program segment readable: 1 writable: 1 executable: 0
* Entry is at 0x10a94
2K performance run parameters for coremark.
CoreMark Size : 666
Total ticks : 14756
Total time (secs): 14.756000
Iterations/Sec : 13553.808620
Iterations : 200000
Compiler version : GCC13.2.0
Compiler flags : -O3 -DPERFORMANCE_RUN=1
Memory location : Please put data memory location here
(e.g. code in flash, data on heap etc)
seedcrc : 0xe9f5
[0]crclist : 0xe714
[0]crcmatrix : 0x1fd7
[0]crcstate : 0x8e3a
[0]crcfinal : 0x4983
Correct operation validated. See README.md for run and reporting rules.
CoreMark 1.0 : 13553.808620 / GCC13.2.0 -O3 -DPERFORMANCE_RUN=1 / Static
>>> Program exited, exit code = 0 (0x0)
Instructions executed: 94401893971 Runtime: 23026.290ms Insn/s: 4100mi/s
Pages in use: 23 (92 kB virtual memory, total 287 kB)
@fwsGonzo
Copy link
Author

fwsGonzo commented Nov 13, 2023

Without binary translation:

$ ./rvlinux ~/github/coremark/coremark-rv32g_b 
2K performance run parameters for coremark.
CoreMark Size    : 666
Total ticks      : 11586
Total time (secs): 11.586000
Iterations/Sec   : 3452.442603
Iterations       : 40000
Compiler version : GCC13.2.0
Compiler flags   : -O3 -DPERFORMANCE_RUN=1  
Memory location  : Please put data memory location here
			(e.g. code in flash, data on heap etc)
seedcrc          : 0xe9f5
[0]crclist       : 0xe714
[0]crcmatrix     : 0x1fd7
[0]crcstate      : 0x8e3a
[0]crcfinal      : 0x25b5
Correct operation validated. See README.md for run and reporting rules.
CoreMark 1.0 : 3452.442603 / GCC13.2.0 -O3 -DPERFORMANCE_RUN=1   / Static
>>> Program exited, exit code = 0 (0x0)
Instructions executed: 14838580227  Runtime: 14949.089ms  Insn/s: 993mi/s
Pages in use: 25 (100 kB virtual memory, total 462 kB)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment