Documentation
¶
Overview ¶
Package gpuhost finds the host GPU the shell's GPU tests run on, under lys-lib's gputest convention: with LYS_TEST_GPU set (a check run on purpose, such as `just recorder-check`), a missing GPU fails the test; unset, the test skips where there is none (CI).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Absent ¶
Absent ends t for want of the GPU it needs: it fails when LYS_TEST_GPU asks for the GPU tests and skips otherwise, either way with the reason.
func Node ¶
Node is the host's first render node, its device number, and the Vulkan device behind it, with the Vulkan loader set up as LYS_TEST_GPU asks; the device closes with the test. No render node, or no Vulkan device behind it (CI, or Vulkan limited to lavapipe, which has no DRM node), is Absent; any other failure to open it fails.
Types ¶
This section is empty.