Table of Contents

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

memoryManager IUnifiedMemoryManager

The memory manager.

Properties

Statistics

Gets comprehensive transfer statistics.

public TransferStatistics Statistics { get; }

Property Value

TransferStatistics

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

dataSets T[][]
accelerator IAccelerator
options ConcurrentTransferOptions
cancellationToken CancellationToken

Returns

Task<ConcurrentTransferResult>

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

data T[]
accelerator IAccelerator
options TransferOptions
cancellationToken CancellationToken

Returns

Task<AdvancedTransferResult>

Type Parameters

T