RISC-V公測平臺發布· CoreMark測試報告
瀏覽:2187
官網地址: https://www.eembc.org
linux版本: 22.10
gcc版本: 10.2.0
鏈接
https://github.com/eembc/coremark
本次采用的編譯器是支持RVV的編譯器,在我們的體驗機器上已經完成了部署,可以通過文章下方的聯系方式進群體驗。
1:首先需要修改core_portme.mak文件,(在LFLAGAS_END變量添加-lpthread)
2:添加編譯參數:-march=rv64gcv0p7_zfh_xtheadc -mabi=lp64d -mtune=c920。
# Flag: CC # Use this flag to define compiler to use CC = gcc # Flag: CFLAGS # Use this flag to define compiler options. Note, you can add compiler options from the command line using XCFLAGS="other flags "PORT_CFLAGS = -O3 #===============================Alter by me=========================== PF_CFLAGS = -march=rv64gcv0p7_zfh_xtheadc -mabi=lp64d -mtune=c920 FLAGS_STR = "$(PORT_CFLAGS) $(XCFLAGS) $(XLFLAGS) $(LFLAGS_END) $(PF_CFLAGS)" CFLAGS = $(PORT_CFLAGS) $(PF_CFLAGS) -I$(PORT_DIR) -Iposix -I. -DFLAGS_STR=\" $(FLAGS_STR)\" #===============================Alter by me=========================== # Flag: NO_LIBRT # Define if the platform does not provide a librt ifndef NO_LIBRT #Flag: LFLAGS_END # Define any libraries needed for linking or other flags that should come at the end of the link line (e.g. linker scripts). # Note: On certain platforms, the default clock_gettime implementation is supported but requires linking of librt. #===============================Alter by me=========================== LFLAGS_END += -lrt -lpthread #===============================Alter by me===========================
ubuntu@perfxlab:/public/benchmark/coremark$ make compile XCFLAGS="-DMULTITHREAD=1 -DUSE_PTHREAD"
多核編譯
ubuntu@perfxlab:/public/benchmark/coremark$ make compile XCFLAGS="-DMULTITHREAD=64 -DUSE_PTHREAD"
五. 在SG2042上執行coremark
2. 64核測試結果如下:
SG2042 的64核跑分結果為:692303.531830 ,cpu主頻是2GHz。
根據公式:
CoreMark / MHz = (CoreMark 分數) / (時鐘頻率,以兆赫茲為單位)
我們可以算出SG2042的 CoreMark / MHz=692303.531830/2000=346.55
官網鏈接
https://www.eembc.org/coremark/scores.php
圖1:Coremark分數從高到低排序
圖2:Coremark/MHz 分數從高到低排序
技術鄰APP
工程師必備
工程師必備
- 項目客服
- 培訓客服
- 平臺客服
TOP




















