Skip to content
Snippets Groups Projects
Unverified Commit e0c13e16 authored by Sam Yates's avatar Sam Yates Committed by GitHub
Browse files

Simplify default proc_allocation generation. (#1725)

* Consolidate default_concurrency, default_gpu functionality into arborenv/default_env.hpp, .cpp.
* Add new arborenv function `default_allocation()` that uses environment variables ARBENV_NUM_THREADS and ARBENV_GPU_ID to create an `arb::proc_allocation`, with a fallback to `thread_concurrency()`.
* Use arborenv-specific exceptions instead of generic std::runtime_error etc.
* Update examples, docs to suit.

Fixes #988 (except for reworking all the unit tests!)
parent 2a8878cd
No related branches found
No related tags found
No related merge requests found
Showing
with 347 additions and 229 deletions
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment