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

Function has_cdi_gpu_device

e2e/rust/tests/gpu/device_selection.rs:238–242  ·  view source on GitHub ↗
(device_id: &str)

Source from the content-addressed store, hash-verified

236}
237
238fn has_cdi_gpu_device(device_id: &str) -> bool {
239 discovered_cdi_gpu_device_ids()
240 .iter()
241 .any(|discovered| discovered == device_id)
242}
243
244fn e2e_driver_config_key() -> &'static str {
245 match e2e_driver().as_deref() {

Calls 1

Tested by

no test coverage detected