aclrtMemGetAllocationPropertiesFromHandle

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

Function

Queries the memory attribute information based on the handle of the physical memory information.

Prototype

1
aclError aclrtMemGetAllocationPropertiesFromHandle(aclrtDrvMemHandle handle, aclrtPhysicalMemProp* prop)

Parameters

Parameter

Input/Output

Description

handle

Input

Handle for storing physical memory information. For details about the type definition, see aclrtDrvMemHandle.

Queries the attributes of the physical memory allocated by the aclrtMallocPhysical API.

prop

Output

Physical memory attribute information. For details about the type definition, see aclrtPhysicalMemProp.

Returns

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

Restrictions

The Ascend RC form of Atlas 200I/500 A2 inference product does not support this API.