aclrtMemPoolProps

1
2
3
4
5
6
7
typedef struct {
    aclrtMemAllocationType allocType;
    aclrtMemHandleType handleType;
    aclrtMemLocation location;
    size_t maxSize;
    unsigned char reserved[32];
} aclrtMemPoolProps;

Member

Description

allocType

Type of memory allocation. For details about the type definition, see aclrtMemAllocationType.

Currently, only ACL_MEM_ALLOCATION_TYPE_PINNED is supported, indicating page-locked memory.

handleType

Handle type. For details about the type definition, see aclrtMemHandleType.

location

Memory location. For details about the type definition, see aclrtMemLocation.

Currently, the type can only be set to ACL_MEM_LOCATION_TYPE_DEVICE.

maxSize

Memory pool size, in bytes.

reserved

Reserved. Currently, the value must be an all-zero string.