Function: Get_device_utilization_rate
C Prototype |
aclError aclrtGetDeviceUtilizationRate(int32_t deviceId, aclrtUtilizationInfo *utilizationInfo) |
|---|---|
Python Function |
utilization_info, ret = acl.rt.get_device_utilization_rate (device_id) |
Function Usage |
Queries the usage of the Cube, Vector, and AI CPU on the device. |
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. |
Return Value |
utilization_info: dict, usage information dictionary of the aclrtUtilizationInfo type. For details, see aclrtUtilizationInfo. ret: int, error code.
|
Restrictions |
|
Parent topic: Device Management