---
title: aclrtPhysicalMemProp
description: "```"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/API/runtimeapi/aclcppdevg_03_1401.html
sourcePath: /source/zh/canncommercial/900/API/runtimeapi/aclcppdevg_03_1401.html
indexId: 7cd53eb212cb382622fbdb8b6754c3f246d3da715063897f8e3f02d4b626371b68
---
# aclrtPhysicalMemProp

```
typedef struct aclrtPhysicalMemProp {
    aclrtMemHandleType handleType;
    aclrtMemAllocationType allocationType;
    aclrtMemAttr memAttr;
    aclrtMemLocation location;
    uint64_t reserve; 
} aclrtPhysicalMemProp;
```

| 成员名称 | 描述 |
| --- | --- |
| handleType | handle类型。类型定义请参见aclrtMemHandleType。 当前仅支持ACL\_MEM\_HANDLE\_TYPE\_NONE 。 |
| allocationType | 内存分配类型。类型定义请参见aclrtMemAllocationType。 当前仅支持ACL\_MEM\_ALLOCATION\_TYPE\_PINNED，表示锁页内存。 |
| memAttr | 内存属性。类型定义请参见aclrtMemAttr。 |
| location | 内存所在位置。类型定义请参见aclrtMemLocation。 当type为ACL\_MEM\_LOCATION\_TYPE\_HOST时，id无效，固定设置为0即可。 |
| reserve | 预留。 |
