Skip to content

Commit

Permalink
cv32a65x CI: Enlarge cache to increase bench result and switch from -…
Browse files Browse the repository at this point in the history
…O3 to -Os compiler option (#2541)

* .gitlab-ci.yml: Enlarge cv32a65x cache size

* Dhrystone_smoke.sh: switch from -O3 to -Os option
  • Loading branch information
JeanRochCoulon authored Oct 11, 2024
1 parent 5131fb0 commit 7ae870e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
14 changes: 7 additions & 7 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -184,10 +184,10 @@ smoke-bench:
parallel:
matrix:
- BENCH: "dhrystone"
DV_HWCONFIG_OPTS: ["cv32a65x"]
DV_HWCONFIG_OPTS: ["cv32a65x IcacheByteSize=32768 IcacheSetAssoc=8 DcacheByteSize=32768 DcacheSetAssoc=8"]
script:
- bash verif/regress/"$BENCH".sh --no-print
- python3 .gitlab-ci/scripts/report_benchmark.py --"$BENCH"_"$DV_HWCONFIG_OPTS" verif/sim/out_*/vcs-uvm_sim/"$BENCH"_main.*.log
- bash verif/regress/"$BENCH"_smoke.sh --no-print
- python3 .gitlab-ci/scripts/report_benchmark.py --"$BENCH"_cv32a65x verif/sim/out_*/vcs-uvm_sim/"$BENCH"_main.*.log

hwconfig:
extends:
Expand Down Expand Up @@ -326,16 +326,16 @@ benchmarks:
matrix:
- BENCH: "dhrystone"
ISSUE: "single"
DV_HWCONFIG_OPTS: ["cv32a65x SuperscalarEn=0 IcacheByteSize=16384 IcacheSetAssoc=4 DcacheByteSize=32768 DcacheSetAssoc=8"]
DV_HWCONFIG_OPTS: ["cv32a65x SuperscalarEn=0 IcacheByteSize=32768 IcacheSetAssoc=8 DcacheByteSize=32768 DcacheSetAssoc=8"]
- BENCH: "dhrystone"
ISSUE: "dual"
DV_HWCONFIG_OPTS: ["cv32a65x IcacheByteSize=16384 IcacheSetAssoc=4 DcacheByteSize=32768 DcacheSetAssoc=8"]
DV_HWCONFIG_OPTS: ["cv32a65x IcacheByteSize=32768 IcacheSetAssoc=8 DcacheByteSize=32768 DcacheSetAssoc=8"]
- BENCH: "coremark"
ISSUE: "single"
DV_HWCONFIG_OPTS: ["cv32a65x SuperscalarEn=0 IcacheByteSize=16384 IcacheSetAssoc=4 DcacheByteSize=32768 DcacheSetAssoc=8"]
DV_HWCONFIG_OPTS: ["cv32a65x SuperscalarEn=0 IcacheByteSize=32768 IcacheSetAssoc=8 DcacheByteSize=32768 DcacheSetAssoc=8"]
- BENCH: "coremark"
ISSUE: "dual"
DV_HWCONFIG_OPTS: ["cv32a65x IcacheByteSize=16384 IcacheSetAssoc=4 DcacheByteSize=32768 DcacheSetAssoc=8"]
DV_HWCONFIG_OPTS: ["cv32a65x IcacheByteSize=32768 IcacheSetAssoc=8 DcacheByteSize=32768 DcacheSetAssoc=8"]
script:
- bash verif/regress/"$BENCH".sh
- python3 .gitlab-ci/scripts/report_benchmark.py --"$BENCH"_"$ISSUE" verif/sim/out_*/vcs-uvm_sim/"$BENCH"_main.*.log
Expand Down
6 changes: 3 additions & 3 deletions .gitlab-ci/scripts/report_benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@
valid_cycles = {
"dhrystone_dual": 21530,
"dhrystone_single": 26392,
"coremark_dual": 531457,
"coremark_single": 672500,
"dhrystone_cv32a65x": 24740,
"coremark_dual": 530099,
"coremark_single": 673184,
"dhrystone_cv32a65x": 33736,
}

for arg in sys.argv[1:]:
Expand Down
2 changes: 1 addition & 1 deletion verif/regress/dhrystone_smoke.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ cflags=(
-nostdlib
-nostartfiles
-lgcc
-O3 --no-inline
-Os --no-inline
-Wno-implicit-function-declaration
-Wno-implicit-int
-I../tests/custom/env
Expand Down

0 comments on commit 7ae870e

Please sign in to comment.