aclrtMemcpyKind
typedef enum aclrtMemcpyKind {
ACL_MEMCPY_HOST_TO_HOST, // Memory copy within the host side
ACL_MEMCPY_HOST_TO_DEVICE, // Memory copy from host to device
ACL_MEMCPY_DEVICE_TO_HOST, // Memory copy from device to 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 host to 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 side
ACL_MEMCPY_INTER_DEVICE_TO_DEVICE, // Memory copy between two devices
} aclrtMemcpyKind;
Parent topic: Data Types and Operation APIs