开发者
资源

aclrtMemManagedLocation

1
2
3
4
typedef struct {
    aclrtMemManagedLocationType type;  // 内存所在位置
    int 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无效。