(output: &str)
| 23 | const DEFAULT_GPU_PROBE_IMAGE: &str = "nvcr.io/nvidia/base/ubuntu:noble-20251013"; |
| 24 | |
| 25 | fn 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 | |
| 34 | fn gpu_probe_image() -> String { |
| 35 | std::env::var(GPU_PROBE_IMAGE_ENV) |
no test coverage detected