Thread Pinning C-APIs#
Defines
-
_GNU_SOURCE#
Functions
-
void au_pin_threads_core(pthread_t *threadList, size_t threadListSize)#
Pin threads to the processor group using pinStrateg::CORE.
- Parameters:
threadList – [in] List of threads to pin.
threadListSize – [in] Number of threads in the list.
- Returns:
void
-
void au_pin_threads_logical(pthread_t *threadList, size_t threadListSize)#
Pin threads to the processor group using pinStrateg::LOGICAL.
- Parameters:
threadList – [in] List of threads to pin.
threadListSize – [in] Number of threads in the list.
- Returns:
void
-
void au_pin_threads_spread(pthread_t *threadList, size_t threadListSize)#
Pin threads to the processor group using pinStrateg::SPREAD.
- Parameters:
threadList – [in] List of threads to pin.
threadListSize – [in] Number of threads in the list.
- Returns:
void
-
void au_pin_threads_custom(pthread_t *threadList, size_t threadListSize, int *affinityVector, size_t affinityVectorSize)#
Pin threads to the processor group using custom affinity vector.
- Parameters:
threadList – [in] List of threads to pin.
threadListSize – [in] Number of threads in the list.
affinityVector – [in] Custom affinity vector.
affinityVectorSize – [in] Size of the affinity vector.
- Returns:
void