---
title: aclrtMemManagedLocation
description: "```"
url: https://www.hiascend.com/document/detail/zh/CANNCommunityEdition/latest/API/runtimeapi/aclcppdevg_03_2170.html
sourcePath: /source/zh/CANNCommunityEdition/920beta1/API/runtimeapi/aclcppdevg_03_2170.html
indexId: 8d34c778270f14733ef1e4ffc751e5846bc0d83c1b1d4def901583f323b65b8179
---
# aclrtMemManagedLocation

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

当type为ACL_MEM_LOCATIONTYPE_INVALID、ACL_MEM_LOCATIONTYPE_HOST、ACL_MEM_LOCATIONTYPE_HOST_NUMA_CURRENT时，id无效。
