Thanks! This is where we get the static frequency at some points, right? Do you know any tools or commands used to monitor the dynamic status of CPU and GPU core frequency or utilization?
Thanks for your reply. When I run a program only using the GPU in the board, the content of /sys/class/mpgpu/utilization is always 0. Do you know the reason? And is there any other method to monitor the GPU utilization?
@Yujie_Zhang the 4.9 kernel image has no driver for the GPU to support running desktop gl applications. It’s Mali fbdev driver which has different graphic acceleration capabilities.
For desktop graphics acceleration we suggest waiting and migrating to the new 5.15 kernel image, it has all the drivers for smoother desktop, with same capabilities as 4.9 kernel.
@Electr1 I did not use desktop gl applications. I actually used the OpenCL library to invoke GPU for inference and wanted to measure the power of the board.
So, you mean that I actually used NPU for acceleration instead of GPU? But the acceleration code used in ARM-CL is for GPU, right?
The output of the command “clinfo” is attached.
Platform Name ARM Platform
Number of devices 1
Device Name Mali-G52
Device Vendor ARM
Device Vendor ID 0x72120000
Device Version OpenCL 2.0 git.c8adbf9.122c9daed32dbba4b3056f41a2f23c58
Driver Version 2.0
Device OpenCL C Version OpenCL C 2.0 git.c8adbf9.122c9daed32dbba4b3056f41a2f23c58
Device Type GPU
Device Profile FULL_PROFILE
Device Available Yes
Compiler Available Yes
Linker Available Yes
Max compute units 2
Max clock frequency 750MHz
Device Partition (core)
Max number of sub-devices 0
Supported partition types None
Supported affinity domains (n/a)
Max work item dimensions 3
Max work item sizes 384x384x384
Max work group size 384
Preferred work group size multiple 8
@Electr1 Hello, if I want to check the GPU utilization from the file /sys/bus/platform/devices/ffe40000.gpu/devfreq/ffe40000.gpu/, do you know where I could get the mainline linux OS images?
Hello @Yujie_Zhang
I was able to reproduce your issue, latest 5.15 kernel has introduced the changes to fix this issue and
it’s observable to see usage of GPU.
khadas@Khadas:~$ clpeak --compute-sp
Platform: ARM Platform
Device: Mali-G52 r0p0
Driver version : 3.0 (Linux ARM64)
Compute units : 2
Clock frequency : 5 MHz
Single-precision compute (GFLOPS)
float : 76.56
float2 : 76.45
float4 : ^C
@Electr1 Thanks for your reply. I will try the guide provided. By the way, do you know where to find the linux 5.15 OS images. I can only see the linux 4.9 and 6.1 ubuntu OS images in the download website.