1- name : ASV Benchmark on arm64 graviton cirun
1+ name : ASV Benchmarks
22
33on :
44 push :
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
2120jobs :
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