Function: cmo_async

Applicability

Product

Supported (√/x)

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

Function Usage

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)
    

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.

Restrictions

Atlas training products: This API is not supported.

Atlas inference products: This API is not supported.

Atlas 200I/500 A2 inference products: This API is not supported.