37 #include <OpenMS/build_config.h>
89 size_t bytes =
sizeof(size_t);
107 #elif (defined(__MACH__) && defined(__APPLE__))
109 #elif (defined(__unix__))
117 if (QSysInfo::WordSize == 32)
149 return OPENMS_BUILD_TYPE;
158 return omp_get_max_threads();
168 omp_set_num_threads(num_threads);
Definition: BuildInfo.h:56
static String getBinaryArchitecture()
Get Architecture of this binary (simply by looking at size of a pointer, i.e. size_t).
Definition: BuildInfo.h:87
String os_version_
Definition: BuildInfo.h:58
OpenMS_Architecture arch_
Definition: BuildInfo.h:59
OpenMSOSInfo()
Definition: BuildInfo.h:62
String getOSVersionAsString() const
Get the OS version (e.g. 10.15 for macOS or 10 for Windows)
Definition: BuildInfo.h:81
static OpenMSOSInfo getOSInfo()
Constructs and returns an OpenMSOSInfo object.
Definition: BuildInfo.h:102
OpenMS_OS os_
Definition: BuildInfo.h:57
String getArchAsString() const
Get the current architecture (32-bit or 64-bit)
Definition: BuildInfo.h:75
String getOSAsString() const
Get the current operating system (Windows, MacOS, Linux)
Definition: BuildInfo.h:69
A more convenient string class.
Definition: String.h:60
int Int
Signed integer type.
Definition: Types.h:102
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:127
std::string OpenMS_OSNames[]
Definition: BuildInfo.h:51
OpenMS_Architecture
Definition: BuildInfo.h:52
@ ARCH_64BIT
Definition: BuildInfo.h:52
@ ARCH_UNKNOWN
Definition: BuildInfo.h:52
@ ARCH_32BIT
Definition: BuildInfo.h:52
std::string OpenMS_ArchNames[]
Definition: BuildInfo.h:53
OpenMS_OS
Definition: BuildInfo.h:50
@ OS_UNKNOWN
Definition: BuildInfo.h:50
@ OS_WINDOWS
Definition: BuildInfo.h:50
@ OS_LINUX
Definition: BuildInfo.h:50
@ OS_MACOS
Definition: BuildInfo.h:50
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:48
Struct with some static methods to get informations on the build configuration.
Definition: BuildInfo.h:133
static String getBuildType()
Get the build type used during building the OpenMS library.
Definition: BuildInfo.h:147
static Size getOpenMPMaxNumThreads()
Get the maximum number of threads that OpenMP will use (including hyperthreads) Note: This could also...
Definition: BuildInfo.h:155
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:165
static bool isOpenMPEnabled()
Checks if OpenMP was enabled during build, based on the _OPENMP macro.
Definition: BuildInfo.h:137