I have finished a project with opengl functions , which display 3D graph. Then I plug a Nvidia gpu into my PC. Since the project can be running without Nvidia gpu, how can I control the opengl functions are running on the resource of the Nvidia gpu rather than origial cpu?
Asked
Active
Viewed 764 times
1 Answers
2
I'm afraid there's no built-in OpenGL functions for this very purpose. However, some extensions would do. WGL_NV_gpu_affinity
shall work for NVIDIA cards.
Also see Select a graphic device in windows + opengl and Is there a way to programmatically select the rendering GPU in a multi-GPU environment? (Windows)
-
Hi,thanks for your answer! The functions that I wang to call is just the basic functions of opengl, such as glVertex ,etc. How can I make sure that those functions are running on Nvidia GPU? – mengyang Feb 19 '14 at 12:17
-
1@mengyang I guess I didn't make it clear.. There's no guarantee that which graphics card is used to render on, you shall use things like `WGL_NV_affinity` to explicitly set it. – starrify Feb 19 '14 at 12:38