aclrtStreamStop
Applicability
Product |
Supported |
|---|---|
Atlas 350 Accelerator Card |
√ |
√ |
|
√ |
|
x |
|
x |
|
x |
Description
Stops tasks that are being executed in a specified stream, but does not clear the tasks.
Prototype
1 | aclError aclrtStreamStop(aclrtStream stream) |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
stream |
Input |
Stream with tasks to be stopped. For details about the type definition, see aclrtStream. |
Returns
0 on success; otherwise, failure. For details, see aclError.
Restrictions
- aclmdlRIBindStream cannot be used to bind a stream to a model runtime instance.
- The default stream (that is, the stream parameter is set to NULL) is not supported.
- For
Atlas A2 training product /Atlas A2 inference product andAtlas A3 training product /Atlas A3 inference product , this API only applies to the stream created by calling aclrtCreateStreamWithConfig with flag set to ACL_STREAM_DEVICE_USE_ONLY (creating a stream that can be invoked exclusively on the device).
Parent topic: Stream Management