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.pywith 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 libompwill work - Put the path for your compiler in
setup.py
THis uses analyze-data.ipynb


