Module prelude

Module prelude 

Source
Expand description

Prelude module for convenient imports.

Re-exports§

pub use crate::RingKernel;

Modules§

align
Alignment utilities.
priority
Priority constants for convenient use.

Structs§

BlockId
Block ID within a grid (0 to grid_size - 1).
BoundedQueue
Bounded queue with blocking operations.
ControlBlock
Kernel control block (128 bytes, cache-line aligned).
CorrelationId
Correlation ID for request-response patterns.
DeviceInfo
Information about a GPU device.
DeviceStatus
Status of a device in the multi-GPU coordinator.
Dim3
3D dimension specification.
GlobalThreadId
Global thread ID across all blocks.
HlcClock
Hybrid Logical Clock for generating causally-ordered timestamps.
HlcState
Compact HLC state for GPU-side storage (16 bytes).
HlcTimestamp
Hybrid Logical Clock timestamp.
K2KBroker
K2K message broker for routing messages between kernels.
K2KBuilder
Builder for creating K2K infrastructure.
K2KConfig
Configuration for K2K messaging.
K2KEndpoint
K2K endpoint for a single kernel.
K2KMessage
A K2K message with routing information.
KernelHandle
Handle to a launched kernel.
KernelId
Unique kernel identifier.
KernelMetrics
Extended metrics for detailed monitoring.
KernelStatus
Kernel status including state and metrics.
LatencyHistogram
Histogram for latency distribution.
LaunchOptions
Options for launching a kernel.
MemoryPool
Memory pool for efficient allocation/deallocation.
MessageEnvelope
Envelope containing header and serialized payload.
MessageHeader
Fixed-size message header (256 bytes, cache-line aligned).
MessageId
Unique message identifier.
MetricsCollector
Metrics collector that aggregates metrics from multiple kernels.
MetricsSnapshot
A snapshot of metrics at a point in time.
MpscQueue
Multi-producer single-consumer lock-free queue.
MultiGpuBuilder
Builder for multi-GPU coordinator.
MultiGpuCoordinator
Multi-GPU coordinator for managing kernels across devices.
PinnedMemory
Pinned (page-locked) host memory for efficient DMA transfers.
PooledBuffer
A buffer from a memory pool.
PubSubBroker
Pub/sub message broker.
PubSubBuilder
Builder for creating pub/sub infrastructure.
Publication
A published message on a topic.
QueueStats
Statistics for a message queue.
RingContext
GPU intrinsics facade for kernel handlers.
RuntimeBuilder
Builder for creating a runtime instance.
RuntimeMetrics
Runtime-level metrics.
SpscQueue
Single-producer single-consumer lock-free ring buffer.
Subscription
A subscription to a topic.
TelemetryAlert
An alert when telemetry thresholds are exceeded.
TelemetryBuffer
Telemetry buffer (64 bytes, cache-line aligned).
TelemetryConfig
Configuration for the telemetry pipeline.
TelemetryPipeline
Real-time telemetry pipeline.
ThreadId
Thread ID within a block (0 to block_size - 1).
Topic
A topic name for pub/sub messaging.
WarpId
Warp ID within a block.

Enums§

Backend
GPU backend type.
ContextBackend
Backend-specific context implementation.
ControlError
Error codes for control block.
DeliveryStatus
Status of message delivery.
FenceScope
Memory fence scope for synchronization operations.
KernelMode
Kernel execution mode.
KernelState
Kernel lifecycle state.
LoadBalancingStrategy
Strategy for balancing load across devices.
MemoryOrder
Memory ordering for atomic operations.
Priority
Message priority levels.
QoS
Quality of Service level for message delivery.
RingKernelError
Comprehensive error type for RingKernel operations.
TelemetryEvent
A telemetry event that is broadcast to subscribers.

Constants§

MAX_CLOCK_SKEW_MS
Maximum allowed clock skew in milliseconds.

Traits§

DeviceMemory
Trait for device memory allocation.
GpuBuffer
Trait for GPU buffer operations.
KernelHandleInner
Inner trait for kernel handle implementation.
MessageQueue
Trait for message queue implementations.
RingKernelRuntime
Backend-agnostic runtime trait for kernel management.
RingMessage
Trait for types that can be sent as kernel messages.

Functions§

create_pool
Create a shared memory pool.

Type Aliases§

BoxFuture
Type-erased future for async operations.
Result
Result type alias for RingKernel operations.
SharedMemoryPool
Shared memory pool that can be cloned.

Attribute Macros§

ring_kernel
Attribute macro for defining ring kernel handlers.
stencil_kernel
Attribute macro for defining stencil kernels that transpile to CUDA.

Derive Macros§

GpuType
Derive macro for GPU-compatible types.
RingMessage
Derive macro for implementing the RingMessage trait.