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();
105 int getCpuId(
int enable = cpu_default);
112 int setCpuId(
int cpuid);
119 int enableInstructionsSet(
int enable);
125 enum LibraryThreadingType
135 void setDynamicLibraryThreadingTypeOnWindows( LibraryThreadingType type );
141 void setNumberOfThreads(
const size_t numThreads);
147 void enableThreadPinning(
bool enableThreadPinningFlag =
true);
153 size_t getNumberOfThreads()
const;
160 int setMemoryLimit(MemType type,
size_t limit);
164 Environment(
const Environment &e);
167 void _cpu_detect(
int);
175 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:125
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:92
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:131
daal::avx512_mic
Definition: env_detect.h:47