int __cilkrts_set_param(const char* name, const char* value);
This function controls parameters of the Intel® Cilk™ Plus runtime system. The two string parameters form a name/value pair. The following name argument is recognized:
nworkers: The value argument specifies the number of worker threads to use, as a decimal number or, if prefixed by 0x or 0, as a hexadecimal or octal number, respectively. If this function is not called, the worker count is obtained from the CILK_NWORKERS environment variable, if present. Otherwise, the worker count defaults to the number of processors available. This function is effective only before the first call to a function containing a cilk_spawn or cilk_for.
The return value is zero on success and a non-zero value on failure. Failures may be caused by a variety of conditions including an unrecognized argument, an illegal value, or calling at an incorrect time.
Copyright © 1996-2010, Intel Corporation. All rights reserved.