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

Contains namespace with constants and enums related to run environment and settings for run. More...

#include <string_view>
#include <map>
Include dependency graph for RunSettingsConstsEnums.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 run_environment
 Constants and enums related to run environment and settings for run.
 

Enumerations

enum class  run_environment::AccSetting {
  run_environment::kAVX512_F16 , run_environment::kAVX512 , run_environment::kAVX256_F16 , run_environment::kAVX256 ,
  run_environment::kNEON , run_environment::kCUDA , run_environment::kNone
}
 Enum for acceleration setting. More...
 
enum class  run_environment::TemplatedItersSetting { run_environment::kRunOnlyTempated , run_environment::kRunOnlyNonTemplated , run_environment::kRunTemplatedAndNotTemplated }
 Enum that specifies whether or not to use templated counts for the number of iterations in processing loops or to run implementation with and without templated iteration counts Templated counts for number of loop iterations can help with optimization but requires that the number of iterations be known at compile time. More...
 
enum class  run_environment::ParallelParamsSetting { run_environment::kDefault , run_environment::kOptimized }
 Enum for parallel parameters settings in run. More...
 
enum class  run_environment::OptParallelParamsSetting { run_environment::kSameParallelParamsAllKernels , run_environment::kAllowDiffKernelParallelParamsInRun }
 Enum to specify if optimizing parallel parameters per kernel or using same parallel parameters across all kernels in run In initial testing optimizing per kernel is faster on GPU and using same parallel parameters across all kernels is faster on CPU. More...
 

Functions

template<AccSetting ACCELERATION_SETTING>
constexpr std::string_view run_environment::AccelerationString ()
 Get string corresponding to acceleration method at compile time. More...
 
std::string_view run_environment::AccelerationString (AccSetting acceleration_setting)
 Get string corresponding to acceleration method at run time. More...
 

Variables

constexpr std::string_view run_environment::kAccelerationDescHeader {"Acceleration"}
 Constant string for acceleration. More...
 
const std::map< std::size_t, std::string_view > run_environment::kDataSizeToNameMap
 Mapping from data size to data type string. More...
 
constexpr std::string_view run_environment::kPParamsPerKernelSettingHeader {"Parallel Params Per Kernel Setting"}
 
constexpr std::string_view run_environment::kPParamsSameEveryKernelDesc {"Same Across Kernels"}
 
constexpr std::string_view run_environment::kPParamsSetEachKernelDesc {"Set Per Kernel"}
 
const std::map< OptParallelParamsSetting, std::string_view > run_environment::kOptPParmsSettingToDesc
 
constexpr std::string_view run_environment::kCPUThreadsPinnedHeader {"CPU Threads Pinned To Socket"}
 
constexpr std::string_view run_environment::kOmpPlacesHeader {"OMP_PLACES"}
 
constexpr std::string_view run_environment::kOmpProcBindHeader {"OMP_PROC_BIND"}
 
constexpr std::string_view run_environment::kNumCPUThreadsHeader {"Total number of CPU threads"}
 
constexpr std::string_view run_environment::kBytesAlignMemHeader {"BYTES_ALIGN_MEMORY"}
 

Detailed Description

Contains namespace with constants and enums related to run environment and settings for run.

Author
Scott Grauer-Gray

Definition in file RunSettingsConstsEnums.h.