Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Number of GPUs in a system with Qt
I am new in Qt and want to find out the number of GPUs in a system. I am designing a GUI for a simulator. The simulator can work on 1 or more available GPUs in a workstation. For example if a system has 4 NVIDIA GPUs, I need to get this info (4 GPUs). Then I can run my simulator with QProcess based on the number of GPUs.
@Sahar I don't think there is anything for that in Qt. You will need to use native APIs for that.
Thanks for the reply. Would you explain more what you mean by native APIs? How can I do it by a native API while my GUI is designed in Qt?
@Sahar With native APIs I mean API provided by the operating system. Like win32 on Windows.
You can use native APIs in your Qt app as any other as long as it has C or C++ interfaces.
Win32, for example, is a C API and you can use it in your Qt app.
@jsulm thanks for your reply.