Function: ctx_get_current_default_stream
Description
Obtains the default stream in the context.
Prototype
- C Prototype
aclError aclrtCtxGetCurrentDefaultStream(aclrtStream *stream)
- Python Function
1stream, ret = acl.rt.ctx_get_current_default_stream()
Parameters
None
Return Value
Return Value |
Description |
|---|---|
stream |
Int, obtained default stream of the context. |
ret |
Int, error code. 0 on success; else, failure. |
Parent topic: Context Management