aclrtMemAccessDesc
typedef struct {
aclrtMemAccessFlags flags;
aclrtMemLocation location;
uint8_t rsv[12];
} aclrtMemAccessDesc;
Member |
Description |
|---|---|
flags |
Memory access protection flag. Currently, only ACL_RT_MEM_ACCESS_FLAGS_READWRITE is supported, indicating that the address range is readable and writable. |
location |
Memory location. Currently, aclrtMemLocation.type can only be set to ACL_MEM_LOCATION_TYPE_HOST or ACL_MEM_LOCATION_TYPE_DEVICE. If aclrtMemLocation.type is set to ACL_MEM_LOCATION_TYPE_HOST, aclrtMemLocation.id is invalid and can be fixed at 0. |
rsv |
Reserved. The value is fixed at 0. |
Parent topic: Data Types and Operation APIs