---
title: aclrtMemLocation
description: "```"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/API/runtimeapi/aclcppdevg_03_1400.html
sourcePath: /source/zh/canncommercial/900/API/runtimeapi/aclcppdevg_03_1400.html
indexId: 3b4e6c6d00308174fc7114b05762481f9e1b5deb1f5084065a65b64c12ade21168
---
# aclrtMemLocation

```
typedef struct aclrtMemLocation {
    uint32_t id;                  // Device ID或NUMA（Non-Uniform Memory Access） ID
    aclrtMemLocationType type;    // 内存所在位置
} aclrtMemLocation;
```

内存所在位置请参见aclrtMemLocationType中的定义。
