Developer Reference for Intel® Integrated Performance Primitives 2019
Returns the number of existing threads in the multithreading environment.
Case 1: Getting number of threads for operations on objects of 32-bit size
IppStatus ippGetNumThreads(int* pNumThr);
Case 2: Getting number of threads for operations with TL functions based on the Platform Aware API
IppStatus ippGetNumThreads_LT(int* pNumThr);
Case 3: Getting number of threads for operations with TL functions based on the Classic API
IppStatus ippGetNumThreads_T(int* pNumThr);
ippcore.h
ippcore_tl.h
pNumThr |
Pointer to the number of threads. |
This function returns the number of OpenMP* threads specified by the user previously. If it is not specified, the function returns the initial number of threads that depends on the number of logical processors.
ippStsNoErr |
Indicates no error. |
ippStsNullPtrErr |
Indicates an error condition when the pMhz pointer is NULL. |
ippStsNoOperation |
Indicates that there is no such operation in the static version of the library. |