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
Methods
AdviseAsync(MemoryAdvice, IComputeDevice?, CancellationToken)
Advises the runtime about memory usage patterns
Task AdviseAsync(MemoryAdvice advice, IComputeDevice? device = null, CancellationToken cancellationToken = default)
Parameters
adviceMemoryAdvicedeviceIComputeDevicecancellationTokenCancellationToken
Returns
AsHostSpan()
Gets a span view of the memory from the host
Span<byte> AsHostSpan()
Returns
PrefetchAsync(IComputeDevice, CancellationToken)
Prefetches the memory to a specific device
Task PrefetchAsync(IComputeDevice device, CancellationToken cancellationToken = default)
Parameters
deviceIComputeDevicecancellationTokenCancellationToken