From a058adcf35aeed6a5b566bd7a71ec8f612522fc4 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Sat, 27 Jul 2024 07:24:47 +0000 Subject: automatic import of ollama --- ollama.spec | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ollama.spec b/ollama.spec index effb6cd..e9c0da8 100644 --- a/ollama.spec +++ b/ollama.spec @@ -32,15 +32,15 @@ into production. %autosetup -p1 -n %{name}-%{version} %if "%{_arch}" == "x86_64" -dnf config-manager --add-repo https://developer.download.nvidia.com/compute/cuda/repos/rhel8/x86_64/cuda-rhel8.repo +sudo dnf config-manager --add-repo https://developer.download.nvidia.com/compute/cuda/repos/rhel8/x86_64/cuda-rhel8.repo %endif %if "%{_arch}" == "aarch64" -dnf config-manager --add-repo https://developer.download.nvidia.com/compute/cuda/repos/rhel8/sbsa/cuda-rhel8.repo +sudo dnf config-manager --add-repo https://developer.download.nvidia.com/compute/cuda/repos/rhel8/sbsa/cuda-rhel8.repo %endif -dnf clean all -dnf -y install cuda-toolkit-12-5 +sudo dnf clean all +sudo dnf -y install cuda-toolkit-12-5 # Set the CUDA nvcc path, default is /usr/local/cuda/bin/nvcc # export CUDACXX=/usr/local/cuda/bin/nvcc -- cgit v1.2.3