alf_accel_num_instances - Returns the number of instances that are running this computational kernel.
int alf_accel_num_instances (void);
Parameters | |
None |
This function returns the number of instances that are currently executing this computational kernel. This function should only be used when a task is created with the task attribute ALF_TASK_ATTR_SCHED_FIXED. If user calls this function without ALF_TASK_ATTR_SCHED_FIXED, the number returned might change from one invocation to the next as the ALF runtime dynamically loads and unloads task instances.
>0 | number of accelerators that are executing this compute task |
less than 0 | Internal error |