| Crates.io | ringkernel-cpu |
| lib.rs | ringkernel-cpu |
| version | 0.4.0 |
| created_at | 2025-12-03 15:45:56.568392+00 |
| updated_at | 2026-01-25 21:23:45.117568+00 |
| description | CPU backend for RingKernel - testing and fallback implementation |
| homepage | https://github.com/mivertowski/RustCompute |
| repository | https://github.com/mivertowski/RustCompute |
| max_upload_size | |
| id | 1964353 |
| size | 121,097 |
CPU backend implementation for RingKernel.
This crate provides a CPU-based implementation of the RingKernelRuntime trait. It serves two purposes:
The CPU backend implements the full RingKernel API including kernel lifecycle, message queues, HLC timestamps, and K2K messaging.
use ringkernel_cpu::CpuRuntime;
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let runtime = CpuRuntime::new().await?;
let kernel = runtime.launch("worker", LaunchOptions::default()).await?;
// Process messages...
kernel.terminate().await?;
runtime.shutdown().await?;
Ok(())
}
RingKernelRuntime implementationThe CPU backend is optimized for correctness over performance. For production workloads requiring high throughput, use the CUDA or WebGPU backends.
Typical performance characteristics:
cargo test -p ringkernel-cpu
Apache-2.0