简体   繁体   中英

How can I find which process is using my GPU?

nvidia-smi displays "No running processes found". lsof /dev/nvidia* is empty. However, when I try to do nvidia-smi -r it says:

# nvidia-smi -r -i 0
GPU 00000000:xxxxxx is currently in use by another process.

1 device is currently being used by one or more other processes (e.g., Fabric Manager, CUDA application, graphics application such as an X server, or a monitoring application such as another instance of nvidia-smi). Please first kill all processes using this device and all compute applications running in the system.

How can I find which process is actually using it?

It turns out the message is kind of misleading. Just do modprobe -r nvidia_drm then the reset should work as expected.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM