summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2024-07-27 07:24:47 +0000
committerCoprDistGit <infra@openeuler.org>2024-07-27 07:24:47 +0000
commita058adcf35aeed6a5b566bd7a71ec8f612522fc4 (patch)
treede38e60054a2a150a6ffafc0b938ee7330fc59a7
parent2b6244ccd3850b6fcb95dfe0813d7388dca97f7f (diff)
automatic import of ollama
-rw-r--r--ollama.spec8
1 files 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