Open stefanv opened 6 months ago
Updated the title to include "parallelism", it seemed a bit broad without it :D
Here are the overarching questions around a parallelism API:
workers
, n_jobs
, etc.np.linalg.matmul(..., workers=?)
A_array @ B_array
is parallel. The solution is a context manager like threadpoolctl
.scikit-learn
will prevent oversubscription with NumPy BLAS calls + joblib's n_jobs
by using threadpoolctl
.
See https://thomasjpfan.github.io/parallelism-python-libraries-design/
Across libraries, we should have standard mechanisms and naming for parallel concepts and features.
See also https://discuss.scientific-python.org/t/terminology-for-parameters-controlling-parallel-computation/1016/5