Class AdvancedMemoryTransferEngine
- Namespace
- DotCompute.Memory
- Assembly
- DotCompute.Memory.dll
Advanced memory transfer engine with high-performance optimizations for large datasets, concurrent transfers, streaming operations, and memory-mapped file support.
public sealed class AdvancedMemoryTransferEngine : IAsyncDisposable
- Inheritance
-
AdvancedMemoryTransferEngine
- Implements
- Inherited Members
Constructors
AdvancedMemoryTransferEngine(IUnifiedMemoryManager)
Initializes a new instance of the AdvancedMemoryTransferEngine class.
public AdvancedMemoryTransferEngine(IUnifiedMemoryManager memoryManager)
Parameters
memoryManagerIUnifiedMemoryManagerThe memory manager.
Properties
Statistics
Gets comprehensive transfer statistics.
public TransferStatistics Statistics { get; }
Property Value
Methods
DisposeAsync()
Gets dispose asynchronously.
public ValueTask DisposeAsync()
Returns
- ValueTask
The result of the operation.
ExecuteConcurrentTransfersAsync<T>(T[][], IAccelerator, ConcurrentTransferOptions?, CancellationToken)
Performs concurrent async transfers with optimized parallelism and load balancing.
public Task<ConcurrentTransferResult> ExecuteConcurrentTransfersAsync<T>(T[][] dataSets, IAccelerator accelerator, ConcurrentTransferOptions? options = null, CancellationToken cancellationToken = default) where T : unmanaged
Parameters
dataSetsT[][]acceleratorIAcceleratoroptionsConcurrentTransferOptionscancellationTokenCancellationToken
Returns
Type Parameters
T
TransferLargeDatasetAsync<T>(T[], IAccelerator, TransferOptions?, CancellationToken)
Performs a high-performance large dataset transfer with chunking and streaming support.
public Task<AdvancedTransferResult> TransferLargeDatasetAsync<T>(T[] data, IAccelerator accelerator, TransferOptions? options = null, CancellationToken cancellationToken = default) where T : unmanaged
Parameters
dataT[]acceleratorIAcceleratoroptionsTransferOptionscancellationTokenCancellationToken
Returns
Type Parameters
T