sebhildebrandt / systeminformation

System Information Library for Node.JS
MIT License
2.72k stars 309 forks source link

[Feature Request] Use vulkaninfo or glxinfo over clinfo on linux. #786

Open Etaash-mathamsetty opened 1 year ago

Etaash-mathamsetty commented 1 year ago

Describe the bug Most users won't have compute drivers installed, since there is no use for them on most systems, this leads to gpu info not being reported. On the other hand, vulkan is used by almost everyone under linux, and returns accurate/good information about the current GPU, so why not use vulkaninfo/glxinfo instead? (vulkaninfo can even output a json!)

it wasn't a good idea to use clinfo, most people don't have it installed, it reports incorrect information in a lot of cases, vulkaninfo/glxinfo are simply better.

Nocccer commented 1 year ago

There is currently a bug with clinfo where it infinit hangs because of new changes in opencl if i understood the problem correctly.

Maybe this is a great fallback if clinfo hangs. Probably a timeout for clinfo is good too