22 #ifndef __ENV_DETECT_H__
23 #define __ENV_DETECT_H__
25 #include "services/base.h"
26 #include "services/daal_defines.h"
50 lastCpuType = avx512_mic_e1
62 class DAAL_EXPORT Environment :
public Base
69 typedef struct _envStruct
79 static Environment *getInstance();
86 DAAL_DEPRECATED
static int freeInstance();
106 int getCpuId(
int enable = cpu_default);
113 int setCpuId(
int cpuid);
121 int enableInstructionsSet(
int enable);
127 enum LibraryThreadingType
137 void setDynamicLibraryThreadingTypeOnWindows( LibraryThreadingType type );
143 void setNumberOfThreads(
const size_t numThreads);
149 void enableThreadPinning(
bool enableThreadPinningFlag =
true);
155 size_t getNumberOfThreads()
const;
162 int setMemoryLimit(MemType type,
size_t limit);
166 Environment(
const Environment &e);
169 void _cpu_detect(
int);
170 void initNumberOfThreads();
178 using interface1::Environment;
daal::services::interface1::Environment::_envStruct
The environment structure.
Definition: env_detect.h:69
daal
Definition: algorithm_base_common.h:31
daal::avx2
Definition: env_detect.h:46
daal::CpuType
CpuType
Definition: env_detect.h:40
daal::services::interface1::Environment::LibraryThreadingType
LibraryThreadingType
Definition: env_detect.h:127
daal::ssse3
Definition: env_detect.h:43
daal::avx
Definition: env_detect.h:45
daal::services::interface1::Environment::CpuTypeEnable
CpuTypeEnable
CPU types.
Definition: env_detect.h:93
daal::sse2
Definition: env_detect.h:42
daal::avx512_mic_e1
Definition: env_detect.h:49
daal::services::interface1::Environment
Class that provides methods to interact with the environment, including processor detection and contr...
Definition: env_detect.h:62
daal::sse42
Definition: env_detect.h:44
daal::Base
Base class for Intel(R) Data Analytics Acceleration Library objects
Definition: base.h:39
daal::avx512
Definition: env_detect.h:48
daal::MemType
MemType
Definition: daal_defines.h:135
daal::avx512_mic
Definition: env_detect.h:47