aclrtQueryDeviceStatus
Applicable Products
Product |
Supported |
|---|---|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
Function
Queries the status of a device (normal or abnormal).
Prototype
1 | aclError aclrtQueryDeviceStatus(int32_t deviceId, aclrtDeviceStatus *deviceStatus) |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
deviceId |
Input |
Device ID. The value must be in the range of [0, (Available device count – 1)]. Call aclrtGetDeviceCount to obtain the device count. |
deviceStatus |
Output |
Device status. For details about the type definition, see aclrtDeviceStatus. |
Returns
0 on success; otherwise, failure. For details, see aclError.
Parent topic: Device Management