aclrtCmoAsyncWithDesc
Applicability
Product |
Supported |
|---|---|
√ |
|
√ |
|
☓ |
|
☓ |
|
☓ |
Description
Uses a memory descriptor (level-2 pointer mode) to operate the cache memory on the device. This API is asynchronous.
Prototype
aclError aclrtCmoAsyncWithDesc(void *cmoDesc, aclrtCmoType cmoType, aclrtStream stream, const void *reserve)
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
cmoDesc |
Input |
Pointer to the address of the cache memory descriptor. This address is the memory address on the device. Call aclrtCmoSetDesc to set the memory descriptor, and then pass the pointer of the memory descriptor address as an input parameter. |
cmoType |
Input |
Cache memory operation type. Currently, only ACL_RT_CMO_TYPE_PREFETCH (memory prefetch) is supported. |
stream |
Input |
Stream for executing the memory operation task. |
reserve |
Input |
Reserved. Currently, the value is fixed to NULL. |
Returns
0 on success; else, failure. For details, see aclError.