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. 
 
◆ af_get_device_id()
- Parameters
- 
  
    | [out] | device | contains the device on which inwas created. |  | [in] | in | is the array who's device is to be queried. |  
 
- Returns
- af_err error code 
 
 
◆ getDeviceId()
      
        
          | int 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.