Function: stream_get_id
Applicability
Product |
Supported (√/x) |
|---|---|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
Function Usage
Obtains the ID of a specified stream.
Prototype
- C Prototype
1aclError aclrtStreamGetId(aclrtStream stream, int32_t *streamId)
- Python Function
1stream_id, ret = acl.rt.stream_get_id(stream)
Parameter Description
Parameter |
Description |
|---|---|
stream |
Int, pointer address of the specified stream. If 0 is passed, the default stream will be operated. |
Return Value Description
Return Value |
Description |
|---|---|
stream_id |
Int, stream ID. |
ret |
Int, 0 on success; else, failure. For details, see aclError. |
Parent topic: Streams Management