Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
Signed-off-by: Hanno Becker <[email protected]>
  • Loading branch information
hanno-becker committed Dec 16, 2024
1 parent 67de1dc commit 4cdc754
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/actions/bench/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ runs:
- $(nix --version)
- $(${{ matrix.target.cross_prefix }}gcc --version | grep -m1 "")
- $(bash --version | grep -m1 "")
- CFLAGS: ${{ inputs.cflags }}
## CPU Info
$(cat /proc/cpuinfo)
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/bench.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
name: Arm Cortex-A55 (Snapdragon 888) benchmarks
bench_pmu: PERF
archflags: "-mcpu=cortex-a55 -march=armv8.2-a"
cflags: "-flto -static -DFORCE_AARCH64 -DMLKEM_NATIVE_FIPS202_BACKEND=\"'aarch64/cortex_a55.h'\""
cflags: "-flto -static -DFORCE_AARCH64 -DMLKEM_NATIVE_FIPS202_BACKEND=\\\\\\\"aarch64/cortex_a55.h\\\\\\\""
bench_extra_args: -w exec-on-a55
- system: bpi
name: Bananapi bpi-f3 benchmarks
Expand Down
3 changes: 2 additions & 1 deletion scripts/lib/mlkem_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ class CompileOptions(object):
def __init__(
self, cross_prefix: str, cflags: str, arch_flags: str, auto: bool, verbose: bool
):
print(f"CFLAGS: <{cflags}>")
self.cross_prefix = cross_prefix
self.cflags = cflags
self.arch_flags = arch_flags
Expand Down Expand Up @@ -99,7 +100,7 @@ def dict2str(dict):
] + extra_make_args

make_envs = (
{"CFLAGS": f"{self.cflags}"} if self.cflags is not None else {}
{"CFLAGS": self.cflags} if self.cflags is not None else {}
) | (
{"ARCH_FLAGS": f"{self.arch_flags}"} if self.arch_flags is not None else {}
)
Expand Down

0 comments on commit 4cdc754

Please sign in to comment.