Expand description
Vision GPU dispatch facade — specialized_libs::computer_vision::gpu.
Modules§
- dispatch
- Dispatch vision ops to CPU oracle (always) or GPU when feature lands (A1/A2).
- forge_
bicubic - Bicubic (Keys a=-0.5) NCHW f32 resize via Forge WGSL on the auxiliary GPU circuit.
- forge_
resize - B2 — nearest NCHW resize via Forge on the auxiliary GPU circuit when available.
- policy
- Thermal / VRAM dynamic policy for vision workloads driven by the host ThermalGovernor.
Structs§
- Vision
Compute Report - Vision
Vram Budget - Dynamic VRAM budget for vision tiles (bytes) derived from host thermal state.
Enums§
- Thermal
Hint - Coarse thermal hint from host (maps from ThermalGovernor).
- Vision
Compute Device - Device that executed the op.
Constants§
Functions§
- avg_
pool2d_ dispatch - Avg-pool dispatch wrapping the CPU oracle.
- bicubic2d_
cpu - CPU bicubic NCHW oracle (same Keys weights as WGSL).
- bicubic2d_
wgsl - WGSL bicubic upsample. params u32:
[c, h_in, w_in, h_out, w_out, 0, 0, 0]. - conv2d_
nchw_ dispatch - Conv2d NCHW dispatch (CPU oracle; GPU when A2 Forge lands).
- max_
pool2d_ dispatch - Max-pool dispatch wrapping the CPU oracle.
- resize_
nearest_ nchw_ dispatch - Prefer GPU when
prefer_gpu: try ForgeResize2donshared_gpu, else CPU. - thermal_
allows_ gpu_ tiles - Whether GPU tile work is allowed under thermal state.
- try_
resize_ bicubic_ shared_ gpu - Attempt bicubic NCHW resize on the auxiliary GPU circuit (iGPU when present; falls back
auxiliary → primary → CPU). Returns
Err(BackendUnavailable)on a GPU-less box so the caller degrades to the CPU oracle. Never panics. - try_
resize_ nearest_ shared_ gpu - Attempt GPU resize on the process-wide shared device.