aclrtMemPoolProps
1 2 3 4 5 6 7 | typedef struct { aclrtMemAllocationType allocType; aclrtMemHandleType handleType; aclrtMemLocation location; size_t maxSize; unsigned char reserved[32]; } aclrtMemPoolProps; |
成员名称 |
描述 |
|---|---|
allocationType |
内存分配类型。类型定义请参见aclrtMemAllocationType。 当前仅支持ACL_MEM_ALLOCATION_TYPE_PINNED,表示锁页内存。 |
handleType |
handle类型。类型定义请参见aclrtMemHandleType。 |
location |
内存所在位置。类型定义请参见aclrtMemLocation。 type当前仅支持设置为ACL_MEM_LOCATION_TYPE_DEVICE。 |
maxSize |
内存池大小,单位Byte。 |
reserved |
保留字段,当前必须为全0字符串。 |
父主题: 数据类型及其操作接口