WSL2 Ubuntu下检测 不到GPU驱动,无法使用GPU

环境:

Win10专业版19041

WSL2

Ubuntu-22.04

问题描述:

WSL2 Ubuntu下检测 不到GPU驱动,无法使用GPU

nvidia-smi

SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.
root@02207261848:~# nvidia-smi
Failed to initialize NVML: GPU access blocked by the operating system
Failed to properly shut down NVML: GPU access blocked by the operating system

解决方案:

1.在cmd下面执行

    wsl.exe -d Ubuntu-22.04 --shutdown
    wsl.exe --terminate Ubuntu-22.04

2.添加环境变量<

相关推荐

  1. WSL2 Ubuntu检测 GPU驱动无法使用GPU

    2024-02-03 07:48:02       60 阅读
  2. tensorflow可以使用GPU,而torch无法使用GPU

    2024-02-03 07:48:02       37 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-02-03 07:48:02       94 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-02-03 07:48:02       100 阅读
  3. 在Django里面运行非项目文件

    2024-02-03 07:48:02       82 阅读
  4. Python语言-面向对象

    2024-02-03 07:48:02       91 阅读

热门阅读

  1. 神经网络和深度学习吴恩达coursera笔记

    2024-02-03 07:48:02       39 阅读
  2. C++之类和对象(1)

    2024-02-03 07:48:02       44 阅读
  3. Spring Boot注解

    2024-02-03 07:48:02       48 阅读
  4. 【PDF.js】发票PDF不显示文本的问题

    2024-02-03 07:48:02       76 阅读
  5. 【Spring Boot 3】【JPA】嵌入式对象

    2024-02-03 07:48:02       44 阅读
  6. Golang使用cobra实现命令行程序

    2024-02-03 07:48:02       56 阅读
  7. MBP 2015安装Ubuntu 22.04.3系统后摄像头驱动问题解决

    2024-02-03 07:48:02       55 阅读
  8. 1z_php

    1z_php

    2024-02-03 07:48:02      47 阅读
  9. day40_mysql

    2024-02-03 07:48:02       40 阅读
  10. docker常用命令

    2024-02-03 07:48:02       52 阅读
  11. 数据分析之数据预处理、分析建模、可视化

    2024-02-03 07:48:02       51 阅读