aclrtMemAttr
aclrtStreamStatus
typedef enum aclrtStreamStatus {
ACL_STREAM_STATUS_COMPLETE = 0, // Stream上的所有任务已完成
ACL_STREAM_STATUS_NOT_READY = 1, // Stream上至少有一个任务未完成
ACL_STREAM_STATUS_RESERVED = 0xFFFF, // 预留
} aclrtStreamStatus;
父主题: 数据类型及其操作接口
aclrtMemHandleType
typedef enum aclrtMemHandleType {
ACL_MEM_HANDLE_TYPE_NONE = 0,
} aclrtMemHandleType;
父主题: 数据类型及其操作接口
aclrtMemAllocationType
typedef enum aclrtMemAllocationType {
ACL_MEM_ALLOCATION_TYPE_PINNED = 0,
} aclrtMemAllocationType;
父主题: 数据类型及其操作接口
aclrtMemAttr
typedef enum aclrtMemAttr {
ACL_DDR_MEM, // DDR内存,DDR上所有大页内存+普通内存
ACL_HBM_MEM, // HBM内存,HBM上所有大页内存+普通内存
ACL_DDR_MEM_HUGE, // DDR大页内存
ACL_DDR_MEM_NORMAL, // DDR普通内存
ACL_HBM_MEM_HUGE, // HBM大页内存
ACL_HBM_MEM_NORMAL, // HBM普通内存
ACL_DDR_MEM_P2P_HUGE, // DDR中用于Device间数据复制的大页内存
ACL_DDR_MEM_P2P_NORMAL, // DDR中用于Device间数据复制的普通内存
ACL_HBM_MEM_P2P_HUGE, // HBM中用于Device间数据复制的大页内存
ACL_HBM_MEM_P2P_NORMAL, // HBM中用于Device间数据复制的普通内存
} aclrtMemAttr;
父主题: 数据类型及其操作接口
aclrtMemLocationType
typedef enum aclrtMemLocationType {
ACL_MEM_LOCATION_TYPE_HOST = 0, // 预留,当前不支持
ACL_MEM_LOCATION_TYPE_DEVICE,
} aclrtMemLocationType;
父主题: 数据类型及其操作接口
aclrtMemLocation
typedef struct aclrtMemLocation {
uint32_t id;
aclrtMemLocationType type; // 内存所在位置
} aclrtMemLocation;
父主题: 数据类型及其操作接口
aclrtPhysicalMemProp
typedef struct aclrtPhysicalMemProp {
aclrtMemHandleType handleType;
aclrtMemAllocationType allocationType;
aclrtMemAttr memAttr;
aclrtMemLocation location;
uint64_t reserve;
} aclrtPhysicalMemProp;
| 成员名称 | 描述 |
|---|---|
| handleType | handle类型,当前仅支持ACL_MEM_HANDLE_TYPE_NONE 。 |
| allocationType | 内存分配类型,当前仅支持ACL_MEM_ALLOCATION_TYPE_PINNED。 |
| memAttr | 内存属性。 |
| location | 内存所在位置,当前仅支持ACL_MEM_LOCATION_TYPE_DEVICE(表示Device上的内存)。 |
| reserve | 预留。 |
父主题: 数据类型及其操作接口
在线提单