Get GPU Information on Linux C

Is there a library in C for Linux to get gpu information like Verison DigitalID BIOS ...

+4
source share
2 answers

While there is no library, and not as detailed information as the BIOS version, there is lshw , which, at least, can identify the manufacturer and model, for example

my current pc:

  *-display UNCLAIMED description: VGA compatible controller product: GeForce 8500 GT vendor: nVidia Corporation ... 

older pc

  *-display description: VGA compatible controller product: 82845G/GL[Brookdale-G]/GE Chipset Integrated Graphics Device vendor: Intel Corporation ... 
+3
source

I am not reading the correct CPU for gpu, sorry. Perhaps exec gfxinfo?

+1
source

Source: https://habr.com/ru/post/1304527/


All Articles