Table of Contents

Interface IGpuRingBuffer

Namespace
DotCompute.Backends.CUDA.RingKernels
Assembly
DotCompute.Backends.CUDA.dll

Non-generic interface for GPU ring buffers, providing access to head/tail pointers.

public interface IGpuRingBuffer : IDisposable
Inherited Members
Extension Methods

Remarks

This interface allows the runtime to access GPU ring buffer pointers without knowing the generic message type at compile time.

Properties

Capacity

Gets the capacity of the ring buffer (power of 2).

int Capacity { get; }

Property Value

int

DeviceBufferPtr

Gets the device pointer to the message data buffer.

nint DeviceBufferPtr { get; }

Property Value

nint

DeviceHeadPtr

Gets the device pointer to the head atomic counter.

nint DeviceHeadPtr { get; }

Property Value

nint

DeviceTailPtr

Gets the device pointer to the tail atomic counter.

nint DeviceTailPtr { get; }

Property Value

nint

IsUnifiedMemory

Gets whether unified memory is being used.

bool IsUnifiedMemory { get; }

Property Value

bool

MessageSize

Gets the size of each message in bytes.

int MessageSize { get; }

Property Value

int