Product |
Supported (√/x) |
|---|---|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
Obtains information about a specified device.
aclError aclrtGetDeviceInfo(uint32_t deviceId, aclrtDevAttr attr, int64_t *value)
1 | value, ret = acl.rt.get_device_info(device_Id, attr) |
Parameter |
Description |
|---|---|
device_id |
Int, device ID. |
attr |
Int, enumerated value. For details, see aclrtDevAttr. |
Return Value |
Description |
|---|---|
ret |
Int, error code. 0 on success; else, failure. |
value |
Int, device attribute value. |