aclrtMemcpyKind

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
typedef enum aclrtMemcpyKind {
    ACL_MEMCPY_HOST_TO_HOST,     // Memory copy within the host
    ACL_MEMCPY_HOST_TO_DEVICE,   // Memory copy from the host to the device
    ACL_MEMCPY_DEVICE_TO_HOST,   // Memory copy from the device to the host
    ACL_MEMCPY_DEVICE_TO_DEVICE, // Memory copy within a device or between two devices
    ACL_MEMCPY_DEFAULT,          // The system determines the copy direction based on the source and destination memory addresses.
    ACL_MEMCPY_HOST_TO_BUF_TO_DEVICE,   // Memory copy from the host to the device. The host memory is stored in the buffer managed by Runtime. After the memory copy API is successfully called, the host memory can be released.
    ACL_MEMCPY_INNER_DEVICE_TO_DEVICE,  // Memory copy within the device
    ACL_MEMCPY_INTER_DEVICE_TO_DEVICE,  // Memory copy between two devices
} aclrtMemcpyKind;