---
title: CommMemType
description: "内存物理位置类型。"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/programug/commopdev/hcclopdevapi_07_0006.html
sourcePath: /source/zh/canncommercial/900/programug/commopdev/hcclopdevapi_07_0006.html
indexId: eb77b3b33325ebc1b42c57155db7bb3d5219a82ef91a4ee1d2c5badaa775daf075
---
# CommMemType

#### 功能说明

内存物理位置类型。


#### 定义原型

```
typedef enum {
COMM_MEM_TYPE_INVALID = -1,   /* 无效的内存类别 */
COMM_MEM_TYPE_DEVICE = 0,     /* 设备侧内存（如NPU等） */
COMM_MEM_TYPE_HOST,           /* 主机侧内存 */
} CommMemType;
```
