Product |
Supported (√/x) |
|---|---|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
Obtains the device ID associated with an exception.
1 | uint32_t aclrtGetDeviceIdFromExceptionInfo(const aclrtExceptionInfo *info) |
1 | device_id = acl.rt.get_device_id_from_exception_info(info) |
Parameter |
Description |
|---|---|
info |
Int, pointer address of the exception information aclrtExceptionInfo. If the acl.rt.set_exception_info_callback API is called before a task is executed, the system stores the abnormal task ID, stream ID, thread ID, and device ID in aclrtExceptionInfo. |
Return Value |
Description |
|---|---|
device_id |
Int, device ID in the exception information. 0xFFFFFFFF (hexadecimal) indicates that the exception information is empty. |