target_hint

Function target_hint 

Source
pub fn target_hint(device_cc: (u32, u32)) -> Option<&'static str>
Expand description

2026-09-25: Which kernels/<hw>/ target ships for a device compute capability, so the mismatch message can say what to rebuild. None means no target ships for that capability.

The table is hand-written although each NVIDIA kernels/<hw>/HARDWARE.toml declares its compute_capability: metrale-core has no TOML parser dependency. crates/kernels/tests/target_hints.rs keeps the two in step: it asserts that every vendor = "nvidia" HARDWARE.toml’s capability maps back to its own directory, and that every name returned here is a directory.