Skip to content

Commit 56b72b4

Browse files
committed
CI: matrix of runs-on -- graviton + skylake, both via cirun.io
1 parent 01bdde8 commit 56b72b4

2 files changed

Lines changed: 31 additions & 21 deletions

File tree

.cirun.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,16 @@ runners:
1414
# So that this runner is created for running the workflow
1515
labels:
1616
- "cirun-aws-runner-graviton"
17+
- name: "aws-runner-cascade-lake"
18+
# Cloud Provider: AWS
19+
cloud: "aws"
20+
region: "us-east-1"
21+
# Cheapest VM on AWS
22+
instance_type: "m5.large"
23+
# Ubuntu-24.04, ami image
24+
machine_image: "ami-04b70fa74e45c3917"
25+
preemptible: false
26+
# Add this label in the "runs-on" param in .github/workflows/<workflow-name>.yml
27+
# So that this runner is created for running the workflow
28+
labels:
29+
- "cirun-aws-runner-cascade-lake"

.github/workflows/run_cirun_graviton.yml

Lines changed: 18 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: ASV Benchmark on arm64 graviton cirun
1+
name: ASV Benchmarks
22

33
on:
44
push:
@@ -16,18 +16,19 @@ env:
1616
# GITHUB_TOKEN: ${{ secrets.OB_BENCH_TOKEN }}
1717
# BENCHMARKS_REPO: ev-br/ob-bench-asv
1818
ASV_CONFIG: asv.conf.json
19-
MACHINE_NAME: cirun-aws-runner-graviton # to identify github actions machine as hostname changes everytime
2019

2120
jobs:
22-
build:
23-
if: "github.repository == 'OpenMathLib/BLAS-Benchmarks'"
24-
runs-on: "cirun-aws-runner-graviton--${{ github.run_id }}"
25-
21+
bench:
2622
strategy:
2723
fail-fast: false
2824
matrix:
29-
fortran: [gfortran]
30-
build: [make]
25+
include:
26+
# define matrix.name to identify github actions machine as hostname changes everytime
27+
- image: "cirun-aws-runner-graviton--${{ github.run_id }}"
28+
name: "gh-graviton"
29+
- image: "cirun-aws-runner-cascade-lake--${{ github.run_id }}"
30+
name: "gh-skylake"
31+
runs-on: ${{ matrix.image }}
3132

3233
steps:
3334
- uses: actions/checkout@v4
@@ -55,19 +56,17 @@ jobs:
5556
5657
- name: Install python dependencies
5758
run: |
59+
# --break-system-packages is required on ubuntu noble
5860
pip3 install "numpy<2" meson meson-python ninja build asv virtualenv --break-system-packages
59-
# pip3 install scipy_openblas32
6061
# install the nightly OpenBLAS wheel
6162
pip install -i https://pypi.anaconda.org/scientific-python-nightly-wheels/simple scipy-openblas32 --break-system-packages
6263
python3 -c'import scipy_openblas32 as so; print(so.get_pkg_config())' > scipy_openblas.pc
63-
export PKG_CONFIG_PATH=$PWD
64-
echo ">>>> PKG_CONFIG" $PKG_CONFIG_PATH
65-
cat scipy_openblas.pc
64+
# export PKG_CONFIG_PATH=$PWD
6665
67-
echo ">>> mesonpy"
68-
python3 -c'import mesonpy; print(mesonpy.__file__)'
69-
echo $PATH
70-
echo $PYTHONPATH
66+
- name: Print OpenBLAS information
67+
run: |
68+
echo "scipy_openblas.pc contents: "
69+
cat scipy_openblas.pc
7170
7271
- name: Set and log asv machine configuration
7372
run: |
@@ -76,16 +75,14 @@ jobs:
7675
cat ~/.asv-machine.json
7776
rm ~/.asv-machine.json
7877
79-
echo "Setting machine name to $MACHINE_NAME"
80-
python3 -m asv machine --machine $MACHINE_NAME --yes --config $ASV_CONFIG -v
78+
# set the machine name depending on the OS/arch image
79+
echo "Setting machine name to ${{ matrix.name }}"
80+
python3 -m asv machine --machine ${{ matrix.name }} --yes --config $ASV_CONFIG -v
8181
cat ~/.asv-machine.json
8282
8383
- name: Run benchmarks
8484
run: |
85-
echo ${{ github.workspace}}
86-
python3 -c"import mesonpy; print(mesonpy.__file__)"
8785
python3 -m asv run --config $ASV_CONFIG -v
8886
env:
8987
PKG_CONFIG_PATH: ${{ github.workspace }}
90-
PYTHONPATH: ${{ github.workspace }} # FIXME
9188

0 commit comments

Comments
 (0)