Function: get_stream_res_limit
Applicability
Product |
Supported |
|---|---|
Atlas 350 Accelerator Card |
√ |
√ |
|
√ |
|
√ |
|
√ |
|
√ |
Description
Obtains the device resource limits of a specified stream.
If the acl.rt.set_stream_res_limit API is not called to set the device resource limits, the device resource limits obtained by this API call are prioritized as follows: device resource limits of the current process (set by acl.rt.set_stream_res_limit) > default hardware resource limits of the AI processor.
Prototype
- C Prototype
aclError aclrtGetStreamResLimit(aclrtStream stream, aclrtDevResLimitType type, uint32_t *value)
- Python Function
1value, ret = acl.rt.get_stream_res_limit(stream, type)
Parameters
Parameter |
Description |
|---|---|
stream |
Int, specified stream. If 0 is passed, it indicates the default stream. |
type |
Int, resource type. Currently, Cube Core and Vector Core are supported. For details, see the new data structure by calling aclrtDevResLimitType. |
Return Value
Return Value |
Description |
|---|---|
value |
Int, resource limit. |
ret |
Int, 0 on success; else, failure. |