ThePhD / infoware

C++ Library for pulling system and hardware information, without hitting the command line.
Creative Commons Zero v1.0 Universal
410 stars 84 forks source link

Linux OpenGL GPU detection didn't detected anything, OpenCL works #68

Closed Zaraka closed 6 months ago

Zaraka commented 1 year ago

If compiled with OpenGL support and example, the infoware_gpu_example returns this

Infoware version 0.6.0

  Properties:
    No detection methods enabled

When compile with OpenCL, the GPU is correctly detected:

Infoware version 0.6.0

  Properties:
    Device #1:
      Vendor       : AMD
      Name         : gfx1031
      RAM size     : 12868124672B
      Cache size   : 16384B
      Max frequency: 2880000000Hz

There should be at least a mention in the ReadMe that OpenCL is preferred because I noticed this issue after months of use, when I found out all my Linux devices didn't report their GPU info.

nabijaczleweli commented 1 year ago

Yep, OpenGL detexion is currently unimplemented the same as nothing at all – compare https://github.com/ThePhD/infoware/blob/575b4dbd3e7fe5044af2ca28ae7a6ebb168086d0/src/gpu/OpenGL.cpp with https://github.com/ThePhD/infoware/blob/575b4dbd3e7fe5044af2ca28ae7a6ebb168086d0/src/gpu/blank_all.cpp.

Zaraka commented 1 year ago

I see, this is unfortunate, no promises but I can try to deliver EGL implementation in the future

nabijaczleweli commented 6 months ago

Closed by https://github.com/ThePhD/infoware/pull/73