/home/runner/work/DiFfRG_current/DiFfRG_current/DiFfRG/include/DiFfRG/common/threads.hh File Reference#

DiFfRG: /home/runner/work/DiFfRG_current/DiFfRG_current/DiFfRG/include/DiFfRG/common/threads.hh File Reference
DiFfRG
Discretization Framework for functional Renormalization Group flows
threads.hh File Reference

Go to the source code of this file.

Classes

struct  DiFfRG::ThreadResolution
 What the precedence rules picked, and which setting it came from. More...
 

Namespaces

namespace  DiFfRG
 

Enumerations

enum class  DiFfRG::ThreadSource {
  DiFfRG::diffrg_env , DiFfRG::launcher , DiFfRG::config , DiFfRG::other_env ,
  DiFfRG::automatic
}
 Where the CPU thread budget came from, in order of precedence (highest first). More...
 

Functions

const char * DiFfRG::to_string (const ThreadSource source)
 The name of a thread-count source, as it appears in the precedence warning.
 
unsigned int DiFfRG::n_threads ()
 The CPU thread budget this process resolved.
 
ThreadSource DiFfRG::n_threads_source ()
 Which rule produced n_threads(). ThreadSource::automatic before anything has been resolved.
 
ThreadResolution DiFfRG::resolve_thread_count (const unsigned int configured_threads)
 Apply the precedence order to the environment and one configured thread count.
 
void DiFfRG::set_thread_limit (const unsigned int threads)
 Limit the number of CPU threads this process may use.