Skip to content

Commit

Permalink
CI: clean the codspeed action yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ev-br committed May 18, 2024
1 parent 7aff5a4 commit 53f8a77
Showing 1 changed file with 3 additions and 18 deletions.
21 changes: 3 additions & 18 deletions .github/workflows/codspeed-bench.yml
Original file line number Diff line number Diff line change
Expand Up @@ -130,42 +130,27 @@ jobs:

- name: Build the wrapper
run: |
echo $PWD
ls -l
cd benchmark/pybench
export PKG_CONFIG_PATH=$PWD
echo $PWD
ls -l
meson setup build --prefix=$PWD/build-install
meson install -C build
#
#
# sanity check
ls -l build-install/lib/python3.12/site-packages/openblas_wrap/
ldd build-install/lib/python3.12/site-packages/openblas_wrap/_flapack.cpython-312-x86_64-linux-gnu.so
# This is needed because the build-install/_flapackXXX.so file
# does not link to scipy_openblas32
echo ">>> manually copy the .so from build -> build-install"
cp build/openblas_wrap/*.so build-install/lib/python${{matrix.pyver}}/site-packages/openblas_wrap
ldd build-install/lib/python3.12/site-packages/openblas_wrap/_flapack.cpython-312-x86_64-linux-gnu.so
echo "Inside the build/: "
ldd build/openblas_wrap/_flapack.cpython-312-x86_64-linux-gnu.so
#
cd build/openblas_wrap
python -c'import _flapack; print(dir(_flapack))'
- name: Check the wrapper is importable
run: |
cd benchmark/pybench
export PYTHONPATH=$PWD/build-install/lib/python${{matrix.pyver}}/site-packages/
echo "PYTHONPATH = "$PYTHONPATH
ls -l $PYTHONPATH
#echo "PYTHONPATH = "$PYTHONPATH
#ls -l $PYTHONPATH
ls -l $PYTHONPATH/openblas_wrap
cd $PYTHONPATH/openblas_wrap
python -c'import _flapack; print(dir(_flapack))'
python -c 'import openblas_wrap as o; print(f"{o.__file__ = }")'
pip install pytest-benchmark
ls -l ${{ github.workspace }}/benchmark/pybench/benchmarks/
pip install pytest-benchmark
pytest ${{ github.workspace }}/benchmark/pybench/benchmarks/bench_blas.py
- name: Run benchmarks
Expand Down

0 comments on commit 53f8a77

Please sign in to comment.