Function: cmo_async
Applicability
Product |
Supported |
|---|---|
Atlas 350 Accelerator Card |
√ |
√ |
|
√ |
|
x |
|
x |
|
x |
Description
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)
Parameters
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
Return Value |
Description |
|---|---|
ret |
Int, error code. 0 on success; else, failure. |
Restrictions
The
The
The