aclrtMemManagedLocationType

1
2
3
4
5
6
7
typedef enum aclrtMemManagedLocationType {
    ACL_MEM_LOCATIONTYPE_INVALID = 0,
    ACL_MEM_LOCATIONTYPE_DEVICE,
    ACL_MEM_LOCATIONTYPE_HOST,
    ACL_MEM_LOCATIONTYPE_HOST_NUMA,
    ACL_MEM_LOCATIONTYPE_HOST_NUMA_CURRENT,
} aclrtMemManagedLocationType;
Table 1 Enumerations

Enumeration

Description

ACL_MEM_LOCATIONTYPE_INVALID

Invalid location.

ACL_MEM_LOCATIONTYPE_DEVICE

The location is on the device.

ACL_MEM_LOCATIONTYPE_HOST

The location is on the host.

ACL_MEM_LOCATIONTYPE_HOST_NUMA

The location is on the host NUMA node. When setting this type of location, you need to pass a proper NUMA ID.

ACL_MEM_LOCATIONTYPE_HOST_NUMA_CURRENT

The location is on the NUMA node associated with the current thread. When setting this type of location, the ID passed by the user is invalid. Instead, the API automatically obtains the ID of the NUMA node where the current thread is located and uses it.