How can I start a program/process with a specific GPU?

AxoBeau 1 Reputation point
2020-08-19T09:31:36.423+00:00

I need a reliable way to ensure a program will always run on the appropriate GPU.

The systems being used will have two dedicated GPUs, one that will be connected to a monitor (an AMD GPU) and one that will not (an Nvidia GPU).

There is a specific program that needs to run on the Nvidia GPU, whereas all else runs on the AMD GPU, and the physical display connection can't be changed during operation, so simply changing the monitor to the Nvidia GPU, starting the process, and then switching back unfortunately isn't an option.

These are desktop systems so laptop solutions that have been suggested before like Nvidia Optimus don't work, and since neither GPU is an integrated GPU Windows doesn't recognise them as different GPUs in "settings>system>display>graphics settings", so sadly the easiest available method also doesn't work.

This is frustrating as I know Windows is capable of differentiating between the two GPUs, but finding a way of getting it to use a specific GPU for a specific task has been driving me insane!

Any insight would be HUGELY appreciated!!

Thankyou in advance to anyone who gives figuring this out a shot - it seems to be a tricky one!

Apologies if I've used the wrong tag or should add other tags, this is my first time posting a question at this site.

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
11,200 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Joy Qiao 4,886 Reputation points Microsoft Employee
    2020-08-20T02:45:41.187+00:00

    Hi,

    Thank you for coming Microsoft Q&A forum.

    I noticed you have tried different measures on this issue, as you know, Windows 10 graphics settings does not seem to let you force it to use a secondary non-integrated GPU, so according to your GPU type, it is not available to achieve your desire.

    But we are not sure if it is available to achieve through script such as disable another GPU when you run this program, and then enable that one after program thread ended. For details about script, we recommend to create a new thread on Script forum.

    If any other customers have any hints about this issue, please also provide here.

    Bests,