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

Method refresh_gpu_inventory

crates/openshell-driver-docker/src/lib.rs:585–596  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

583 }
584
585 async fn refresh_gpu_inventory(&self) -> Result<(), Status> {
586 let info = self
587 .docker
588 .info()
589 .await
590 .map_err(|err| internal_status("query Docker daemon info", err))?;
591 self.gpu_selector.refresh(
592 docker_cdi_gpu_inventory(&info),
593 self.config.allow_all_default_gpu,
594 );
595 Ok(())
596 }
597
598 async fn resolve_gpu_cdi_devices(
599 &self,

Callers 1

Calls 3

internal_statusFunction · 0.85
docker_cdi_gpu_inventoryFunction · 0.85
refreshMethod · 0.80

Tested by

no test coverage detected