24 #ifndef __ENV_DETECT_H__
25 #define __ENV_DETECT_H__
27 #include "services/base.h"
28 #include "services/daal_defines.h"
52 lastCpuType = avx512_mic_e1
64 class DAAL_EXPORT Environment :
public Base
71 typedef struct _envStruct
81 static Environment *getInstance();
88 DAAL_DEPRECATED
static int freeInstance();
108 int getCpuId(
int enable = cpu_default);
115 int setCpuId(
int cpuid);
123 int enableInstructionsSet(
int enable);
129 enum LibraryThreadingType
139 void setDynamicLibraryThreadingTypeOnWindows( LibraryThreadingType type );
145 void setNumberOfThreads(
const size_t numThreads);
151 void enableThreadPinning(
bool enableThreadPinningFlag =
true);
157 size_t getNumberOfThreads()
const;
164 int setMemoryLimit(MemType type,
size_t limit);
168 Environment(
const Environment &e);
171 void _cpu_detect(
int);
172 void initNumberOfThreads();
180 using interface1::Environment;
daal::avx
Definition: env_detect.h:47
daal::services::interface1::Environment
Class that provides methods to interact with the environment, including processor detection and contr...
Definition: env_detect.h:64
daal::sse2
Definition: env_detect.h:44
daal::Base
Base class for Intel(R) Data Analytics Acceleration Library objects
Definition: base.h:41
daal::MemType
MemType
Definition: daal_defines.h:147
daal::sse42
Definition: env_detect.h:46
daal::avx512
Definition: env_detect.h:50
daal::CpuType
CpuType
Definition: env_detect.h:42
daal::services::interface1::Environment::_envStruct
The environment structure.
Definition: env_detect.h:71
daal::ssse3
Definition: env_detect.h:45
daal::services::interface1::Environment::CpuTypeEnable
CpuTypeEnable
CPU types.
Definition: env_detect.h:95
daal::avx512_mic_e1
Definition: env_detect.h:51
daal::avx2
Definition: env_detect.h:48
daal::services::interface1::Environment::LibraryThreadingType
LibraryThreadingType
Definition: env_detect.h:129
daal::avx512_mic
Definition: env_detect.h:49