HTL_create_randws_numa_resource
Creates randws_numa resources.
Interface Definition
int HTL_create_randws_numa_resource(int num_executors);
Description
HTL_create_randws_numa_resource() is used to create randws_numa resources. num_executors specifies the number of executors, and random NUMA schedulers are used.
Before invoking this function, execute the HTL initialization function HTL_initialize_library().
Parameters
Parameter |
Type |
Description |
Input/Output |
|---|---|---|---|
num_executors |
int |
Number of executors. |
Input |
Return Value
- HTL_THREAD_SUCCESS: success.
- Other values: failure. For details, see the error code descriptions.
Example
HTL_initialize_library();
int num_xstreams = 4;
int ret = HTL_create_randws_numa_resource(num_executors);
Parent topic: Extended Feature Functions