Optimized Belief Propagation (CPU and GPU)
RunCPUSettings.h File Reference

Contains namespace with CPU run defaults and constants. More...

#include <vector>
#include <array>
#include <thread>
#include <set>
Include dependency graph for RunCPUSettings.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 run_cpu
 Namespace with CPU run defaults and constants.
 

Macros

#define AVX_256_DEFINE   0
 
#define AVX_256_F16_DEFINE   1
 
#define AVX_512_DEFINE   2
 
#define AVX_512_F16_DEFINE   3
 
#define NEON_DEFINE   4
 
#define NO_VECTORIZATION   5
 
#define CPU_VECTORIZATION_DEFINE   AVX_512_DEFINE
 

Variables

constexpr std::string_view run_cpu::kSimulateSingleCPU {"SimulateSingleCPU"}
 Constant that specifies that run is simulating single CPU on a dual-CPU system. More...
 
const unsigned int run_cpu::kNumThreadsCPU {std::thread::hardware_concurrency()}
 Constant corresponding to number of threads on CPU. More...
 
const unsigned int run_cpu::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 > run_cpu::kParallelParamsDefault
 Default parallel parameters setting on CPU. More...
 
const std::set< std::array< unsigned int, 2 > > run_cpu::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

Contains namespace with CPU run defaults and constants.

Author
Scott Grauer-Gray

Definition in file RunCPUSettings.h.

Macro Definition Documentation

◆ AVX_256_DEFINE

#define AVX_256_DEFINE   0

Definition at line 42 of file RunCPUSettings.h.

◆ AVX_256_F16_DEFINE

#define AVX_256_F16_DEFINE   1

Definition at line 43 of file RunCPUSettings.h.

◆ AVX_512_DEFINE

#define AVX_512_DEFINE   2

Definition at line 44 of file RunCPUSettings.h.

◆ AVX_512_F16_DEFINE

#define AVX_512_F16_DEFINE   3

Definition at line 45 of file RunCPUSettings.h.

◆ CPU_VECTORIZATION_DEFINE

#define CPU_VECTORIZATION_DEFINE   AVX_512_DEFINE

Definition at line 62 of file RunCPUSettings.h.

◆ NEON_DEFINE

#define NEON_DEFINE   4

Definition at line 46 of file RunCPUSettings.h.

◆ NO_VECTORIZATION

#define NO_VECTORIZATION   5

Definition at line 47 of file RunCPUSettings.h.