aclrtMemGetAllocationPropertiesFromHandle
Applicability
Product |
Supported |
|---|---|
Atlas 350 Accelerator Card |
√ |
√ |
|
√ |
|
√ |
|
√ |
|
√ |
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