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

Method peek_device_ids

crates/openshell-core/src/gpu.rs:187–189  ·  view source on GitHub ↗

Return the current default device IDs without advancing the cursor.

(&self, count: u32)

Source from the content-addressed store, hash-verified

185
186 /// Return the current default device IDs without advancing the cursor.
187 pub fn peek_device_ids(&self, count: u32) -> Result<Vec<String>, CdiGpuSelectionError> {
188 self.selected_device_ids(count, false)
189 }
190
191 /// Return the next default device IDs and advance the cursor.
192 pub fn next_device_ids(&self, count: u32) -> Result<Vec<String>, CdiGpuSelectionError> {

Callers

nothing calls this directly

Calls 1

selected_device_idsMethod · 0.80

Tested by

no test coverage detected