Blueprint Help Send comments on this topic.
ClpNumProcessors

Glossary Item Box

Description

CLIP provides a function to identify the number of Shared Memory processors (ie. multi-core) that this process is running on. This allows the code to make processing decisions dependent on this number (ie to factorize the processing accordingly).

Generation

Uns ClpNumProcessors();

Return

The function returns the number of processors that this process is running on. Always greater than 0.

Examples

bool MyProc1Process::OnPrestart()
{
   ...


   const Uns numBlocks = ClpNumProcessors() + 1;

   gGRID_BLOCK_SIZE = ACTUAL_GRID_SIZE / numBlocks;

   ...
}