Skip to content

about: Support multiple GPUs and print GPU memory size

Ghost User requested to merge (removed):gpu-mem into master

The GPUs are detected using OpenGL and then using GUdev. If a GPU is detected via OpenGL and also via GUdev, the two pieces of information are merged into one GPU description.

This patch adds GUdev as an optional dependency to the configuration file.

The memory size is obtained via the following OpenGL extensions:

  • GLX_MESA_query_renderer (primary)
  • GL_NVX_gpu_memory_info (secondary)

Examples:

  • GeForce® GTX 750
  • Intel® HD Graphics 4000
  • Intel® HD Graphics (1.5 GiB)
  • llvmpipe (LLVM 10.0.1, 128 bits) (7.7 GiB)
  • Radeon™ RX 5500 XT (8.0 GiB)

See also: #27 (closed)

Please merge. Thanks.

Edited by Ghost User

Merge request reports