Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Question How to call different shaders on multiple GPUs on the same device?

Discussion in 'Shaders' started by Goof1, Jun 5, 2023.

  1. Goof1

    Goof1

    Joined:
    Jan 22, 2022
    Posts:
    4
    Hello, I have a big load on the server in my project, which has a lot of compute shaders, the question is how to run these compute shaders on multiple GPUs, in my case 2 GPUs 1080ti. Without Nvlink, etc!!!
     
  2. burningmime

    burningmime

    Joined:
    Jan 25, 2014
    Posts:
    845
    AFAIK, Unity does not support multiple graphics devices in a single process. You could launch 2 processes, select a graphics devices for each using command line arguments, and use some IPC solution to communicate between them.

    The specific ommand line argument is
    -force-device-index
    (eg
    -force-device-index 0
    on one process and
    -force-device-index 1
    on the other process).
     
  3. Goof1

    Goof1

    Joined:
    Jan 22, 2022
    Posts:
    4
    Thank you, I think I know how to solve the problem, i can create several versions of my game and connect them via net code, I need to experiment with this