Optimized Belief Propagation (CPU and GPU)
run_cpu Namespace Reference

Namespace with CPU run defaults and constants. More...

Variables

constexpr std::string_view kSimulateSingleCPU {"SimulateSingleCPU"}
 Constant that specifies that run is simulating single CPU on a dual-CPU system. More...
 
const unsigned int kNumThreadsCPU {std::thread::hardware_concurrency()}
 Constant corresponding to number of threads on CPU. More...
 
const unsigned int kMinNumThreadsRun {std::min(kNumThreadsCPU, 4u)}
 Minimum number of threads to allow for any parallel parameters setting on CPU. More...
 
const std::array< unsigned int, 2 > kParallelParamsDefault
 Default parallel parameters setting on CPU. More...
 
const std::set< std::array< unsigned int, 2 > > kParallelParameterAltOptions
 Parallel parameters options that are tested in order to find optimized configuration in run. OK to include default option but not required. More...
 

Detailed Description

Namespace with CPU run defaults and constants.

Variable Documentation

◆ kMinNumThreadsRun

const unsigned int run_cpu::kMinNumThreadsRun {std::min(kNumThreadsCPU, 4u)}

Minimum number of threads to allow for any parallel parameters setting on CPU.

Definition at line 80 of file RunCPUSettings.h.

◆ kNumThreadsCPU

const unsigned int run_cpu::kNumThreadsCPU {std::thread::hardware_concurrency()}

Constant corresponding to number of threads on CPU.

Definition at line 76 of file RunCPUSettings.h.

◆ kParallelParameterAltOptions

const std::set<std::array<unsigned int, 2> > run_cpu::kParallelParameterAltOptions
Initial value:
{
{ (3 * kNumThreadsCPU) / 4 , 1},
{ kNumThreadsCPU / 2, 1},
{ kNumThreadsCPU / 4, 1},
{ kNumThreadsCPU / 8, 1}}
const unsigned int kNumThreadsCPU
Constant corresponding to number of threads on CPU.

Parallel parameters options that are tested in order to find optimized configuration in run. OK to include default option but not required.

Definition at line 105 of file RunCPUSettings.h.

◆ kParallelParamsDefault

const std::array<unsigned int, 2> run_cpu::kParallelParamsDefault
Initial value:

Default parallel parameters setting on CPU.

Definition at line 83 of file RunCPUSettings.h.

◆ kSimulateSingleCPU

constexpr std::string_view run_cpu::kSimulateSingleCPU {"SimulateSingleCPU"}
constexpr

Constant that specifies that run is simulating single CPU on a dual-CPU system.

Definition at line 73 of file RunCPUSettings.h.