11 #include <OpenMS/build_config.h>
38 os_version_(
"unknown"),
63 size_t bytes =
sizeof(size_t);
84 #elif (defined(__MACH__) && defined(__APPLE__))
86 #elif (defined(__unix__))
94 if (QSysInfo::WordSize == 32)
126 return OPENMS_BUILD_TYPE;
135 return omp_get_max_threads();
145 omp_set_num_threads(num_threads);
Definition: BuildInfo.h:30
static String getActiveSIMDExtensions()
Obtain a list of SIMD extensions which are currently in use (i.e. used by the compiler during optimiz...
static String getBinaryArchitecture()
Get Architecture of this binary (simply by looking at size of a pointer, i.e. size_t).
Definition: BuildInfo.h:61
String os_version_
Definition: BuildInfo.h:32
OpenMS_Architecture arch_
Definition: BuildInfo.h:33
OpenMSOSInfo()
Definition: BuildInfo.h:36
String getOSVersionAsString() const
Get the OS version (e.g. 10.15 for macOS or 10 for Windows)
Definition: BuildInfo.h:55
static OpenMSOSInfo getOSInfo()
Constructs and returns an OpenMSOSInfo object.
Definition: BuildInfo.h:79
OpenMS_OS os_
Definition: BuildInfo.h:31
String getArchAsString() const
Get the current architecture (32-bit or 64-bit)
Definition: BuildInfo.h:49
String getOSAsString() const
Get the current operating system (Windows, MacOS, Linux)
Definition: BuildInfo.h:43
A more convenient string class.
Definition: String.h:34
int Int
Signed integer type.
Definition: Types.h:76
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:101
std::string OpenMS_OSNames[]
Definition: BuildInfo.h:25
OpenMS_Architecture
Definition: BuildInfo.h:26
@ ARCH_64BIT
Definition: BuildInfo.h:26
@ ARCH_UNKNOWN
Definition: BuildInfo.h:26
@ ARCH_32BIT
Definition: BuildInfo.h:26
std::string OpenMS_ArchNames[]
Definition: BuildInfo.h:27
OpenMS_OS
Definition: BuildInfo.h:24
@ OS_UNKNOWN
Definition: BuildInfo.h:24
@ OS_WINDOWS
Definition: BuildInfo.h:24
@ OS_LINUX
Definition: BuildInfo.h:24
@ OS_MACOS
Definition: BuildInfo.h:24
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:22
Struct with some static methods to get informations on the build configuration.
Definition: BuildInfo.h:110
static String getBuildType()
Get the build type used during building the OpenMS library.
Definition: BuildInfo.h:124
static Size getOpenMPMaxNumThreads()
Get the maximum number of threads that OpenMP will use (including hyperthreads) Note: This could also...
Definition: BuildInfo.h:132
static void setOpenMPNumThreads(Int num_threads)
Set the number of threads that OpenMP will use (including hyperthreads) Note: Can be initialized by t...
Definition: BuildInfo.h:142
static bool isOpenMPEnabled()
Checks if OpenMP was enabled during build, based on the _OPENMP macro.
Definition: BuildInfo.h:114