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

Function docker_cdi_gpu_inventory

crates/openshell-driver-docker/src/lib.rs:2254–2263  ·  view source on GitHub ↗
(info: &SystemInfo)

Source from the content-addressed store, hash-verified

2252}
2253
2254fn docker_cdi_gpu_inventory(info: &SystemInfo) -> CdiGpuInventory {
2255 CdiGpuInventory::new(
2256 info.discovered_devices
2257 .as_deref()
2258 .unwrap_or_default()
2259 .iter()
2260 .filter(|device| device.source.as_deref() == Some("cdi"))
2261 .filter_map(|device| device.id.as_deref()),
2262 )
2263}
2264
2265fn docker_info_reports_wsl2(info: &SystemInfo) -> bool {
2266 [

Callers 2

newMethod · 0.85
refresh_gpu_inventoryMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected