【问题标题】:How can I find which process is using my GPU?如何找到正在使用我的 GPU 的进程?
【发布时间】:2020-11-27 17:48:44
【问题描述】:

nvidia-smi 显示“未找到正在运行的进程”。 lsof /dev/nvidia* 为空。但是,当我尝试执行 nvidia-smi -r 时,它会说:

# 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.

我怎样才能找到实际使用它的进程?

【问题讨论】:

    标签: linux nvidia


    【解决方案1】:

    事实证明,该消息具有误导性。只需执行modprobe -r nvidia_drm 然后重置应该按预期工作。

    【讨论】:

    • 不。 modprobe: FATAL: Module nvidia_drm is in use.
    • 在执行此操作之前,您需要使用 drm 终止进程
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2021-05-05
    • 2012-07-04
    • 2018-11-23
    • 1970-01-01
    • 1970-01-01
    • 2012-04-04
    • 2012-07-12
    相关资源
    最近更新 更多