pub fn parse_sm_arch(arch: &str) -> Option<SmArch>Expand description
2026-09-25: Parse an NVIDIA sm_XY[a|f] architecture string.
Returns None for anything that is not an NVIDIA SM arch: gfx1151,
metal3.1, fewer than two digits, or a non-digit. None is the “not an
NVIDIA target” marker.
The last digit is the minor version and the rest is the major
(sm_90 = 9.0, sm_100 = 10.0, sm_121 = 12.1).