I’m writing an install script for some software that will run on Xavier NX as well as Xavier AGX and the Nano. For each of these platforms I want to run the correct nvpmodel command that maximises the GPU performance for running AI programs like yolo.
For the Xavier NX I understand this would be:
nvpmodel -m 4
Whereas for the Nano I understand it is just:
nvpmodel -m 0
as well as jetson_clocks of course.
My question is how can I through commands determine either:
- Determine through commands which of the Jetson platforms the script is running on
- Determine the best nvpmodel command to maximize GPU performance for yolo like programs
Any help will be appreciated. Currently I’m just going to look at memory size, more than 4GB will be considered that I should use nvpmodel -m 4 but I’m sure that’s an approach that’s going to fail for me one day.