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
DeviceBufferPtr
Gets the device pointer to the message data buffer.
nint DeviceBufferPtr { get; }
Property Value
DeviceHeadPtr
Gets the device pointer to the head atomic counter.
nint DeviceHeadPtr { get; }
Property Value
DeviceTailPtr
Gets the device pointer to the tail atomic counter.
nint DeviceTailPtr { get; }
Property Value
IsUnifiedMemory
Gets whether unified memory is being used.
bool IsUnifiedMemory { get; }
Property Value
MessageSize
Gets the size of each message in bytes.
int MessageSize { get; }