You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I get the process pid in docker through nvmlDeviceGetComputeRunningProcesses(), which is the process pid on the host machine, but this is different from the process pid in docker. Is there a way to get the process pid in docker instead of the pid on the host machine?
The text was updated successfully, but these errors were encountered:
xianjiez
changed the title
How to get the pid of the current program?
How to get the pid on GPU of the current program?
May 20, 2021
You would need to run docker with the option --pid host to be able to get the process id, as the host machine and container must share PID space. There are caveats when the host and docker machine OS differ.
I get the process pid in docker through nvmlDeviceGetComputeRunningProcesses(), which is the process pid on the host machine, but this is different from the process pid in docker. Is there a way to get the process pid in docker instead of the pid on the host machine?
The text was updated successfully, but these errors were encountered: