File tree Expand file tree Collapse file tree 2 files changed +14
-4
lines changed
Expand file tree Collapse file tree 2 files changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -17,10 +17,12 @@ jobs:
1717 include :
1818 - os : ubuntu-latest
1919 arch : x86_64
20- name : linux
20+ name : linux-vulkan
21+ make : LLAMA="-DGGML_BACKEND_DL=ON -DGGML_NATIVE=OFF -DGGML_CPU_ALL_VARIANTS=ON -DGGML_VULKAN=ON"
2122 - os : LinuxARM64
2223 arch : arm64
23- name : linux
24+ name : linux-vulkan
25+ make : LLAMA="-DGGML_BACKEND_DL=ON -DGGML_NATIVE=OFF -DGGML_CPU_ALL_VARIANTS=ON -DGGML_VULKAN=ON"
2426 - os : macos-latest
2527 name : macos
2628 - os : windows-latest
6163 mingw-w64-x86_64-cmake
6264 make
6365
66+ - name : linux install vulkan
67+ if : matrix.name == 'linux-vulkan'
68+ run : |
69+ wget -qO - https://packages.lunarg.com/lunarg-signing-key-pub.asc | sudo apt-key add -
70+ sudo wget -qO /etc/apt/sources.list.d/lunarg-vulkan-jammy.list https://packages.lunarg.com/vulkan/lunarg-vulkan-jammy.list
71+ sudo apt-get update -y
72+ sudo apt-get install -y build-essential mesa-vulkan-drivers vulkan-sdk libcurl4-openssl-dev
73+
6474 - name : windows build sqlite-ai
6575 if : matrix.name == 'windows'
6676 run : make extension ${{ matrix.make && matrix.make || ''}}
Original file line number Diff line number Diff line change @@ -29,8 +29,8 @@ CC = gcc
2929CXX = g++
3030CFLAGS = -Wall -Wextra -Wno-unused-parameter -I$(SRC_DIR ) -I$(LLAMA_DIR ) /ggml/include -I$(LLAMA_DIR ) /include
3131LDFLAGS = -L./$(BUILD_LLAMA ) /common -L./$(BUILD_LLAMA ) /ggml/src -L./$(BUILD_LLAMA ) /src -L./$(BUILD_WHISPER ) /src -lcommon -lggml -lggml-base -lggml-cpu -lllama -lwhisper
32- LLAMA_OPTIONS = -DLLAMA_CURL=OFF -DLLAMA_BUILD_EXAMPLES=OFF -DLLAMA_BUILD_TESTS=OFF -DLLAMA_BUILD_TOOLS=OFF -DLLAMA_BUILD_SERVER=OFF
33- WHISPER_OPTIONS = -DWHISPER_BUILD_EXAMPLES=OFF -DWHISPER_BUILD_TESTS=OFF -DWHISPER_BUILD_SERVER=OFF
32+ LLAMA_OPTIONS = $( LLAMA ) -DLLAMA_CURL=OFF -DLLAMA_BUILD_EXAMPLES=OFF -DLLAMA_BUILD_TESTS=OFF -DLLAMA_BUILD_TOOLS=OFF -DLLAMA_BUILD_SERVER=OFF
33+ WHISPER_OPTIONS = $( WHISPER ) -DWHISPER_BUILD_EXAMPLES=OFF -DWHISPER_BUILD_TESTS=OFF -DWHISPER_BUILD_SERVER=OFF
3434
3535# Directories
3636SRC_DIR = src
You can’t perform that action at this time.
0 commit comments