gpuhost

package
v0.3.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 4, 2026 License: MIT Imports: 7 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

func Absent(t testing.TB, format string, args ...any)

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

func Node(t testing.TB) (path string, dev uint64, d *gpu.Device)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL