onkoe / ghr

A Global Hardware Report (mostly to help me find laptops that are cool)
Mozilla Public License 2.0
1 stars 0 forks source link

GPU information #2

Open onkoe opened 2 weeks ago

onkoe commented 2 weeks ago

It is surprisingly difficult to get a reasonable amount of identifying/status information from a GPU, especially across platforms.

First of all, most of the major graphics protocols don't provide this kind of info, except some easy parts, like vendor and model identifiers. Looking past these, Vulkan only provides small bits of info. For example, you can get a little peek into the VRAM count by checking a device's memory heap(s). However, this is fallible, and integrated GPUs seem to include system memory in this count.

As such, we can't really use a graphics API to get this information - we need to check manually for each GPu, for each platform.

Here are descriptions on doing just that...

Linux

NVIDIA

Per driver...

AMD

Others

Spare me

...I will work on these later.

onkoe commented 1 week ago

in general, ARM GPU support is looking difficult. on Raspberry Pi, you can parse vcgencmd, but even that has limited information.

consider talking with kernel maintainers to implement sysfs functionality for these drivers?

onkoe commented 1 week ago

also, research nouveau resources. how do other collectors do it?