Add Docker-based build system with GPU-enabled builder and runtime containers

This commit is contained in:
Shang Chieh Tseng
2025-11-07 12:48:05 +08:00
parent 5744fb792a
commit 94bbfbb2e7
8 changed files with 750 additions and 2 deletions

View File

@@ -74,11 +74,12 @@ This document tracks development goals and notes for this Ollama repository fork
rm -rf build
go clean -cache
# Configure the build (specify GCC 10.5 explicitly)
# Configure the build (For all 11.4 or k80)
CC=/usr/local/bin/gcc CXX=/usr/local/bin/g++ cmake --preset "CUDA 11"
CC=/usr/local/bin/gcc CXX=/usr/local/bin/g++ cmake --preset "CUDA 11 K80"
# Build the C/C++/CUDA libraries
CC=/usr/local/bin/gcc CXX=/usr/local/bin/g++ cmake --build build -j 48
CC=/usr/local/bin/gcc CXX=/usr/local/bin/g++ cmake --build build -j$(nproc)
# Build the Go binary
go build -o ollama .