How to programmatically query iGPU load?

I’m using Jetpack 5.0.2 on Jetson AGX Orin Devkit. I need to collect GPU load / utilisation from a C program. On Jetson, I know I can use tegrastats from the terminal, or the built-in GUI. But is there a way to collect similar info programmatically in a C program?

Hi,
In C code, please read this device node:

/sys/devices/platform/gpu.0/load

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.