Product |
Supported (√/x) |
|---|---|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
Obtains the device resource limits of the current process.
aclError aclrtGetDeviceResLimit(int32_t deviceId, aclrtDevResLimitType type, uint32_t* value)
1 | value, ret = acl.rt.get_device_res_limit(device_id, type) |
Parameter |
Description |
|---|---|
device_id |
Int, device ID. |
type |
Int, enumerated value. For details, see aclrtDevResLimitType. |
Return Value |
Description |
|---|---|
ret |
Int, error code. 0 on success; else, failure. |
value |
Int, resource limit. |