1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
//! CPU Backend for RingKernel
//!
//! This crate provides a CPU-based implementation of the RingKernel runtime,
//! primarily used for testing and as a fallback when no GPU is available.
//!
//! # Features
//!
//! - Full implementation of the RingKernelRuntime trait
//! - Simulates GPU execution using async tasks
//! - Supports all kernel lifecycle operations
//! - Useful for unit testing and development
//!
//! # Example
//!
//! ```ignore
//! use ringkernel_cpu::CpuRuntime;
//! use ringkernel_core::runtime::{RuntimeBuilder, Backend};
//!
//! #[tokio::main]
//! async fn main() {
//! let runtime = CpuRuntime::new().await.unwrap();
//! let kernel = runtime.launch("my_kernel", Default::default()).await.unwrap();
//! kernel.activate().await.unwrap();
//! }
//! ```
pub use CpuKernel;
pub use CpuBuffer;
pub use ;
pub use CpuRuntime;
pub use SimdOps;
/// Prelude for convenient imports.