Linux and Windows to view the current processes running python and GPU utilization

Linux

View the current python process, execute the following command in the shell:

ps -ef | grep python

Real-time view of all processes:

top

Windows

View the current python process, execute the following command in the shell:

wmic process where name="python.exe"

or

wmic process where name="python.exe" list full
wmic process where name="python.exe" list brief

View other program process, simply a change of name to python.

Nvidia graphics card GPU utilization View

Under Linux, direct execution of instructions:

nvidia-smi

Under Windows, you need to switch to nvidia-smi.exethe directory executable program C:\Program Files\NVIDIA Corporation\NVSMIunder then execute the program from the command line. Instructions are as follows:

cd C:\Program Files\NVIDIA Corporation\NVSMI
nvidia-smi.exe

schematic diagram:

Guess you like

Origin www.cnblogs.com/wuliytTaotao/p/11356363.html