Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What does setting two GPUs as "primary" do? #7

Open
canadaduane opened this issue Feb 5, 2023 · 1 comment
Open

What does setting two GPUs as "primary" do? #7

canadaduane opened this issue Feb 5, 2023 · 1 comment

Comments

@canadaduane
Copy link

I noticed while going through the setup that it's possible to set two (or more) GPUs as primary. What effect does this have? Is it a mistake to do this?

@ewagner12
Copy link
Owner

@canadaduane Thanks for using the script, this is an intended feature and shouldn't cause any issues. When the script is called to switch to the egpu, it goes through the file created by the setup /usr/share/all-ways-egpu/egpu-bus-ids line by line to check if the Bus ID in that line is a GPU and if it is connected. If both those are true then it will set that GPU as primary. The exact switching method depends on which method you're using, but typically if you have 2 or more GPUs connected and selected as primary then the first one selected will actually be used as primary.

The reason why this is an intended feature is that I've seen systems where the eGPU bus ID can change depending on the order it's plugged in or the thunderbolt port it's plugged into. So in that case you might want to add all the possible bus IDs for the eGPU to the file. If the bus ID doesn't exist or isn't a GPU then it should be safely ignored. I wouldn't recommend adding the internal GPU to the list of GPUs to set as primary as that would interfere with switching to the eGPU

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants