Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ollama
Commits
3b5866a2
Unverified
Commit
3b5866a2
authored
Mar 25, 2024
by
Daniel Hiltgen
Committed by
GitHub
Mar 25, 2024
Browse files
Merge pull request #3353 from dhiltgen/fix_arm_linux
Use Rocky Linux Vault to get GCC 10.2 installed
parents
b31ed7f0
b8c2be61
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
3 deletions
+15
-3
Dockerfile
Dockerfile
+2
-2
scripts/rh_linux_deps.sh
scripts/rh_linux_deps.sh
+13
-1
No files found.
Dockerfile
View file @
3b5866a2
...
@@ -20,11 +20,11 @@ WORKDIR /go/src/github.com/jmorganca/ollama/llm/generate
...
@@ -20,11 +20,11 @@ WORKDIR /go/src/github.com/jmorganca/ollama/llm/generate
ARG
CGO_CFLAGS
ARG
CGO_CFLAGS
RUN
OLLAMA_SKIP_CPU_GENERATE
=
1 sh gen_linux.sh
RUN
OLLAMA_SKIP_CPU_GENERATE
=
1 sh gen_linux.sh
FROM
--platform=linux/arm64 nvidia/cuda:$CUDA_VERSION-devel-
centos7
AS cuda-build-arm64
FROM
--platform=linux/arm64 nvidia/cuda:$CUDA_VERSION-devel-
rockylinux8
AS cuda-build-arm64
ARG
CMAKE_VERSION
ARG
CMAKE_VERSION
COPY
./scripts/rh_linux_deps.sh /
COPY
./scripts/rh_linux_deps.sh /
RUN
CMAKE_VERSION
=
${
CMAKE_VERSION
}
sh /rh_linux_deps.sh
RUN
CMAKE_VERSION
=
${
CMAKE_VERSION
}
sh /rh_linux_deps.sh
ENV
PATH /opt/rh/
dev
toolset-10/root/usr/bin:$PATH
ENV
PATH /opt/rh/
gcc-
toolset-10/root/usr/bin:$PATH
COPY
--from=llm-code / /go/src/github.com/jmorganca/ollama/
COPY
--from=llm-code / /go/src/github.com/jmorganca/ollama/
WORKDIR
/go/src/github.com/jmorganca/ollama/llm/generate
WORKDIR
/go/src/github.com/jmorganca/ollama/llm/generate
ARG
CGO_CFLAGS
ARG
CGO_CFLAGS
...
...
scripts/rh_linux_deps.sh
View file @
3b5866a2
...
@@ -20,7 +20,19 @@ if grep -i "centos" /etc/system-release >/dev/null; then
...
@@ -20,7 +20,19 @@ if grep -i "centos" /etc/system-release >/dev/null; then
fi
fi
dnf
install
-y
devtoolset-10-gcc devtoolset-10-gcc-c++
dnf
install
-y
devtoolset-10-gcc devtoolset-10-gcc-c++
elif
grep
-i
"rocky"
/etc/system-release
>
/dev/null
;
then
elif
grep
-i
"rocky"
/etc/system-release
>
/dev/null
;
then
dnf
install
-y
git gcc-toolset-10-gcc gcc-toolset-10-gcc-c++
# Temporary workaround until rocky 8 AppStream ships GCC 10.4 (10.3 is incompatible with NVCC)
cat
<<
EOF
> /etc/yum.repos.d/Rocky-Vault.repo
[vault]
name=Rocky Vault
baseurl=https://dl.rockylinux.org/vault/rocky/8.5/AppStream/
\$
basearch/os/
gpgcheck=1
enabled=1
countme=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rockyofficial
EOF
dnf
install
-y
git
\
gcc-toolset-10-gcc-10.2.1-8.2.el8
\
gcc-toolset-10-gcc-c++-10.2.1-8.2.el8
else
else
echo
"ERROR Unexpected distro"
echo
"ERROR Unexpected distro"
exit
1
exit
1
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment