Product |
Supported (√/x) |
|---|---|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
Obtains the device status (normal or abnormal).
1 | aclError aclrtQueryDeviceStatus(int32_t deviceId, aclrtDeviceStatus *deviceStatus) |
1 | device_status, ret = acl.rt.query_device_status(device_id) |
Parameter |
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 |
Description |
|---|---|
device_status |
Int, device status. For details, see aclrtDeviceStatus. |
ret |
Int, error code. 0 on success; else, failure. |