Table of Contents

Interface IUnifiedMemory

Namespace
Orleans.GpuBridge.Abstractions.Providers.Memory.Interfaces
Assembly
Orleans.GpuBridge.Abstractions.dll

Unified memory accessible from both host and device

public interface IUnifiedMemory : IDeviceMemory, IDisposable
Inherited Members

Properties

HostPointer

Host pointer to the unified memory

nint HostPointer { get; }

Property Value

nint

Methods

AdviseAsync(MemoryAdvice, IComputeDevice?, CancellationToken)

Advises the runtime about memory usage patterns

Task AdviseAsync(MemoryAdvice advice, IComputeDevice? device = null, CancellationToken cancellationToken = default)

Parameters

advice MemoryAdvice
device IComputeDevice
cancellationToken CancellationToken

Returns

Task

AsHostSpan()

Gets a span view of the memory from the host

Span<byte> AsHostSpan()

Returns

Span<byte>

PrefetchAsync(IComputeDevice, CancellationToken)

Prefetches the memory to a specific device

Task PrefetchAsync(IComputeDevice device, CancellationToken cancellationToken = default)

Parameters

device IComputeDevice
cancellationToken CancellationToken

Returns

Task