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

Function gpu_lines

e2e/rust/tests/gpu/device_selection.rs:25–32  ·  view source on GitHub ↗
(output: &str)

Source from the content-addressed store, hash-verified

23const DEFAULT_GPU_PROBE_IMAGE: &str = "nvcr.io/nvidia/base/ubuntu:noble-20251013";
24
25fn gpu_lines(output: &str) -> Vec<String> {
26 strip_ansi(output)
27 .lines()
28 .map(str::trim)
29 .filter(|line| line.starts_with("GPU "))
30 .map(ToOwned::to_owned)
31 .collect()
32}
33
34fn gpu_probe_image() -> String {
35 std::env::var(GPU_PROBE_IMAGE_ENV)

Callers 2

runtime_gpu_linesFunction · 0.85
sandbox_gpu_linesFunction · 0.85

Calls 1

strip_ansiFunction · 0.85

Tested by

no test coverage detected