Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
How can I specify which GPU to use?
I have a system with multiple graphics cards installed and I need to assign my application to use a specific card so that it does not interfere with the other ones being used by other applications. Is there a way to do this in Qt?
gorbatschow last edited by
What is the target operating system ?
For right now, it's Linux. I might add Windows in the future.
agocs last edited by
There is no support for this in Qt since it is highly platform and vendor specific.
Thank you for the replies.
Would this be possible using OpenGL instead?
It's really more of a problem with creating a context on appropriate GPU rather than a specific API.
As such there is nothing in pure OpenGL that handles this. This stuff is usually handled by extensions like GLX and WGL.
These are some vendor specific extensions that I know of : "GLX_AMD_gpu_association":http://www.opengl.org/registry/specs/AMD/glx_gpu_association.txt
I don't know of anything similar from NVidia for Linux but there might be. Look around. I haven't used any of these though so I'm not sure how widespread and stable they are.