target_for_vendor

Function target_for_vendor 

Source
pub fn target_for_vendor(vendor: Option<&str>) -> Box<dyn ComputeTarget>
Expand description

2026-09-25: Resolve the ComputeTarget for a HARDWARE.toml vendor string. A missing or unrecognised vendor resolves to NvidiaTarget.

Panics if nvcc is not found, or if the vendor is AMD, Apple or Intel.