aclmdlRICondHandleGetCondPtr
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 |
|---|---|
√ |
|
√ |
|
√ |
|
☓ |
|
☓ |
|
☓ |
Function
Obtains the pointer to the device memory address that stores the condition variable value in the Runtime.
To manage the condition variable value by yourself, call this API to obtain the pointer and write the value to the device memory.
Prototype
aclError aclmdlRICondHandleGetCondPtr(aclmdlRICondHandle handle, uint64_t **ptr)
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
handle |
Input |
Condition handle. For details about the type definition, see aclmdlRICondHandle. |
ptr |
Output |
Pointer to the device memory address that is used to store the condition variable value. The size of this memory is 8 bytes. The Runtime automatically frees this memory when the modelRI is destroyed or the application process exits. Therefore, it does not need to be freed by the user. |
Returns
0 on success; otherwise, failure. For details, see aclError.