Function: create_stream_with_config
C Prototype |
aclError aclrtCreateStreamWithConfig(aclrtStream *stream, uint32_t priority, uint32_t flag) |
|---|---|
Python Function |
stream, ret = acl.rt.create_stream_with_config(priority, flag) |
Function Usage |
Creates a stream in the calling process or thread. For the Atlas Training Series Product, compared with acl.rt.create_stream, this API can create a stream that features fast task launching. However, it consumes more memory or CPU resources. For the Atlas 200/300/500 Inference Product, this API functions equivalently to acl.rt.create_stream. |
Input Description |
priority: int, priority. For the Atlas 200/300/500 Inference Product, this parameter is reserved and fixed at 0. For the Atlas Training Series Product, this parameter is reserved and fixed at 0. flag: int, flag of a stream. Values:
|
Return Value |
stream: int, stream object pointer address. ret: int, error code.
|