MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / cdi_nvidia_gpu_suffix

Function cdi_nvidia_gpu_suffix

crates/openshell-core/src/gpu.rs:301–303  ·  view source on GitHub ↗
(id: &str)

Source from the content-addressed store, hash-verified

299impl std::error::Error for CdiGpuSelectionError {}
300
301fn cdi_nvidia_gpu_suffix(id: &str) -> Option<&str> {
302 id.strip_prefix(CDI_NVIDIA_GPU_PREFIX)
303}
304
305/// Validate a compute-driver GPU request against driver-owned specific devices.
306///

Callers 1

default_device_familyMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected