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

Function gpu_probe_image

e2e/rust/tests/gpu/device_selection.rs:34–40  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

32}
33
34fn gpu_probe_image() -> String {
35 std::env::var(GPU_PROBE_IMAGE_ENV)
36 .ok()
37 .map(|value| value.trim().to_string())
38 .filter(|value| !value.is_empty())
39 .unwrap_or_else(|| DEFAULT_GPU_PROBE_IMAGE.to_string())
40}
41
42fn object_string<'a>(object: &'a Map<String, Value>, key: &str) -> Option<&'a str> {
43 object

Callers 1

runtime_gpu_linesFunction · 0.85

Calls 1

is_emptyMethod · 0.45

Tested by

no test coverage detected