Add support for the Raspberry Pi VideoCore GPU.
fix https://github.com/Syllo/nvtop/issues/306
Supports GPU frequency, temperature, utilization, per-process utilization, GPU memory usage, and H264 decoding utilization.
Test on Raspberry Pi 4B
ArchLinux Arm aarch64 with linux-rpi kernel
Hello,
Fantastic addition! I'll try to go through the changes this weekend.
@xiaohuirong is there some special way one must build this? I'm getting errors
[100%] Linking C executable nvtop
/usr/bin/ld: CMakeFiles/nvtop.dir/extract_gpuinfo_v3d.c.o: in function `gpuinfo_v3d_refresh_dynamic_info':
extract_gpuinfo_v3d.c:(.text+0x1b8): undefined reference to `nvtop_device_get_syspath'
/usr/bin/ld: extract_gpuinfo_v3d.c:(.text+0x1c4): undefined reference to `nvtop_device_new_from_syspath'
/usr/bin/ld: extract_gpuinfo_v3d.c:(.text+0x1ec): undefined reference to `nvtop_device_unref'
/usr/bin/ld: CMakeFiles/nvtop.dir/extract_gpuinfo_v3d.c.o: in function `gpuinfo_v3d_get_device_handles':
extract_gpuinfo_v3d.c:(.text+0x260): undefined reference to `nvtop_enumerator_new'
Full problem in here: https://github.com/Syllo/nvtop/discussions/326
@xiaohuirong hi! do you have any idea if it works on a raspberry pi 5?
i manually compiled it but it doesnt appear to be working:
vcgencmd seems to be reporting the right thing:
What's your kernel version? The required kernel version is >= 6.12. For older kernels such as version 6.6, you can build the project from a commit before the changes introduced in this pull request.
@xiaohuirong I'm using 6.12.22-v8-16k+
Let's track this in: https://github.com/Syllo/nvtop/issues/372