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

Support for AMD GPUs #481

Open
ntorresalberto opened this issue Jan 27, 2022 · 0 comments
Open

Support for AMD GPUs #481

ntorresalberto opened this issue Jan 27, 2022 · 0 comments

Comments

@ntorresalberto
Copy link

ntorresalberto commented Jan 27, 2022

Hi,
I just found your repo and really appreciate the neat idea!
I'd like to know if there's any special considerations when using it with amd gpus as I can only see either intel integrated or --nvidia in the examples.

AMD is using open source drivers so a --device call should suffice AFAIK.

Another aspect I'm not sure of is that I'm also running an AMD cpu which has integrated graphics (that uses the same amdgpu driver). This means I have 2 cards exposed:

$ ls /dev/dri
by-path  card0  card1  renderD128  renderD129

So I'm writting this issue to ask what would be the correct way to use it and if it would be possible to add an example to the documentation.
Cheers!

edit: a bit more info on the setup, both GPUs are exposed to X11 (the discrete card is actually used for offloading so maybe it would be interesting to add a way to change env var DRI_PRIME when using an amd dgpu?):

$ xrandr --listproviders
Providers: number : 2
Provider 0: id: 0x55 cap: 0xf, Source Output, Sink Output, Source Offload, Sink Offload crtcs: 4 outputs: 2 associated providers: 1 name:Unknown AMD Radeon GPU @ pci:0000:07:00.0
Provider 1: id: 0x89 cap: 0xf, Source Output, Sink Output, Source Offload, Sink Offload crtcs: 6 outputs: 1 associated providers: 1 name:AMD Radeon RX 6800M @ pci:0000:03:00.0
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

1 participant