Skip to main content

gpu_exposed

Function gpu_exposed 

Source
pub(crate) fn gpu_exposed() -> bool
Expand description

A GPU is exposed to this container or machine.

Only device nodes count. /sys/class/drm is the host’s and lists cards a container may have no access to, while /dev is the container’s own; the NVIDIA character devices answer for a driver stack that was given no DRM node at all.