aclrtQueryDeviceStatus
Applicability
Product |
Supported |
|---|---|
Atlas 350 Accelerator Card |
√ |
√ |
|
√ |
|
√ |
|
√ |
|
√ |
Description
Obtains the device status (normal or abnormal).
Prototype
1 | aclError aclrtQueryDeviceStatus(int32_t deviceId, aclrtDeviceStatus *deviceStatus) |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
deviceId |
Input |
Device ID. Must be in the range of [0, 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