acIrtStreamStop

Applicability

Product

Supported

Atlas A3 training products/Atlas A3 inference products

Atlas A2 training products/Atlas A2 inference products

Atlas 200I/500 A2 inference products

x

Atlas inference products

x

Atlas training products

x

Description

Stops tasks that are being executed in a specified stream, but does not clear the tasks.

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

Prototype

aclError aclrtStreamStop(aclrtStream stream)

Parameters

Parameter

Input/Output

Description

stream

Input

Stream with tasks to be stopped.

Passing NULL is not supported. Otherwise, an error will be reported.

Returns

0 on success; else, failure. For details, see aclError.