11 #include <OpenMS/build_config.h>
14 #include <QtCore/QSysInfo>
15 #include <QtCore/QString>
40 os_version_(
"unknown"),
65 size_t bytes =
sizeof(size_t);
86 #elif (defined(__MACH__) && defined(__APPLE__))
88 #elif (defined(__unix__))
96 if (QSysInfo::WordSize == 32)
128 return OPENMS_BUILD_TYPE;
137 return omp_get_max_threads();
147 omp_set_num_threads(num_threads);
Definition: BuildInfo.h:32
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:63
String os_version_
Definition: BuildInfo.h:34
OpenMS_Architecture arch_
Definition: BuildInfo.h:35
OpenMSOSInfo()
Definition: BuildInfo.h:38
String getOSVersionAsString() const
Get the OS version (e.g. 10.15 for macOS or 10 for Windows)
Definition: BuildInfo.h:57
static OpenMSOSInfo getOSInfo()
Constructs and returns an OpenMSOSInfo object.
Definition: BuildInfo.h:81
OpenMS_OS os_
Definition: BuildInfo.h:33
String getArchAsString() const
Get the current architecture (32-bit or 64-bit)
Definition: BuildInfo.h:51
String getOSAsString() const
Get the current operating system (Windows, MacOS, Linux)
Definition: BuildInfo.h:45
A more convenient string class.
Definition: String.h:34
int Int
Signed integer type.
Definition: Types.h:72
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:97
std::string OpenMS_OSNames[]
Definition: BuildInfo.h:27
OpenMS_Architecture
Definition: BuildInfo.h:28
@ ARCH_64BIT
Definition: BuildInfo.h:28
@ ARCH_UNKNOWN
Definition: BuildInfo.h:28
@ ARCH_32BIT
Definition: BuildInfo.h:28
std::string OpenMS_ArchNames[]
Definition: BuildInfo.h:29
OpenMS_OS
Definition: BuildInfo.h:26
@ OS_UNKNOWN
Definition: BuildInfo.h:26
@ OS_WINDOWS
Definition: BuildInfo.h:26
@ OS_LINUX
Definition: BuildInfo.h:26
@ OS_MACOS
Definition: BuildInfo.h:26
Main OpenMS namespace.
Definition: openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19
Struct with some static methods to get informations on the build configuration.
Definition: BuildInfo.h:112
static String getBuildType()
Get the build type used during building the OpenMS library.
Definition: BuildInfo.h:126
static Size getOpenMPMaxNumThreads()
Get the maximum number of threads that OpenMP will use (including hyperthreads) Note: This could also...
Definition: BuildInfo.h:134
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:144
static bool isOpenMPEnabled()
Checks if OpenMP was enabled during build, based on the _OPENMP macro.
Definition: BuildInfo.h:116