From: Mathieu Baudier Date: Thu, 6 Feb 2025 14:44:00 +0000 (+0100) Subject: CUDA backend (requires contrib and non-free components) X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=caa4a520503aaf1425e3bfbfef9b43b889526181;p=pkg%2Fggml%2Fsources%2Fggml CUDA backend (requires contrib and non-free components) --- diff --git a/debian/control b/debian/control index bad059d9..cfcd4410 100644 --- a/debian/control +++ b/debian/control @@ -4,7 +4,8 @@ Priority: optional Maintainer: Mathieu Baudier Build-Depends: debhelper-compat (= 13), pkg-config, cmake-data, cmake, cpio, git, patchelf, libopenblas-openmp-dev, libopenblas64-openmp-dev [amd64 arm64], - libvulkan-dev, glslc + libvulkan-dev, glslc, + nvidia-cuda-dev, nvidia-cuda-toolkit Standards-Version: 4.5.1 Homepage: https://github.com/ggerganov Rules-Requires-Root: binary-targets @@ -79,6 +80,17 @@ Depends: ${misc:Depends}, ${shlibs:Depends}, Description: Tensor library for machine learning (Vulkan backend) GGML Tensor library for machine learning. (Vulkan backend) +Package: libggml-cuda +Priority: optional +Architecture: any +Multi-Arch: same +Pre-Depends: ${misc:Pre-Depends} +Depends: ${misc:Depends}, ${shlibs:Depends}, + libggml, + libcuda1, libcublas11 +Description: Tensor library for machine learning (CUDA backend) + GGML Tensor library for machine learning. (CUDA backend) + Package: ggml-dev Priority: optional Architecture: any diff --git a/debian/libggml-cuda.install b/debian/libggml-cuda.install new file mode 100644 index 00000000..bfd525d7 --- /dev/null +++ b/debian/libggml-cuda.install @@ -0,0 +1 @@ +/usr/libexec/*/ggml/libggml-cuda.so diff --git a/debian/rules b/debian/rules index e38fd4c3..35fd030c 100755 --- a/debian/rules +++ b/debian/rules @@ -51,7 +51,7 @@ override_dh_auto_configure: -DGGML_BLAS=ON \ -DGGML_BLAS_VENDOR=OpenBLAS \ -DGGML_VULKAN=ON \ - -DGGML_CUDA=OFF \ + -DGGML_CUDA=ON \ override_dh_auto_install: dh_auto_install