Developer Reference for Intel® Integrated Performance Primitives 2018

SetNumThreads

Sets the number of threads in the multithreading environment.

Syntax

Case 1: Setting number of threads for operations on objects of 32-bit size:

IppStatus ippSetNumThreads(int numThr);

Case 2: Setting number of threads for operations on objects of 64-bit size:

IppStatus ippSetNumThreads_L(int numThr);

Include Files

ippcore.h

ippcore64x.h (for 64x flavors)

Parameters

numThr

Number of threads, should be more than zero.

Description

This function sets the number of OpenMP* threads. A number of established threads may be less than specified numThr.

Return Values

ippStsNoErr

Indicates no error.

ippStsSizeErr

Indicates an error when numThr is less than, or equal to zero.

ippStsNoOperation

Indicates that the function is called from the application linked to the single-threaded version of the library. No operation is performed.