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

[Meta] Support for Intel, Nouveau and radeon GPUs #106

Open
Syllo opened this issue May 21, 2021 · 17 comments
Open

[Meta] Support for Intel, Nouveau and radeon GPUs #106

Syllo opened this issue May 21, 2021 · 17 comments

Comments

@Syllo
Copy link
Owner

Syllo commented May 21, 2021

I am opening this up because of this thread of discussion on the intel-sgx mailing list.

It seems that the GPU utilization for AMD and Intel will be available in future kernels, at least for the processes spawned by the user itself.

Marking this as a possible improvement once the support lands into the mainline kernel.

@thesunexpress
Copy link

Might be a better idea to just call it ' gputop ' instead then...

@BloodyIron
Copy link

Ooooo!

@el1-x
Copy link

el1-x commented Dec 30, 2021

@Syllo any update on this?

@zhuyifei1999
Copy link
Contributor

Kernel support for AMDGPU is mainline since 5.14 (torvalds/linux@8744425), which was released August 29 2021, so if you have 5.14+ (most likely 5.15 LTS) you can try out my PR above.

i915 changes are still not mainline. Though Intel people are gonna use this gputop name if we don't grab it first 😉

@Syllo Syllo changed the title Support for AMD and Intel devices [Meta] Support for Intel, Nouveau and radeon GPUs Apr 18, 2022
@Syllo
Copy link
Owner Author

Syllo commented Apr 18, 2022

I will keep this issue around as a meta-issue to centralize the information on other vendors / driver support.

@Syllo Syllo pinned this issue Apr 18, 2022
@thomas-zimmerman

This comment was marked as resolved.

@Syllo

This comment was marked as resolved.

@Syllo
Copy link
Owner Author

Syllo commented Apr 28, 2022

The Intel sysfs change has been proposed for Linux 5.19: https://lore.kernel.org/dri-devel/Ymkfy8FjsG2JrodK@tursulin-mobl2/

@servesh
Copy link

servesh commented May 23, 2022

@Syllo Would there be any interest in adding support for Intel GPUs via level zero Sysman interface (https://spec.oneapi.io/level-zero/latest/sysman/PROG.html)?

@Syllo
Copy link
Owner Author

Syllo commented Jun 11, 2022

@servesh Thanks for the link. I was not aware that oneAPI provided such library.
This seems like a good opportunity to simplify the accelerator discovery and query.
I'll see if I can make this work.

@servesh
Copy link

servesh commented Jun 13, 2022

@Syllo Sure, Iet me know once you have something that I can test and take a look. Happy to contribute to the code base as well.

@HTOgit
Copy link

HTOgit commented Oct 26, 2022

@Syllo Is it possible to show RX/TX on AMD GPUs? I'm on Linux 5.19.

@Syllo
Copy link
Owner Author

Syllo commented Oct 30, 2022

@HTOgit
The support for the pcie_bw file is in place.
However this file is empty on the system I am testing (RX 6800XT, Kernel 5.19.6).

The only explanation that I see is that the support has not been implemented in the driver:

I created a feature request for this here

@poltimmer
Copy link

Are there any plans on adding apple silicon support?

@HTOgit
Copy link

HTOgit commented Apr 12, 2023

@HTOgit The support for the pcie_bw file is in place. However this file is empty on the system I am testing (RX 6800XT, Kernel 5.19.6).

The only explanation that I see is that the support has not been implemented in the driver:

* The function that populates the `pcie_bw` file is [amdgpu_get_pcie_bw](https://elixir.bootlin.com/linux/latest/source/drivers/gpu/drm/amd/pm/amdgpu_pm.c#L1558)

* The Navi implementation seems to be in [soc21.c](https://elixir.bootlin.com/linux/latest/source/drivers/gpu/drm/amd/amdgpu/soc21.c) but the function `get_pcie_usage` that is required by `amdgpu_get_pcie_bw` is not registered in [soc21_asic_funcs](https://elixir.bootlin.com/linux/latest/source/drivers/gpu/drm/amd/amdgpu/soc21.c#L512) contrary to [soc20_asic_funcs](https://elixir.bootlin.com/linux/latest/source/drivers/gpu/drm/amd/amdgpu/soc15.c#L883) and [vega20_asic_funcs](https://elixir.bootlin.com/linux/latest/source/drivers/gpu/drm/amd/amdgpu/soc15.c#L905).

I created a feature request for this here

Sorry for not following up on the issue.

Are there any news to the topic? AMD announced to expose PCIe information to user space with Linux6.3 (https://www.phoronix.com/news/Linux-6.3-AMDGPU-New-uAPI). Would this help?

@qwertychouskie
Copy link
Contributor

https://www.phoronix.com/news/Raspberry-Pi-GPU-Stats-Report

Would be nice to have V3D supported as well.

@sin-ack
Copy link

sin-ack commented Mar 4, 2024

On kernel 6.7.4, when I run text-generation-webui, the "TYPE" field only shows "Graphic" and the GPU usage is always 0%:

image

The same program on an Nvidia GPU shows up correctly as "Compute" and I can see the GPU usage fine.

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

No branches or pull requests