Function: get_device_capability
C Prototype |
aclError aclGetDeviceCapability(uint32_t deviceId, aclDeviceInfo deviceInfo, int64_t *value) |
|---|---|
Python Function |
value, ret = acl.get_device_capability(device_id, device_info) |
Function Usage |
Queries the hardware specifications of the corresponding device in the operating environment. |
Input Description |
device_id: int, device ID. Must be in the range of [0, Device count – 1]. Call acl.rt.get_device_count to obtain the device count. device_info: int, specifies the hardware specification type on the device. For details, see aclDeviceInfo. |
Return Value |
value: int, indicates the hardware specification value. ret: int, error code.
|
Restrictions |
None |
Parent topic: System Configuration