I want to know who is using which GPUs.
For example.
After nvidia-smi
+-----------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
| 0 N/A N/A 6260 C python 1203MiB |
| 0 N/A N/A 19842 C python 7735MiB |
| 1 N/A N/A 594 C python 1703MiB |
| 1 N/A N/A 6260 C python 1371MiB |
| 1 N/A N/A 19842 C python 5343MiB |
Here I want know which conda environments are using for each PIDs.
(Because for our team, we use different conda envs)
What I want is
PID : 6260 = env1
PID : 19842 = env2
...
Thank you.