aclrtMemGetAllocationPropertiesFromHandle
Applicable Products
Product |
Supported |
|---|---|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
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.