From e84b31935cbf23c1bbae6801ea1b2c7c09792773 Mon Sep 17 00:00:00 2001 From: Ettore Di Giacinto Date: Mon, 24 Jun 2024 20:04:58 +0200 Subject: [PATCH] feat(vulkan): add vulkan support to the llama.cpp backend (#2648) 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 2b85ace6..2452ef04 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 f4adedcd..f1c2db6c 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 61efc00d..eb5c9b05 100644 --- a/Dockerfile +++ b/Dockerfile @@ -103,6 +103,22 @@ ARG CUDA_MINOR_VERSION=5 ENV BUILD_TYPE=${BUILD_TYPE} +# Vulkan requirements +RUN <