Skip to content
Snippets Groups Projects
  • Sam Yates's avatar
    Simplify default proc_allocation generation. (#1725) · e0c13e16
    Sam Yates authored
    * 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!)
    Unverified
    e0c13e16