aclrtCreateStreamWithConfig
Description
Creates a stream in the calling process or thread.
For the
For the
Prototype
aclError aclrtCreateStreamWithConfig(aclrtStream *stream, uint32_t priority, uint32_t flag)
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
stream |
Output |
Stream pointer. |
priority |
Input |
Priority. For the For the |
flag |
Input |
Flag of the stream pointer. Value range:
NOTE:
If this parameter is set to a value beyond the value range, the stream created by this API is equivalent to that created by aclrtCreateStream. |
Returns
The value 0 indicates success, and other values indicate failure. For details, see aclError.