Intel® C++ Compiler XE 13.1 User and Reference Guides

__cilkrts_get_nworkers

int __cilkrts_get_nworkers(void);

This function returns the number of worker threads assigned to handle Intel® Cilk™ Plus tasks. If called in serialized code, it will return 1.

The range of valid worker IDs is 0 to __cilkrts_get_nworkers()-1.


Submit feedback on this help topic