A high-performance general-purpose compute library

Get's the id of the device an array was created on. More...

Functions

AFAPI af_err af_get_device_id (int *device, const af_array in)
 
AFAPI int getDeviceId (const array &in)
 

Detailed Description

Get's the id of the device an array was created on.


Function Documentation

◆ af_get_device_id()

AFAPI af_err af_get_device_id ( int *  device,
const af_array  in 
)
Parameters
[out]devicecontains the device on which in was created.
[in]inis the array who's device is to be queried.
Returns
af_err error code

◆ getDeviceId()

AFAPI int getDeviceId ( const array in)
Parameters
[in]inis the array who's device is to be queried.
Returns
The id of the device on which this array was created.
Note
Device ID can be the same for arrays belonging to different backends.