@@ -130,42 +130,21 @@ jobs:
130
130
131
131
- name : Build the wrapper
132
132
run : |
133
- echo $PWD
134
- ls -l
135
133
cd benchmark/pybench
136
134
export PKG_CONFIG_PATH=$PWD
137
- echo $PWD
138
- ls -l
139
135
meson setup build --prefix=$PWD/build-install
140
136
meson install -C build
141
137
#
142
- #
143
138
# sanity check
144
- ls -l build-install/lib/python3.12/site-packages/openblas_wrap/
145
- ldd build-install/lib/python3.12/site-packages/openblas_wrap/_flapack.cpython-312-x86_64-linux-gnu.so
146
- # This is needed because the build-install/_flapackXXX.so file
147
- # does not link to scipy_openblas32
148
- echo ">>> manually copy the .so from build -> build-install"
149
- cp build/openblas_wrap/*.so build-install/lib/python${{matrix.pyver}}/site-packages/openblas_wrap
150
- ldd build-install/lib/python3.12/site-packages/openblas_wrap/_flapack.cpython-312-x86_64-linux-gnu.so
151
- echo "Inside the build/: "
152
- ldd build/openblas_wrap/_flapack.cpython-312-x86_64-linux-gnu.so
153
- #
154
139
cd build/openblas_wrap
155
140
python -c'import _flapack; print(dir(_flapack))'
156
141
157
142
- name : Check the wrapper is importable
158
143
run : |
159
- cd benchmark/pybench
160
- export PYTHONPATH=$PWD/build-install/lib/python${{matrix.pyver}}/site-packages/
161
- echo "PYTHONPATH = "$PYTHONPATH
162
- ls -l $PYTHONPATH
163
- ls -l $PYTHONPATH/openblas_wrap
144
+ export PYTHONPATH=$PWD/build-install/lib/python${{matrix.pyver}}/site-packages
164
145
cd $PYTHONPATH/openblas_wrap
165
- python -c'import _flapack; print(dir(_flapack))'
166
- python -c 'import openblas_wrap as o; print(f"{o.__file__ = }")'
167
- pip install pytest-benchmark
168
146
ls -l ${{ github.workspace }}/benchmark/pybench/benchmarks/
147
+ pip install pytest-benchmark
169
148
pytest ${{ github.workspace }}/benchmark/pybench/benchmarks/bench_blas.py
170
149
171
150
- name : Run benchmarks
0 commit comments