Add support for GPU metrics

Open Siavash Safi requested to merge siavashs/libgtop:gpu into master

The implementation uses the exposed metrics from Linux kernel's sysfs/drm. Only the amdgpu driver currently exposes these metrics and therefore it is the only driver supported by this implementation.

The metrics added to libgtop are:

  • number of gpus
  • gpu core busy percentage
  • gpu gtt memory total & usage bytes
  • gpu visible memory total & usage bytes
  • gpu vram memory total & usage bytes

Merge request reports