Function: cmo_async
Applicability
Product |
Supported (√/x) |
|---|---|
√ |
|
√ |
|
x |
|
x |
|
x |
Function Usage
Implements cache memory operations on the device.
Prototype
- C Prototype
1aclError aclrtCmoAsync(void *src, size_t size, aclrtCmoType cmoType, aclrtStream stream)
- Python Function
1ret = acl.rt.cmo_async(src, size, cmo_type, stream)
Parameter Description
Parameter |
Description |
|---|---|
src |
Int, address of the device memory to be operated. |
size |
Int, size of the device memory to be operated, in bytes. |
cmoType |
Int, cache memory operation type. For details, see aclrtCmoType. Currently, only ACL_RT_CMO_TYPE_PREFETCH (memory prefetch) is supported. |
stream |
Int, stream. |
Return Value Description
Return Value |
Description |
|---|---|
ret |
Int, error code: 0 on success; else, failure. |