Class that provides methods to interact with the environment, including processor detection and control by the number of threads.
More...
- Deprecated:
- This item will be removed in a future release.
Enumerator |
---|
cpu_default |
Default processor type
|
avx512_mic |
Intel(R) Xeon Phi(TM) processors/coprocessors based on Intel(R) Advanced Vector Extensions 512 (Intel(R) AVX-512)
- Deprecated:
- This item will be removed in a future release.
|
avx512 |
Intel(R) Xeon(R) processors based on Intel(R) Advanced Vector Extensions 512 (Intel(R) AVX-512)
- Deprecated:
- This item will be removed in a future release.
|
avx512_mic_e1 |
Intel(R) Xeon Phi(TM) processors based on Intel(R) Advanced Vector Extensions 512 (Intel(R) AVX-512) with support of AVX512_4FMAPS and AVX512_4VNNIW instruction groups
|
The threading mode of the library
Enumerator |
---|
MultiThreaded |
Multi-threaded mode
|
SingleThreaded |
Single-threaded mode
|
int enableInstructionsSet |
( |
int |
enable | ) |
|
Enable dispatching for new Intel(R) architectures
- Parameters
-
[in] | enable | An enabling flag |
- Returns
- CPU ID
- Deprecated:
- This item will be removed in a future release.
void enableThreadPinning |
( |
bool |
enableThreadPinningFlag = true | ) |
|
Enables thread pinning
- Parameters
-
[in] | enableThreadPinningFlag | Flag to thread pinning enable |
static DAAL_DEPRECATED int freeInstance |
( |
| ) |
|
|
static |
Decreases the instance counter
- Returns
- The return code
- Deprecated:
- This item will be removed in a future release.
Detects the processor type
- Parameters
-
[in] | enable | An enabling flag |
- Deprecated:
- This item will be removed in a future release.
- Returns
- The CPU ID
Returns the environment instance
- Returns
- The environment instance
size_t getNumberOfThreads |
( |
| ) |
const |
Returns the number of used threads
- Returns
- The number of used threads
int setCpuId |
( |
int |
cpuid | ) |
|
Restrict dispatching to the required code path
- Parameters
-
- Returns
- CPU ID if success; ErrorCpuInvalid if cpuid value is out of CpuType enum
Sets the threading mode on Windows*
- Parameters
-
[in] | type | The threading mode of the library |
int setMemoryLimit |
( |
MemType |
type, |
|
|
size_t |
limit |
|
) |
| |
Limits the amount of memory of the given type available to internal function calls
- Parameters
-
[in] | type | Memory type |
[in] | limit | Limit in megabytes |
void setNumberOfThreads |
( |
const size_t |
numThreads | ) |
|
Sets the number of threads to use
- Parameters
-
[in] | numThreads | The number of threads |
The documentation for this class was generated from the following file: