Skip to content

Commit

Permalink
Reaktivated Vulkan-build.
Browse files Browse the repository at this point in the history
  • Loading branch information
git user committed May 22, 2024
1 parent c172cbd commit 0b03d3c
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 12 deletions.
26 changes: 18 additions & 8 deletions .SRCINFO
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
pkgbase = ollama-nogpu-git
pkgdesc = Create, run and share large language models (LLMs). Package(s) without dedicated GPU offloading (no CUDA, no ROCm, no SYCL).
pkgver = 0.1.38+29.r2757.20240522.4434d7f4
pkgrel = 2
pkgver = 0.1.39+rc1+4.r2773.20240522.955c317c
pkgrel = 1
url = https://github.com/jmorganca/ollama
arch = armv7h
arch = aarch64
Expand Down Expand Up @@ -35,8 +35,8 @@ pkgname = ollama-generic-git
depends = glibc
depends = openssl
optdepends =
provides = ollama=0.1.38+29.r2757.20240522.4434d7f4
provides = ollama-git=0.1.38+29.r2757.20240522.4434d7f4
provides = ollama=0.1.39+rc1+4.r2773.20240522.955c317c
provides = ollama-git=0.1.39+rc1+4.r2773.20240522.955c317c
conflicts = ollama

pkgname = ollama-openmpi-git
Expand All @@ -45,8 +45,8 @@ pkgname = ollama-openmpi-git
depends = glibc
depends = openssl
optdepends =
provides = ollama=0.1.38+29.r2757.20240522.4434d7f4
provides = ollama-git=0.1.38+29.r2757.20240522.4434d7f4
provides = ollama=0.1.39+rc1+4.r2773.20240522.955c317c
provides = ollama-git=0.1.39+rc1+4.r2773.20240522.955c317c
conflicts = ollama

pkgname = ollama-openblas-git
Expand All @@ -55,6 +55,16 @@ pkgname = ollama-openblas-git
depends = glibc
depends = openssl
optdepends =
provides = ollama=0.1.38+29.r2757.20240522.4434d7f4
provides = ollama-git=0.1.38+29.r2757.20240522.4434d7f4
provides = ollama=0.1.39+rc1+4.r2773.20240522.955c317c
provides = ollama-git=0.1.39+rc1+4.r2773.20240522.955c317c
conflicts = ollama

pkgname = ollama-vulkan-git
pkgdesc = Create, run and share large language models (LLMs). With vulkan backend.
depends = gcc-libs
depends = glibc
depends = openssl
optdepends =
provides = ollama=0.1.39+rc1+4.r2773.20240522.955c317c
provides = ollama-git=0.1.39+rc1+4.r2773.20240522.955c317c
conflicts = ollama
8 changes: 4 additions & 4 deletions PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ _build_clblas=false # 2024-04-17: Fails to link with
# ggml-opencl.cpp:(.text+0x46): undefined reference to `clEnqueueReadBuffer'
# ```
# and more errors.
_build_vulkan=false
_build_vulkan=true

# Those variables skip CUDA and ROCm build, introduced in https://github.com/ollama/ollama/pull/4462/files.
export OLLAMA_SKIP_CUDA_GENERATE=true
Expand All @@ -39,8 +39,8 @@ if "${_build_vulkan}"; then
pkgname+=("${_name}-vulkan-git")
fi
pkgdesc='Create, run and share large language models (LLMs). Package(s) without dedicated GPU offloading (no CUDA, no ROCm, no SYCL).'
pkgver=0.1.38+29.r2757.20240522.4434d7f4
pkgrel=2
pkgver=0.1.39+rc1+4.r2773.20240522.955c317c
pkgrel=1
arch=(
'armv7h'
'aarch64'
Expand Down Expand Up @@ -142,7 +142,7 @@ _cmake_options_common="
_cmake_options_blas="-DLLAMA_BLAS=ON -DLLAMA_BLAS_VENDOR=openblas"
_cmake_options_mpi="-DLLAMA_MPI=ON"
_cmake_options_clblas="-DLLAMA_CLBLAST=ON"
_cmake_options_vulkan="-DLLAMA_VULKAN=ON -DLLAMA_VULKAN_CHECK_RESULTS=ON -DLLAMA_VULKAN_DEBUG=OFF -DLLAMA_VULKAN_RUN_TESTS=ON -DLLAMA_VULKAN_VALIDATE=OFF"
_cmake_options_vulkan="-DLLAMA_VULKAN=ON -DLLAMA_VULKAN_CHECK_RESULTS=OFF -DLLAMA_VULKAN_DEBUG=OFF -DLLAMA_VULKAN_RUN_TESTS=OFF -DLLAMA_VULKAN_VALIDATE=OFF"

prepare() {
export GOPATH="${srcdir}/go"
Expand Down

0 comments on commit 0b03d3c

Please sign in to comment.