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.exe
the directory executable program C:\Program Files\NVIDIA Corporation\NVSMI
under then execute the program from the command line. Instructions are as follows:
cd C:\Program Files\NVIDIA Corporation\NVSMI
nvidia-smi.exe
schematic diagram: