aclmdlRICaptureTaskUpdateBegin
Note: This API is for trial use and may be changed in later versions. It is not available in commercial products.
Applicability
|
Product |
Supported |
|---|---|
|
Atlas 350 Accelerator Card |
√ |
|
|
√ |
|
|
√ |
|
|
☓ |
|
|
√ |
|
|
☓ |
Description
Marks the start of the tasks to be updated.
This API and aclmdlRICaptureTaskUpdateEnd are used in pairs. The tasks between these two APIs need to be updated.
The number and type of tasks between aclmdlRICaptureTaskUpdateBegin and aclmdlRICaptureTaskUpdateEnd must be the same as those of tasks between aclmdlRICaptureTaskGrpBegin and aclmdlRICaptureTaskGrpEnd.
- For the
Atlas A2 training product /Atlas A2 inference product andAtlas A3 training product /Atlas A3 inference product , upgrade the driver package to 25.0.RC1 or later. - For the
Atlas inference product , upgrade the driver package to 26.0.RC1 or later.
Prototype
1
|
aclError aclmdlRICaptureTaskUpdateBegin(aclrtStream stream, aclrtTaskGrp handle) |
Parameters
|
Parameter |
Input/Output |
Description |
|---|---|---|
|
stream |
Input |
Stream. For details about the type definition, see aclrtStream. The stream must not be in the capture state. |
|
handle |
Input |
Handle to a task group. For details about the type definition, see aclrtTaskGrp. Call aclmdlRICaptureTaskGrpBegin and aclmdlRICaptureTaskGrpEnd to mark the task group, call aclmdlRICaptureTaskGrpEnd to obtain the task group handle, and pass the handle as an input parameter. |
Returns
0 on success; otherwise, failure. For details, see aclError.
Restrictions
For the