Skip to main content

gpu_environment

Function gpu_environment 

Source
pub fn gpu_environment(
    gpu: &GpuPassthroughConfig,
) -> Vec<(&'static str, String)>
Expand description

Environment variables a GPU-enabled workload expects.

These are launch-derived from GpuPassthroughConfig and injected at exec time (and into the gVisor OCI process env). They are intentionally minimal: NVIDIA_VISIBLE_DEVICES, NVIDIA_DRIVER_CAPABILITIES, and the EGL vendor manifest pointer that lets Mesa find the bound host driver.