Function: get_device_res_limit
Description
Obtains the device resource limits of the current process.
Prototype
- C Prototype
aclError aclrtGetDeviceResLimit(int32_t deviceId, aclrtDevResLimitType type, uint32_t* value)
- Python Function
1value, ret = acl.rt.get_device_res_limit(device_id, type)
Parameters
Parameter |
Description |
|---|---|
device_id |
Int, device ID. |
type |
int: enumerated value. For details, see aclrtDevResLimitType. |
Return Value
Return Value |
Description |
|---|---|
ret |
Int, error code. 0 on success; else, failure. |
value |
Int, resource limit. |
Parent topic: Runtime Configuration