aclrtCmoAsync
Applicability
Product |
Supported |
|---|---|
√ |
|
√ |
|
☓ |
|
☓ |
|
☓ |
Description
Implements cache memory operations on the device. This API is asynchronous.
Prototype
aclError aclrtCmoAsync(void *src, size_t size, aclrtCmoType cmoType, aclrtStream stream)
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
src |
Input |
Address of the device memory to be operated. Only cache memory operations on the local device are supported. |
size |
Input |
Size of the device memory to be operated, in bytes. |
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. |
Returns
0 on success; else, failure. For details, see aclError.
Parent topic: Memory Management