@@ -32,27 +32,31 @@ jobs:
3232 bench_pmu : PMU
3333 archflags : -mcpu=cortex-a72 -DMLK_SYS_AARCH64_SLOW_BARREL_SHIFTER
3434 cflags : " -flto -DMLK_FORCE_AARCH64"
35+ ldflags : " -flto"
3536 bench_extra_args : " "
3637 nix_shell : ci-bench
3738 - system : rpi5
3839 name : Arm Cortex-A76 (Raspberry Pi 5) benchmarks
3940 bench_pmu : PERF
4041 archflags : " -mcpu=cortex-a76 -march=armv8.2-a"
4142 cflags : " -flto -DMLK_FORCE_AARCH64"
43+ ldflags : " -flto"
4244 bench_extra_args : " "
4345 nix_shell : ci-bench
4446 - system : a55
4547 name : Arm Cortex-A55 (Snapdragon 888) benchmarks
4648 bench_pmu : PERF
4749 archflags : " -mcpu=cortex-a55 -march=armv8.2-a"
48- cflags : " -flto -static -DMLK_FORCE_AARCH64 -DMLK_CONFIG_FIPS202_BACKEND_FILE=\\\\\\\" fips202/native/aarch64/x1_scalar.h\\\\\\\" "
50+ cflags : " -flto -DMLK_FORCE_AARCH64 -DMLK_CONFIG_FIPS202_BACKEND_FILE=\\\\\\\" fips202/native/aarch64/x1_scalar.h\\\\\\\" "
51+ ldflags : " -flto -static"
4952 bench_extra_args : -w exec-on-a55
5053 nix_shell : ci-bench
5154 - system : bpi
5255 name : SpacemiT K1 8 (Banana Pi F3) benchmarks
5356 bench_pmu : PERF
5457 archflags : " -march=rv64imafdcv_zicsr_zifencei"
55- cflags : " -static"
58+ cflags : " "
59+ ldflags : " -static"
5660 bench_extra_args : -w exec-on-bpi
5761 cross_prefix : riscv64-unknown-linux-gnu-
5862 nix_shell : ci-cross-riscv64
6165 bench_pmu : MAC
6266 archflags : " -mcpu=apple-m1 -march=armv8.4-a+sha3"
6367 cflags : " -flto"
68+ ldflags : " -flto"
6469 bench_extra_args : " -r"
6570 nix_shell : ci-bench
6671 if : github.repository_owner == 'pq-code-package' && (github.event.label.name == 'benchmark' || github.ref == 'refs/heads/main')
7277 name : ${{ matrix.target.name }}
7378 cflags : ${{ matrix.target.cflags }}
7479 archflags : ${{ matrix.target.archflags }}
80+ ldflags : ${{ matrix.target.ldflags }}
7581 perf : ${{ matrix.target.bench_pmu }}
7682 store_results : ${{ github.repository_owner == 'pq-code-package' && github.ref == 'refs/heads/main' }}
7783 bench_extra_args : ${{ matrix.target.bench_extra_args }}
@@ -94,42 +100,49 @@ jobs:
94100 ec2_ami : ubuntu-latest (aarch64)
95101 archflags : -mcpu=cortex-a76 -march=armv8.2-a
96102 cflags : " -flto -DMLK_FORCE_AARCH64"
103+ ldflags : " -flto"
97104 perf : PERF
98105 - name : Graviton3
99106 ec2_instance_type : c7g.medium
100107 ec2_ami : ubuntu-latest (aarch64)
101108 archflags : -march=armv8.4-a+sha3
102109 cflags : " -flto -DMLK_FORCE_AARCH64"
110+ ldflags : " -flto"
103111 perf : PERF
104112 - name : Graviton4
105113 ec2_instance_type : c8g.medium
106114 ec2_ami : ubuntu-latest (aarch64)
107115 archflags : -march=armv9-a+sha3
108116 cflags : " -flto -DMLK_FORCE_AARCH64"
117+ ldflags : " -flto"
109118 perf : PERF
110119 - name : AMD EPYC 4th gen (c7a)
111120 ec2_instance_type : c7a.medium
112121 ec2_ami : ubuntu-latest (x86_64)
113122 archflags : -mavx2 -mbmi2 -mpopcnt -march=znver4
114123 cflags : " -flto -DMLK_FORCE_X86_64"
124+ ldflags : " -flto"
115125 perf : PMU
116126 - name : Intel Xeon 4th gen (c7i)
117127 ec2_instance_type : c7i.metal-24xl
118128 ec2_ami : ubuntu-latest (x86_64)
119129 archflags : -mavx2 -mbmi2 -mpopcnt -march=sapphirerapids
120130 cflags : " -flto -DMLK_FORCE_X86_64"
131+ ldflags : " -flto"
121132 perf : PMU
122133 - name : AMD EPYC 3rd gen (c6a)
123134 ec2_instance_type : c6a.large
124135 ec2_ami : ubuntu-latest (x86_64)
125136 archflags : -mavx2 -mbmi2 -mpopcnt -march=znver3
126137 cflags : " -flto -DMLK_FORCE_X86_64"
138+ ldflags : " -flto"
127139 perf : PMU
128140 - name : Intel Xeon 3rd gen (c6i)
129141 ec2_instance_type : c6i.large
130142 ec2_ami : ubuntu-latest (x86_64)
131143 archflags : -mavx2 -mbmi2 -mpopcnt -march=icelake-server
132144 cflags : " -flto -DMLK_FORCE_X86_64"
145+ ldflags : " -flto"
133146 perf : PMU
134147 uses : ./.github/workflows/bench_ec2_reusable.yml
135148 if : github.repository_owner == 'pq-code-package' && (github.event.label.name == 'benchmark' || github.ref == 'refs/heads/main')
@@ -138,6 +151,7 @@ jobs:
138151 ec2_ami : ${{ matrix.target.ec2_ami }}
139152 archflags : ${{ matrix.target.archflags }}
140153 cflags : ${{ matrix.target.cflags }}
154+ ldflags : ${{ matrix.target.ldflags }}
141155 opt : " all"
142156 store_results : ${{ github.repository_owner == 'pq-code-package' && github.ref == 'refs/heads/main' }} # Only store optimized results
143157 name : ${{ matrix.target.name }}
0 commit comments