Get's the id of the device an array was created on.
More...
Get's the id of the device an array was created on.
=======================================================================
- Parameters
-
| [out] | device | contains the device on which in was created. |
| [in] | in | is the array who's device is to be queried. |
- Returns
- af_err error code
| AFAPI int af::getDeviceId |
( |
const array & |
in | ) |
|
- Parameters
-
| [in] | in | is 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.