Skip to content

Commit 16cc3c6

Browse files
authored
build: document how to compile with Vulkan using Debian/Ubuntu packages (ggml-org#17688)
1 parent 13628d8 commit 16cc3c6

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

docs/build.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -431,11 +431,22 @@ docker run -it --rm -v "$(pwd):/app:Z" --device /dev/dri/renderD128:/dev/dri/ren
431431

432432
### For Linux users:
433433

434+
#### Using the LunarG Vulkan SDK
435+
434436
First, follow the official LunarG instructions for the installation and setup of the Vulkan SDK in the [Getting Started with the Linux Tarball Vulkan SDK](https://vulkan.lunarg.com/doc/sdk/latest/linux/getting_started.html) guide.
435437

436438
> [!IMPORTANT]
437439
> After completing the first step, ensure that you have used the `source` command on the `setup_env.sh` file inside of the Vulkan SDK in your current terminal session. Otherwise, the build won't work. Additionally, if you close out of your terminal, you must perform this step again if you intend to perform a build. However, there are ways to make this persistent. Refer to the Vulkan SDK guide linked in the first step for more information about any of this.
438440
441+
#### Using system packages
442+
443+
On Debian / Ubuntu, you can install the required dependencies using:
444+
```sh
445+
sudo apt-get install libvulkan-dev glslc
446+
```
447+
448+
#### Common steps
449+
439450
Second, after verifying that you have followed all of the SDK installation/setup steps, use this command to make sure before proceeding:
440451
```bash
441452
vulkaninfo

0 commit comments

Comments
 (0)