aclrtMemAccessDesc

1
2
3
4
5
typedef struct {
    aclrtMemAccessFlags flags;   
    aclrtMemLocation location;   
    uint8_t rsv[12];             
} aclrtMemAccessDesc;

Member

Description

flags

Memory access protection flag. For details about the type definition, see aclrtMemAccessFlags.

Currently, only ACL_RT_MEM_ACCESS_FLAGS_READWRITE is supported, indicating that the address range is readable and writable.

location

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

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.