Add cpucap.h header and detect AArch64 systems #145
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# SPDX-License-Identifier: Apache-2.0 | |
name: Bench | |
on: | |
push: | |
branches: ["main"] | |
pull_request: | |
branches: ["main"] | |
types: [ "labeled" ] | |
jobs: | |
bench: | |
name: ${{ matrix.target.name }} | |
strategy: | |
fail-fast: true | |
matrix: | |
target: | |
- system: rpi4 | |
name: Arm Cortex-A72 (Raspberry Pi 4) benchmarks | |
bench_pmu: PMU | |
archflags: -mcpu=cortex-a72 | |
cflags: -DFORCE_AARCH64 | |
bench_extra_args: | |
- system: rpi5 | |
name: Arm Cortex-A76 (Raspberry Pi 5) benchmarks | |
bench_pmu: PERF | |
archflags: "-mcpu=cortex-a76 -march=armv8.2-a" | |
cflags: -DFORCE_AARCH64 | |
bench_extra_args: | |
- system: a55 | |
name: Arm Cortex-A55 (Snapdragon 888) benchmarks | |
bench_pmu: PERF | |
archflags: "-mcpu=cortex-a55 -march=armv8.2-a" | |
cflags: "-static -DFORCE_AARCH64" | |
bench_extra_args: -w exec-on-a55 | |
uses: ./.github/workflows/bench_core_reusable.yml | |
with: | |
runner: self-hosted-${{ matrix.target.system }} | |
name: ${{ matrix.target.name }} | |
cflags: ${{ matrix.target.cflags }} | |
archflags: ${{ matrix.target.archflags }} | |
perf: ${{ matrix.target.bench_pmu }} | |
store_results: ${{ github.repository_owner == 'pq-code-package' && github.ref == 'refs/heads/main' }} | |
bench_extra_args: ${{ matrix.target.bench_extra_args }} | |
secrets: | |
inherit |