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

Method selected_device_ids

crates/openshell-core/src/gpu.rs:196–211  ·  view source on GitHub ↗
(
        &self,
        count: u32,
        consume: bool,
    )

Source from the content-addressed store, hash-verified

194 }
195
196 fn selected_device_ids(
197 &self,
198 count: u32,
199 consume: bool,
200 ) -> Result<Vec<String>, CdiGpuSelectionError> {
201 let state = self
202 .state
203 .read()
204 .expect("CDI GPU selector state lock poisoned");
205 self.round_robin.selected_default_device_ids(
206 &state.inventory,
207 count,
208 consume,
209 state.allow_all_devices,
210 )
211 }
212}
213
214/// Concurrency-safe round-robin cursor for default CDI GPU selection.

Callers 2

peek_device_idsMethod · 0.80
next_device_idsMethod · 0.80

Calls 2

readMethod · 0.45

Tested by

no test coverage detected