A small utility to get the actual number of threads used by OMP via Cython.
OpenMP Thread Counter
A small Python module to get the actual number of threads used by OMP via Cython bindings.
Free software: MIT license
Because GCC/Cython always returned 1 when calling openmp.get_thread_num or openmp.get_max_threads.
import omp_thread_count n_threads = omp_thread_count.get_thread_count()
First release on PyPI.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.