alf_accel_instance_id

NAME

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

SYNOPSIS

int alf_accel_instance_id (void);

Parameters  
None  

DESCRIPTION

This function returns the current instance ID of the task. This ID ranges from 0 to alf_accel_num_instances.

RETURN VALUE

>=0 Returns the ID of the current accelerator. This is guaranteed to be unique within the reserved accelerators for ALF runtime
less than 0 Internal error