I found a batch query to list the stats of my GPU cards, and I wanted to assign the temperature to a variable.
This is the code for the query:
:loop
nvidia-smi --query gpu=index,name,clocks.gr,power.draw,utilization.gpu,fan.speed,temperature.gpu --format=csv,noheader
timeout /t 10 >nul
@cls
goto loop
How can I assign the temperature.gpu to a variable?
Thanks!