|
Optimized Belief Propagation (CPU and GPU)
|
Contains namespace with CPU run defaults and constants. More...
#include <vector>#include <array>#include <thread>#include <set>

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... | |
Contains namespace with CPU run defaults and constants.
Definition in file RunCPUSettings.h.
| #define AVX_256_DEFINE 0 |
Definition at line 42 of file RunCPUSettings.h.
| #define AVX_256_F16_DEFINE 1 |
Definition at line 43 of file RunCPUSettings.h.
| #define AVX_512_DEFINE 2 |
Definition at line 44 of file RunCPUSettings.h.
| #define AVX_512_F16_DEFINE 3 |
Definition at line 45 of file RunCPUSettings.h.
| #define CPU_VECTORIZATION_DEFINE AVX_512_DEFINE |
Definition at line 62 of file RunCPUSettings.h.
| #define NEON_DEFINE 4 |
Definition at line 46 of file RunCPUSettings.h.
| #define NO_VECTORIZATION 5 |
Definition at line 47 of file RunCPUSettings.h.