Function: cmo_async
Applicable Products
- Ascend 950PR&950DT products: Supported
- Atlas A3 products: Supported
- Atlas A2 products: Supported
- Atlas 200I/500 A2 inference products: Not supported
- Atlas inference products: Not supported
- Atlas training products: Not supported
Function
Implements cache memory operations on the device.
Prototype
-
C Prototype
aclError aclrtCmoAsync(void *src, size_t size, aclrtCmoType cmoType, aclrtStream stream) -
Python Function
ret = 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. See aclrtCmoType. Currently, only ACL_RT_CMO_TYPE_PREFETCH (memory prefetch) is supported. |
| stream | Int, stream. |
Return Values
| Return Value | Description |
|---|---|
| ret | Int, error code. If 0 is returned, the operation is successful. If other values are returned, the operation fails. |