aclrtCmoAsync

Applicability

Product

Supported

Atlas 350 Accelerator Card

Atlas A3 training product/Atlas A3 inference product

Atlas A2 training product/Atlas A2 inference product

Atlas 200I/500 A2 inference product

Atlas inference product

Atlas training product

Description

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

Prototype

1
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. For details about the type definition, see aclrtCmoType.

Currently, only ACL_RT_CMO_TYPE_PREFETCH (memory prefetch) is supported.

stream

Input

Stream for executing the memory operation task. For details about the type definition, see aclrtStream.

Returns

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