Nvidia: чтобы непрерывно обновлять вывод nvidia-smi, вы можете использовать nvidia-smi --loop=1 (интервал обновления 1 секунду) или nvidia-smi --loop-ms=1000 (интервал обновления 1000 миллисекунд).
-l SEC, --loop=SEC
Continuously report query data at the specified interval, rather than
the default of just once. The application will sleep in-between
queries. Note that on Linux ECC error or XID error events will print
out during the sleep period if the -x flag was not specified. Pressing
Ctrl+C at any time will abort the loop, which will otherwise run indef‐
initely. If no argument is specified for the -l form a default inter‐
val of 5 seconds is used.
-lms ms, --loop-ms=ms
Same as -l,--loop but in milliseconds.
FYI:
Как регистрировать нагрузку GPU? Использование графического процессора N / A при использовании nvidia-smi