How can I fix the GPU frequency on Xavier?


I have a Xavier for research usage and I am wondering is there any way to get and fix its GPU frequency before launching a cuda kernel?

If yes, can I adjust it manually?


You can adjust the GPU (and CPU) frequency scaling using the “nvpmodel” script.
The script reads a config file in /etc/nvpmodel.conf
That config file is human-readable, and you are able to create new power models that set specific minimum/maximum frequencies for the GPU and CPU in there.
Also, the “nvpmodel” script itself used to be human readable (it just reads/writes the linux sysconfig/proc file system) but I don’t know if it’s still a shell script, or if it got re-written as a binary in the latest version.