This is an example of wrapping sparse kernels from scipy.sparse
with bindthem: https://github.com/lukeolson/bindthem
This script uses
- OpenMP
- omp_thread_count
- scipy
- tqdm
-
Modify
setup.py
with your (openmp supported) compiler -
Build the sparse library
python setup.py build_ext --inplace
- Run the benchmark
python benchmark --scipy --openmp
See run.sh
for a full run.
- You need OpenMP support in your compiler. On a mac,
brew install llvm libomp
will work - Put the path for your compiler in
setup.py
THis uses analyze-data.ipynb