Stochastika
Stochastika

Reputation: 305

Two GPU Cards, One Endabled Display, One Disabled Display: How to tell which GPU Card is OpenGL running on?

So I have two NVidia GPU Cards

Card A: GeForce GTX 560 Ti - Wired to Monitor A (Dell P2210)

Card B: GeForce 9800 GTX+ - Wired to Monitor B (ViewSonic VP20)

Setup: an Asus Mother Board with Intel Core i7 that supports SLI

In NVidia Control Panel, I disabled Monitor A, So I only have Monitor B for all my display purposes.

enter image description here

I ran my program, which

The idea is simple - use Card B for all the OpenGL rendering work and use Card A for all the CUDA Kernel computational work.

My Question is this:

After using GPU-Z to monitor both of the Cards, I can see that:

So how can I find out if the OpenGL rendering was indeed using Card B (whose connected Monitor B is the only one that is enabled), and had nothing to do with Card A?

And and extension to the question is:

Upvotes: 0

Views: 596

Answers (1)

datenwolf
datenwolf

Reputation: 162164

You can tell which GPU a OpenGL context is using with glGetString(GL_RENDERER);

  • Is there a way to 'force' the OpenGL rendering logic to use a particular GPU Card?

Given the functions of the context creation APIs available at the moment: No.

Upvotes: 2

Related Questions