aclrtCmoAsync

Applicability

Product

Supported

Atlas A3 training products/Atlas A3 inference products

Atlas A2 training products/Atlas A2 inference products

Atlas 200I/500 A2 inference products

Atlas inference products

Atlas training products

Description

Implements cache memory operations on the device. This API is asynchronous.

Prototype

aclError aclrtCmoAsync(void *src, size_t size, aclrtCmoType cmoType, aclrtStream stream)

Parameters

Parameter

Input/Output

Description

src

Input

Address of the device memory to be operated.

Only cache memory operations on the local device are supported.

size

Input

Size of the device memory to be operated, in bytes.

cmoType

Input

Cache memory operation type.

Currently, only ACL_RT_CMO_TYPE_PREFETCH (memory prefetch) is supported.

stream

Input

Stream for executing the memory operation task.

Returns

0 on success; else, failure. For details, see aclError.