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

Function discovered_devices_array

e2e/rust/tests/gpu/device_selection.rs:49–53  ·  view source on GitHub ↗
(info: &Value)

Source from the content-addressed store, hash-verified

47}
48
49fn discovered_devices_array(info: &Value) -> Option<&Vec<Value>> {
50 info.get("DiscoveredDevices")
51 .or_else(|| info.get("discoveredDevices"))
52 .and_then(Value::as_array)
53}
54
55fn host_discovered_devices_array(info: &Value) -> Option<&Vec<Value>> {
56 info.get("Host")

Callers 1

parse_cdi_gpu_device_idsFunction · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected