aclmdlRIAddCondTask

Note: This API is for trial use and may be changed in later versions. It is not available in production environments.

Applicable Products

Product

Supported

Ascend 950PR/Ascend 950DT

√

Atlas A3 training products/Atlas A3 inference products

√

Atlas A2 training products/Atlas A2 inference products

√

Atlas 200I/500 A2 inference products

☓

Atlas inference products

☓

Atlas training products

☓

Function

Adds a conditional task to a stream.

Prototype

aclError aclmdlRIAddCondTask(aclmdlRICondTaskParams params, aclrtStream stream, uint32_t flags)

Parameters

Parameter

Input/Output

Description

params

Input/Output

Conditional task parameters, including the condition handle, condition type, and number of branches. For details about the type definition, see aclmdlRICondTaskParams.

Before calling this API, call aclmdlRICondHandleCreate to create a condition handle.

stream

Input

Stream for executing the conditional task. The stream must be in the capture state. For details about the type definition, see aclrtStream.

flags

Input

Reserved. The value is fixed at 0.

Returns

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