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

Function host_discovered_devices_array

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

Source from the content-addressed store, hash-verified

53}
54
55fn host_discovered_devices_array(info: &Value) -> Option<&Vec<Value>> {
56 info.get("Host")
57 .or_else(|| info.get("host"))
58 .and_then(discovered_devices_array)
59}
60
61fn collect_cdi_gpu_device_ids_from_devices(devices: &[Value], device_ids: &mut Vec<String>) {
62 for device in devices {

Callers 1

parse_cdi_gpu_device_idsFunction · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected