Skip to content

Commit

Permalink
2
Browse files Browse the repository at this point in the history
  • Loading branch information
ev-br committed May 30, 2024
1 parent 19ffb3d commit c16cca4
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/cirun-bench.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
run: |
if [ "$RUNNER_OS" == "Linux" ]; then
sudo apt update
sudo apt-get install -y gfortran cmake ccache libtinfo5 python3-pip
sudo apt-get install -y gfortran cmake ccache libtinfo5 python3-pip pkg-config
else
echo "::error::$RUNNER_OS not supported"
exit 1
Expand Down Expand Up @@ -115,7 +115,7 @@ jobs:
run: ccache -s

- name: Install benchmarking dependencies
run: pip3 install meson ninja numpy pytest pytest-benchmark --user
run: pip3 install meson ninja numpy pytest pytest-benchmark --user --break-system-packages

- name: Build the wrapper
run: |
Expand All @@ -128,10 +128,13 @@ jobs:
# sanity check
cd build/openblas_wrap
python3 -c'import _flapack; print(dir(_flapack))'
#
# copy the built .so (ubuntu linker!)
cp build/openblas_wrap/_flapack.cpython-*-aarch64-linux-gnu.so build-install/lib/python3/dist-packages/openblas_wrap
- name: Run benchmarks
run: |
cd benchmark/pybench
export PYTHONPATH=$PWD/build-install/lib/python${{matrix.pyver}}/site-packages/
export PYTHONPATH=$PWD/build-install/lib/python${{matrix.pyver}}/dist-packages/
OPENBLAS_NUM_THREADS=1 pytest benchmarks/bench_blas.py

0 comments on commit c16cca4

Please sign in to comment.