Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

faq vulkan in docker #5884

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions docs/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,33 @@ ln -sf /opt/cmake-3.18.2/bin/* /usr/bin/
这里提供了一些品牌的GPU驱动下载网址.We have provided some drivers' download pages here.
[Intel](https://downloadcenter.intel.com/product/80939/Graphics-Drivers),[AMD](https://www.amd.com/en/support),[Nvidia](https://www.nvidia.com/Download/index.aspx)

- ## docker 环境里面 nvidia-smi 能看到显卡也能跑 cuda 却不能跑 vulkan

因为这个docker环境的nvidia驱动没有安装opengl/vulkan支持

首先运行 nvidia-smi 查看当前驱动版本

```
NVIDIA-SMI 535.161.07
Driver Version: 535.161.07
CUDA Version: 12.2
```

然后去下载对应版本的NVIDIA驱动,安装用户态驱动文件,跳过内核部分

```
wget https://us.download.nvidia.com/tesla/535.161.07/NVIDIA-Linux-x86_64-535.161.07.run
chmod +x NVIDIA-Linux-x86_64-535.161.07.run
./NVIDIA-Linux-x86_64-535.161.07.run --silent --no-kernel-module
```

安装时会报一些文件权限错误,不用管,安装完成后 vulkan 支持就可用了。最后安装 vulkaninfo 查看gpu信息

```
dnf install vulkan-tools
vulkaninfo
```

- ## ModuleNotFoundError: No module named 'ncnn.ncnn'

python setup.py develop
Expand Down
Loading