Module prelude

Module prelude 

Source
Expand description

Prelude module for convenient imports.

Import everything you need with:

use rustkernel::prelude::*;

Structs§

CorrelationId
Correlation ID for request-response pairing.
DevelopmentLicense
Development license that allows all domains (no validation).
EchoKernel
Simple echo kernel for latency testing.
FanOutTracker
Tracks fan-out broadcast destinations and delivery status.
HlcTimestamp
Hybrid Logical Clock timestamp.
IterativeConvergenceSummary
Summary of iterative algorithm convergence.
IterativeState
State for tracking iterative algorithm convergence.
K2KBroker
K2K message broker for routing messages between kernels.
K2KEndpoint
K2K endpoint for a single kernel.
K2KWorkerResult
Result from a worker in a scatter-gather operation.
KernelHandle
Handle to a launched kernel.
KernelId
Unique kernel identifier.
KernelMetadata
Kernel metadata (mirrors C# [GpuKernel] attribute).
KernelRegistry
Central registry for all kernels.
KernelResult
Generic result wrapper for kernel responses.
LaunchOptions
Options for launching a kernel.
License
License configuration.
MatMul
Matrix multiplication kernel.
MessageId
Unique message identifier.
PipelineTracker
Tracks progress through a multi-stage pipeline.
ReduceSum
Sum reduction kernel.
RegistryStats
Registry statistics.
RingContext
GPU intrinsics facade for kernel handlers.
SLOValidator
SLO validator for kernel performance.
ScatterGatherState
Tracks scatter-gather operation state.
VectorAdd
Simple vector addition kernel.

Enums§

Domain
Business/analytical domain for kernel categorization.
K2KControlMessage
Control messages for K2K coordination between kernels.
K2KPriority
Priority levels for K2K messages.
KernelError
Errors that can occur during kernel operations.
KernelMode
Kernel execution mode.
KernelState
Kernel lifecycle state.
LicenseError
License validation errors.
SLOResult
SLO validation result.

Traits§

BatchKernel
Trait for batch (CPU-orchestrated) kernels.
BatchMessage
Trait for batch kernel messages (CPU-orchestrated execution).
GpuKernel
Base trait for all GPU kernels.
IterativeKernel
Trait for iterative (multi-pass) kernels.
KernelRequest
Base trait for kernel request messages.
KernelResponse
Base trait for kernel response messages.
LicenseValidator
License validator trait.
RingKernelHandler
Trait for ring (persistent actor) kernels.
RingMessage
Trait for types that can be sent as kernel messages.

Functions§

kernel_id_to_u64
Convert a KernelId to a u64 hash for message envelope addressing.

Type Aliases§

Result
Result type alias using KernelError.

Attribute Macros§

gpu_kernel
Define a GPU kernel with metadata.
kernel_state
Attribute for marking kernel state types.

Derive Macros§

KernelMessage
Derive macro for kernel messages.