Function: cmo_async

Applicability

Product

Supported

Atlas 350 Accelerator Card

Atlas A3 training product/Atlas A3 inference product

Atlas A2 training product/Atlas A2 inference product

Atlas training product

x

Atlas inference product

x

Atlas 200I/500 A2 inference product

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 Value

Return Value

Description

ret

Int, error code. 0 on success; else, failure.

Restrictions

The Atlas training product does not support this API.

The Atlas inference product does not support this API.

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