aclrtMemGetAllocationPropertiesFromHandle

Applicable Products

Product

Supported

Ascend 950PR/Ascend 950DT

√

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

√

Function

Queries the memory attribute information based on the handle to 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.

It is used to query 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; otherwise, failure. For details, see aclError.

Restrictions

Atlas 200I/500 A2 inference products in Ascend RC form: This API is not supported.