aclrtStreamStop

Applicability

Product

Supported

Atlas 350 Accelerator Card

Atlas A3 training product/Atlas A3 inference product

Atlas A2 training product/Atlas A2 inference product

Atlas 200I/500 A2 inference product

x

Atlas inference product

x

Atlas training product

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 and Atlas 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).