From cb86def4667027250cedbd113cdd51015fd61f16 Mon Sep 17 00:00:00 2001 From: Ettore Di Giacinto Date: Mon, 24 Jun 2024 17:34:30 +0200 Subject: [PATCH] feat(vulkan): add vulkan support to llama.cpp Signed-off-by: Ettore Di Giacinto --- .github/workflows/image-pr.yml | 9 +++++++++ .github/workflows/image.yml | 9 +++++++++ Dockerfile | 16 ++++++++++++++++ Makefile | 4 ++++ 4 files changed, 38 insertions(+) diff --git a/.github/workflows/image-pr.yml b/.github/workflows/image-pr.yml index 2b85ace6531..2452ef049bf 100644 --- a/.github/workflows/image-pr.yml +++ b/.github/workflows/image-pr.yml @@ -128,3 +128,12 @@ jobs: runs-on: 'ubuntu-latest' base-image: "ubuntu:22.04" makeflags: "--jobs=4 --output-sync=target" + - build-type: 'vulkan' + platforms: 'linux/amd64' + tag-latest: 'false' + tag-suffix: '-vulkan-ffmpeg-core' + ffmpeg: 'true' + image-type: 'core' + runs-on: 'ubuntu-latest' + base-image: "ubuntu:22.04" + makeflags: "--jobs=4 --output-sync=target" diff --git a/.github/workflows/image.yml b/.github/workflows/image.yml index f1cee42cf97..f5929e19718 100644 --- a/.github/workflows/image.yml +++ b/.github/workflows/image.yml @@ -315,3 +315,12 @@ jobs: runs-on: 'arc-runner-set' base-image: "ubuntu:22.04" makeflags: "--jobs=4 --output-sync=target" + - build-type: 'vulkan' + platforms: 'linux/amd64,linux/arm64' + tag-latest: 'false' + tag-suffix: '-vulkan-ffmpeg-core' + ffmpeg: 'true' + image-type: 'core' + runs-on: 'arc-runner-set' + base-image: "ubuntu:22.04" + makeflags: "--jobs=4 --output-sync=target" \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index 61efc00d2f8..0c1e63d35b0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -103,6 +103,22 @@ ARG CUDA_MINOR_VERSION=5 ENV BUILD_TYPE=${BUILD_TYPE} +# Vulkan requirements +RUN <