48 #ifndef __ENV_DETECT_H__
49 #define __ENV_DETECT_H__
51 #include "services/base.h"
52 #include "services/daal_defines.h"
76 lastCpuType = avx512_mic_e1
88 class DAAL_EXPORT Environment :
public Base
95 typedef struct _envStruct
105 static Environment *getInstance();
112 DAAL_DEPRECATED
static int freeInstance();
131 int getCpuId(
int enable = cpu_default);
138 int setCpuId(
int cpuid);
145 int enableInstructionsSet(
int enable);
151 enum LibraryThreadingType
161 void setDynamicLibraryThreadingTypeOnWindows( LibraryThreadingType type );
167 void setNumberOfThreads(
const size_t numThreads);
173 void enableThreadPinning(
bool enableThreadPinningFlag =
true);
179 size_t getNumberOfThreads()
const;
186 int setMemoryLimit(MemType type,
size_t limit);
190 Environment(
const Environment &e);
193 void _cpu_detect(
int);
201 using interface1::Environment;
daal::services::interface1::Environment::_envStruct
The environment structure.
Definition: env_detect.h:95
daal
Definition: algorithm_base_common.h:57
daal::avx2
Definition: env_detect.h:72
daal::CpuType
CpuType
Definition: env_detect.h:66
daal::services::interface1::Environment::LibraryThreadingType
LibraryThreadingType
Definition: env_detect.h:151
daal::ssse3
Definition: env_detect.h:69
daal::avx
Definition: env_detect.h:71
daal::services::interface1::Environment::CpuTypeEnable
CpuTypeEnable
CPU types.
Definition: env_detect.h:118
daal::sse2
Definition: env_detect.h:68
daal::avx512_mic_e1
Definition: env_detect.h:75
daal::services::interface1::Environment
Class that provides methods to interact with the environment, including processor detection and contr...
Definition: env_detect.h:88
daal::sse42
Definition: env_detect.h:70
daal::Base
Base class for Intel(R) Data Analytics Acceleration Library objects
Definition: base.h:65
daal::avx512
Definition: env_detect.h:74
daal::MemType
MemType
Definition: daal_defines.h:156
daal::avx512_mic
Definition: env_detect.h:73