Expand description
2026-09-25: A build-time kernel compilation target: the Vendor parsed from HARDWARE.toml, the ComputeTarget trait, and its nvcc implementation.
No code outside this file uses the module. The kernel build script declares
its own ComputeTarget trait and vendor implementations in
crates/kernels/build_target.rs. The runtime side is the GpuBackend trait
in metrale-gpu-runtime.
Owner: core. Invariants: none beyond the types.
Structs§
- Nvidia
Target - 2026-09-25: NVIDIA compilation target:
.cuto PTX withnvcc --ptx -arch=<arch> -O3.
Enums§
- Vendor
- 2026-09-25: Vendor identifier parsed from a
HARDWARE.tomlvendorstring.
Traits§
- Compute
Target - 2026-09-25: How one vendor compiles kernel source files into loadable
modules.
NvidiaTargetis the only implementation.
Functions§
- target_
for_ vendor - 2026-09-25: Resolve the
ComputeTargetfor aHARDWARE.tomlvendor string. A missing or unrecognised vendor resolves toNvidiaTarget.