Hello,
Packaging gputil with Pyinstaller (console=False [pythonw.exe]) causes a pop-up window to open every time I want to access GPU stats.
I could suppress it by adding creationflags = subprocess.CREATE_NO_WINDOW
in the Popen command.
|
p = Popen([nvidia_smi,"--query-gpu=index,uuid,utilization.gpu,memory.total,memory.used,memory.free,driver_version,name,gpu_serial,display_active,display_mode,temperature.gpu", "--format=csv,noheader,nounits"], stdout=PIPE) |
Maybe it's of interest to future users, so I will leave it here :)