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

Function os_or_kernel_reports_wsl2

crates/openshell-driver-docker/src/lib.rs:2275–2278  ·  view source on GitHub ↗
(value: &str)

Source from the content-addressed store, hash-verified

2273}
2274
2275fn os_or_kernel_reports_wsl2(value: &str) -> bool {
2276 let value = value.to_ascii_lowercase();
2277 value.contains("wsl2") || value.contains("microsoft-standard")
2278}
2279
2280fn docker_gpu_selection_status(err: CdiGpuSelectionError) -> Status {
2281 Status::failed_precondition(err.to_string())

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected