aclrtCreateStreamWithConfig
Applicability
Product |
Supported |
|---|---|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
Description
Creates a stream in the current process or thread.
For the
For the
For the
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 Atlas Inference Series Product, the value range of this parameter is [0, 7]. A maximum of eight priorities are supported. A smaller value indicates a higher priority. The value 0 indicates the highest priority and the value 7 indicates the lowest priority. If this parameter is set to a value beyond the value range, an error is returned. For the following products, this parameter is reserved and is not used currently. The value is fixed to 0.
|
flag |
Input |
Flag of the stream pointer. Currently, the flag can be set to the following macros. Set one or combine multiple using the bitwise OR operator (|), for example, ACL_STREAM_FAST_LAUNCH | ACL_STREAM_FAST_SYNC. If a macro that does not support bitwise OR is specified, the API returns an error. Setting this parameter to other values creates the same stream as calling aclrtCreateStream.
|
Returns
0 on success; else, failure. For details, see aclError.