Enum DataTransferType
- Namespace
- DotCompute.Abstractions.Pipelines.Enums
- Assembly
- DotCompute.Abstractions.dll
Defines the different types of data transfers that can occur during pipeline execution. Each type represents a different data movement pattern with distinct performance characteristics.
public enum DataTransferType
Fields
DeviceToDevice = 2Data transfer between different memory regions on the same device. Usually faster than host-device transfers but still has performance impact.
DeviceToHost = 1Data transfer from device (GPU/accelerator) memory to host (CPU) memory. Used for retrieving computation results from accelerator devices.
HostToDevice = 0Data transfer from host (CPU) memory to device (GPU/accelerator) memory. Typically involves copying data over PCIe or similar interconnects.
PeerToPeer = 3Data transfer between different devices using peer-to-peer communication. Enables direct device-to-device communication without involving host memory.