alf_accel_num_instances

NAME

alf_accel_num_instances - Returns the number of instances that are running this computational kernel.

SYNOPSIS

int alf_accel_num_instances (void);

Parameters  
None  

DESCRIPTION

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.

RETURN VALUE

>0 number of accelerators that are executing this compute task
less than 0 Internal error