AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / ubuntu / 问题 / 1530856
Accepted
riccardo caraccio
riccardo caraccio
Asked: 2024-10-22 23:17:38 +0800 CST2024-10-22 23:17:38 +0800 CST 2024-10-22 23:17:38 +0800 CST

WSL2 MESA:错误:ZINK:glxinfo -B 后无法选择 pdev

  • 772

前提:我是这个话题的新手

我正在尝试设置我的 WSL 以测试 GPU 上的数值计算(基于 OpenGL)。
我已经安装了 CUDA,并且nvcc --version一切似乎都正常工作(请参阅此处了解输出)。nvidia-smiglxgears

但是,之后我有以下输出glxinfo -B:

name of display: :0
MESA: error: ZINK: failed to choose pdev
glx: failed to create drisw screen
display: :0  screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
    Vendor: Microsoft Corporation (0xffffffff)
    Device: D3D12 (NVIDIA GeForce GTX 1650 Ti with Max-Q Design) (0xffffffff)
    Version: 24.0.9
    Accelerated: yes
    Video memory: 11996MB
    Unified memory: no
    Preferred profile: core (0x1)
    Max core profile version: 4.6
    Max compat profile version: 4.6
    Max GLES1 profile version: 1.1
    Max GLES[23] profile version: 3.1
OpenGL vendor string: Microsoft Corporation
OpenGL renderer string: D3D12 (NVIDIA GeForce GTX 1650 Ti with Max-Q Design)
OpenGL core profile version string: 4.6 (Core Profile) Mesa 24.0.9-0ubuntu0.2
OpenGL core profile shading language version string: 4.60
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile

OpenGL version string: 4.6 (Compatibility Profile) Mesa 24.0.9-0ubuntu0.2
OpenGL shading language version string: 4.60
OpenGL context flags: (none)
OpenGL profile mask: compatibility profile

OpenGL ES profile version string: OpenGL ES 3.1 Mesa 24.0.9-0ubuntu0.2
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.10

这干扰了我的应用程序,导致测试用例崩溃。
我尝试使用 ppa 升级到较新版本的 MESA,但又导致另一个错误。

您知道如何修复此问题吗?任何帮助都将不胜感激!

其他信息:
Ubuntu 24.04
PC:Razer Blade-stelth
显卡:NVIDIA GeForce GTX 1650 Ti 带 Max-Q 设计
Windows 11

drivers
  • 2 2 个回答
  • 3799 Views

2 个回答

  • Voted
  1. Best Answer
    riccardo caraccio
    2024-10-24T16:30:36+08:002024-10-24T16:30:36+08:00

    感谢@Holger的回复。
    我已经尝试了这些步骤:更重要的是,据我所知,它export LIBGL_ALWAYS_SOFTWARE=1告诉编译器使用软件加速而不是硬件加速,从而降低了代码的性能。因此,至少就我而言,我认为这不是我想要的。尽管如此
    ,多亏了@popey指向此链接的评论,我能够通过设置来解决问题export GALLIUM_DRIVER=d3d12。
    现在当我运行时,glxinfo -B我得到了一个干净的输出:

    name of display: :0
    display: :0  screen: 0
    direct rendering: Yes
    Extended renderer info (GLX_MESA_query_renderer):
        Vendor: Microsoft Corporation (0xffffffff)
        Device: D3D12 (NVIDIA GeForce GTX 1650 Ti with Max-Q Design) (0xffffffff)
        Version: 24.0.9
        Accelerated: yes
        Video memory: 11996MB
        Unified memory: no
        Preferred profile: core (0x1)
        Max core profile version: 4.6
        Max compat profile version: 4.6
        Max GLES1 profile version: 1.1
        Max GLES[23] profile version: 3.1
    OpenGL vendor string: Microsoft Corporation
    OpenGL renderer string: D3D12 (NVIDIA GeForce GTX 1650 Ti with Max-Q Design)
    OpenGL core profile version string: 4.6 (Core Profile) Mesa 24.0.9-0ubuntu0.2
    OpenGL core profile shading language version string: 4.60
    OpenGL core profile context flags: (none)
    OpenGL core profile profile mask: core profile
    
    OpenGL version string: 4.6 (Compatibility Profile) Mesa 24.0.9-0ubuntu0.2
    OpenGL shading language version string: 4.60
    OpenGL context flags: (none)
    OpenGL profile mask: compatibility profile
    
    OpenGL ES profile version string: OpenGL ES 3.1 Mesa 24.0.9-0ubuntu0.2
    OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.10
    

    再次感谢您的所有帮助!

    • 3
  2. Holger
    2024-10-22T23:52:14+08:002024-10-22T23:52:14+08:00

    我遇到了类似的问题,以下内容对我有帮助:

    sudo apt install mesa-utils libgl1-mesa-dri libgl1-mesa-glx
    export LIBGL_ALWAYS_SOFTWARE=1
    

    可能无法安装 libgl1-mesa-glx,但它仍然可以与环境变量集一起工作。

    • 0

相关问题

  • Ubuntu 中的科胜讯调制解调器

  • 如何解决联想笔记本电脑上恢复/电源问题时禁用的蓝牙?

  • 如何为 LG X130 上网本安装 relink 无线驱动程序

  • 类似于 Eyefinity 的东西?

  • 在哪里可以找到 Brother HL-2170W 64 位打印机驱动程序?

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve