Function: cmo_async

Applicable Products

Product

Supported (√/x)

Ascend 950PR/Ascend 950DT

√

Atlas A3 training products/Atlas A3 inference products

√

Atlas A2 training products/Atlas A2 inference products

√

Atlas training products

x

Atlas inference products

x

Atlas 200I/500 A2 inference products

x

Description

Implements cache memory operations on the device.

Prototype

  • C Prototype
    1
    aclError aclrtCmoAsync(void *src, size_t size, aclrtCmoType cmoType, aclrtStream stream)
    
  • Python Function
    1
    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. For details, 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. 0 on success; else, failure.

Restrictions

The Atlas training products does not support this API.

The Atlas inference products does not support this API.

The Atlas 200I/500 A2 inference products does not support this API.