Skip to content

Commit 1f0777f

Browse files
mkannwischerhanno-becker
authored andcommitted
CI: Re-enable benchmarking on Mac Mini/RPi4/A55/BPi
Port of pq-code-package/mlkem-native#1641. Signed-off-by: Matthias J. Kannwischer <matthias@zerorisc.com>
1 parent 958f4b0 commit 1f0777f

File tree

1 file changed

+37
-37
lines changed

1 file changed

+37
-37
lines changed

.github/workflows/bench.yml

Lines changed: 37 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,15 @@ jobs:
2929
fail-fast: true
3030
matrix:
3131
target:
32-
# - system: rpi4
33-
# name: Arm Cortex-A72 (Raspberry Pi 4) benchmarks
34-
# bench_pmu: PMU
35-
# archflags: -mcpu=cortex-a72 -DMLD_SYS_AARCH64_SLOW_BARREL_SHIFTER
36-
# cflags: "-flto -DMLD_FORCE_AARCH64"
37-
# ldflags: "-flto"
38-
# bench_extra_args: ""
39-
# nix_shell: bench
40-
# only_no_opt: false
32+
- system: rpi4
33+
name: Arm Cortex-A72 (Raspberry Pi 4) benchmarks
34+
bench_pmu: PMU
35+
archflags: -mcpu=cortex-a72 -DMLD_SYS_AARCH64_SLOW_BARREL_SHIFTER
36+
cflags: "-flto -DMLD_FORCE_AARCH64"
37+
ldflags: "-flto"
38+
bench_extra_args: ""
39+
nix_shell: bench
40+
only_no_opt: false
4141
- system: rpi5
4242
name: Arm Cortex-A76 (Raspberry Pi 5) benchmarks
4343
bench_pmu: PERF
@@ -48,34 +48,34 @@ jobs:
4848
nix_shell: bench
4949
only_no_opt: false
5050
cross_prefix: ""
51-
# - system: a55
52-
# name: Arm Cortex-A55 (Snapdragon 888) benchmarks
53-
# bench_pmu: PERF
54-
# archflags: "-mcpu=cortex-a55 -march=armv8.2-a"
55-
# cflags: "-flto -DMLD_FORCE_AARCH64"
56-
# ldflags: "-flto -static"
57-
# bench_extra_args: -w exec-on-a55
58-
# nix_shell: bench
59-
# only_no_opt: false
60-
# - system: bpi
61-
# name: SpacemiT K1 8 (Banana Pi F3) benchmarks
62-
# bench_pmu: PERF
63-
# archflags: "-march=rv64imafdcv_zicsr_zifencei"
64-
# cflags: ""
65-
# ldflags: "-static"
66-
# bench_extra_args: -w exec-on-bpi
67-
# cross_prefix: riscv64-unknown-linux-gnu-
68-
# nix_shell: cross-riscv64
69-
# only_no_opt: true
70-
# - system: m1-mac-mini
71-
# name: Mac Mini (M1, 2020) benchmarks
72-
# bench_pmu: MAC
73-
# archflags: "-mcpu=apple-m1 -march=armv8.4-a+sha3"
74-
# cflags: "-flto"
75-
# ldflags: "-flto"
76-
# bench_extra_args: "-r"
77-
# nix_shell: bench
78-
# only_no_opt: false
51+
- system: a55
52+
name: Arm Cortex-A55 (Snapdragon 888) benchmarks
53+
bench_pmu: PERF
54+
archflags: "-mcpu=cortex-a55 -march=armv8.2-a"
55+
cflags: "-flto -DMLD_FORCE_AARCH64"
56+
ldflags: "-flto -static"
57+
bench_extra_args: -w exec-on-a55
58+
nix_shell: bench
59+
only_no_opt: false
60+
- system: bpi
61+
name: SpacemiT K1 8 (Banana Pi F3) benchmarks
62+
bench_pmu: PERF
63+
archflags: "-march=rv64imafdcv_zicsr_zifencei"
64+
cflags: ""
65+
ldflags: "-static"
66+
bench_extra_args: -w exec-on-bpi
67+
cross_prefix: riscv64-unknown-linux-gnu-
68+
nix_shell: cross-riscv64
69+
only_no_opt: true
70+
- system: m1-mac-mini
71+
name: Mac Mini (M1, 2020) benchmarks
72+
bench_pmu: MAC
73+
archflags: "-mcpu=apple-m1 -march=armv8.4-a+sha3"
74+
cflags: "-flto"
75+
ldflags: "-flto"
76+
bench_extra_args: "-r"
77+
nix_shell: bench
78+
only_no_opt: false
7979
if: github.repository_owner == 'pq-code-package' && (github.event.label.name == 'benchmark' || github.ref == 'refs/heads/main')
8080
runs-on: self-hosted-${{ matrix.target.system }}
8181
steps:

0 commit comments

Comments
 (0)