解决 NVIDIA Windows has stopped this device because it has reported problems. (Code 43)

发布时间 2023-06-01 17:00:41作者: Ezharjan

场景

  1. 当跑需要使用GPU算力的一些项目时候,需要用到CUDA,确保电脑是具有独立显卡的机子,但是怎么也没法让代码中的torch跑在GPU上;
  2. 点击任务管理器查看"性能"下的GPU选项,看到运行中的并非是独立显卡而是集成显卡;
  3. 点击设备管理器,发现NVIDIA显卡左下角有感叹号,双击发现里面显示 "Windows has stopped this device because it has reported problems. (Code 43)";
  4. 确定驱动是最新的,因为已经点过更新,显示最新;

解决方案

点击设备管理器,发现NVIDIA显卡左下角有感叹号,双击并点击"回退驱动版本"(rool back driver)

结果

感叹号消失