Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

availableThreads(): Report on settings controlling amount of multi-threading #111

Open
HenrikBengtsson opened this issue Jan 31, 2024 · 1 comment

Comments

@HenrikBengtsson
Copy link
Collaborator

HenrikBengtsson commented Jan 31, 2024

Wish

Add availableThreads(), which works similarly to availableCores(), but instead reports on settings that control multi_threading_, in contrast to multi_processing_.

It should work something like:

> parallelly::availableThreads(which = "all")
system nproc omp tbb rcpp
    16    16   4   4    8  

Open questions

  • What should, say, system report on? Should it be detectCores() * detectThreadsPerCores()?
  • Should this also report on anything that availableCores() report on? Basically, availableCores() * detectThreadsPerCores()?
  • For queries that require loading a package (e.g. RcppParallel::defaultNumThreads()), what should happen? Should it return NA_integer_ if package is not loaded? Should it attempt to load it? (probably not)
  • ...

See also

@ayeTown
Copy link

ayeTown commented Oct 28, 2024

thanks so much for the package! is this function still in development?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants