Skip to content

Commit

Permalink
Merge pull request #311 from una-auxme/310-Bug-vulkan-device
Browse files Browse the repository at this point in the history
[Bug]: vulkan device
  • Loading branch information
ll7 authored Oct 7, 2024
2 parents e51d677 + 7aba600 commit ca15e73
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
Binary file added doc/00_assets/vulkan_device_not_available.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
39 changes: 39 additions & 0 deletions doc/01_general/02_installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,3 +103,42 @@ sudo systemctl restart docker
```

([possible reason](https://stackoverflow.com/a/73256004))

### Vulkan device not available

Cannot find a compatible Vulkan Device.
Try updating your video driver to a more recent version and make sure your video card supports Vulkan.

![Vulkan device not available](../00_assets/vulkan_device_not_available.png)

Verify the issue with the following command:

```shell
$ docker run --rm --runtime=nvidia --gpus all ubuntu nvidia-smi
Failed to initialize NVML: Unknown Error
```

> [!TIP] Solution found in <https://stackoverflow.com/a/78137688>

```shell
sudo vim /etc/nvidia-container-runtime/config.toml
```

, then changed `no-cgroups = false`, save

Restart docker daemon:

```shell
sudo systemctl restart docker
```

, then you can test by running

```shell
docker run --rm --runtime=nvidia --gpus all ubuntu nvidia-smi
```

Based on:

1. <https://bobcares.com/blog/docker-failed-to-initialize-nvml-unknown-error/>
2. <https://bbs.archlinux.org/viewtopic.php?id=266915>

0 comments on commit ca15e73

Please sign in to comment.