Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
ollama
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
certo
ollama
Commits
7ad1e001
Commit
7ad1e001
authored
Aug 20, 2025
by
Vladimir Bashkirtsev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added swap for nvidia-86 target and specified location of nvcc on PATH
parent
535b251d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
Makefile
Makefile
+9
-1
No files found.
Makefile
View file @
7ad1e001
...
...
@@ -22,8 +22,13 @@ all: ollama-service
rm
-rf
swap
nvidia-86
:
ollama-service
dd
if
=
/dev/zero
of
=
swap
bs
=
1048576
count
=
1024
chmod
600 swap
mkswap swap
swapon swap
tar
xf
ollama-0.11.4.tar.gz
cd
ollama-0.11.4
&&
cmake
-B
build
-DCMAKE_CUDA_ARCHITECTURES
=
86
cd ollama-0.11.4 &&
PATH=$$PATH
:
/usr/local/cuda-13.0/bin
cmake -B build -DCMAKE_CUDA_ARCHITECTURES=86
cd
ollama-0.11.4
&&
cmake
--build
build
cd
ollama-0.11.4
&&
GO111MODULE
=
on
GOCACHE
=
/tmp/gocache
GOPATH
=
$(CURDIR)
/../go/go
$(CURDIR)
/../go/go/bin/go mod download
cd
ollama-0.11.4
&&
GO111MODULE
=
on
GOCACHE
=
/tmp/gocache
GOPATH
=
$(CURDIR)
/../go/go
$(CURDIR)
/../go/go/bin/go build
-trimpath
-buildmode
=
pie
-o
/usr/bin/ollama .
...
...
@@ -32,6 +37,9 @@ nvidia-86: ollama-service
systemctl
enable
ollama.service
rm
-rf
ollama-0.11.4
swapoff
swap
rm
-rf
swap
ollama-service
:
define
OLLAMA_SERVICE
[Unit]
...
...
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