Function: get_stream_available_num
Applicability
Product |
Supported (√/x) |
|---|---|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
Function Usage
Obtains the number of available streams on the current device.
Prototype
- C Prototype
1aclError aclrtGetStreamAvailableNum(uint32_t *streamCount)
- Python Function
1stream_count, ret = acl.rt.get_stream_available_num()
Parameter Description
None.
Return Value Description
Return Value |
Description |
|---|---|
stream_count |
Int, number of available streams. |
ret |
Int, 0 on success; else, failure. |
Parent topic: Streams Management