aclmdlRICaptureEnd
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
Ends the capture action on a stream and obtains the running instance of the model that is used to temporarily store the captured tasks.
This API must be used together with other APIs to capture tasks delivered to a stream and temporarily store the tasks in the internally created model for subsequent task execution. This reduces the task delivery overhead on the host. For details about the process of using this API together with other APIs, see the description of aclmdlRICaptureBegin.
In the aclmdlRICaptureBegin API, if mode is set to a value other than ACL_MODEL_RI_CAPTURE_MODE_RELAXED, aclmdlRICaptureEnd and aclmdlRICaptureBegin must be in the same thread.
Prototype
1
|
aclError aclmdlRICaptureEnd(aclrtStream stream, aclmdlRI *modelRI) |
Parameters
|
Parameter |
Input/Output |
Description |
|---|---|---|
|
stream |
Input |
Stream. For details about the type definition, see aclrtStream. |
|
modelRI |
Output |
Running instance of the model that is used to temporarily store the captured tasks. For details about the type definition, see aclmdlRI. |
Returns
0 on success; otherwise, failure. For details, see aclError.