GPU Monitoring on TorizonCore

Hello,

I was wondering how to monitor GPU usage on TorizonCore. I am using TorizonCore 6.1.0 with a Verdin iMX8M Plus.
I tried modifying the image using Yocto and following this: Install gputop on imx8mp verdin - Technical Support - Toradex Community
However, this did not work as intended. No gpuProfiler seems to be there and gpuinfo.sh script returns that the platform is not supported.

What is a simple way to monitor GPU usage on TorizonCore ?

Thank you for your help.

Greetings @mnano,

However, this did not work as intended. No gpuProfiler seems to be there and gpuinfo.sh script returns that the platform is not supported.

Looking at the other thread you referenced, this seems like the outcome the other customer got as well.

As an alternative GPU monitoring tool we have tried gputop. We have a proof of concept container with gputop you can try out. To do so here are the following steps:

  • First of all on TorizonCore you need to set some kernel arguments like so: sudo fw_setenv tdxargs "galcore.powerManagement=0 galcore.showArgs=1 galcore.gpuProfiler=1"
    • You’ll need to reboot after doing this to apply the new arguments. After the reboot check /proc/cmdlin to make sure these were applied.
  • Then you can run a container that has the gputop tool built in like so: docker run -it --privileged yagomellotoradex/imxgputop:0.1.0
    • This should bring up some text output with information on the GPU, you can navigate the information with the left and right arrow keys. The text output flickers whenever it refreshes but apparently this is normal.

On a side-note this gputop tool is provided and maintained by NXP. For more information on the tool and how to interpret the output you can find the repository for this tool here: imx-gputop - i.MX GPU Performance Tool

The tool is just provided as is, we can’t help much with any issues or questions with the tool since as I said it comes all from NXP.

Best Regards,
Jeremias

2 Likes