Dispatcher
darkforest-core
module: dispatcher
since v0.1.0-alpha
Signature
rust
pub struct Dispatcher { kernel_table: [KernelFn; 64] }
Overview
Dynamic op dispatch registry routing tensor operations between CPU SIMD kernels and CUDA stream kernels.
Invariants & Design Principles
- Invariant: Zero dynamic dispatch overhead via direct function pointer lookup table.
Usage Example
rust
Dispatcher::global().dispatch_binary(OpCode::Matmul, &a, &b);