threadpoolctl icon indicating copy to clipboard operation
threadpoolctl copied to clipboard

Allow access to other settings?

Open aldanor opened this issue 5 years ago • 1 comments

I know this maybe beyond the scope of this little project, but there's quite often other blas/mkl/omp-related variables that are set together, for instance MKL_DYNAMIC and OMP_DYNAMIC - which is directly related to thread allocation - any chance of supporting those?

At the very least, being able to call (and then restore back) omp_get_dynamic() / omp_set_dynamic() would be nice, for both libiomp/libgomp.

aldanor avatar Jul 04 '19 10:07 aldanor

I'm not sure it would fit nicely in threadpoolctl.thread_limits, since this is specific to OpenMP. But maybe through a different, more polyvalent, context manager.

I don't think that the default output of threadpool_info should display all possible threadpool status functions, but maybe we could add a parameter to enable that.

jeremiedbb avatar Jul 09 '19 12:07 jeremiedbb