ollama/scripts
Daniel Hiltgen 288077c3a3
build: smarter docker parallelism (#14653)
Our Dockerfile leverages parallel stages for more efficient builds.  However,
our old parallel settings were naive and lead to under/over utilization
depending on the capabilities of your build system.

This change switches to using Ninja for all our docker cmake builds to leverage
its smarter parallel logic.  We tell Ninja to target a load of nproc so each of
the build stages will share the load on the system aiming for full CPU use
without oversaturation.

The GPU parallelism settings are also adjusted to 4 to avoid a long-tail for
the last few GPU targets as they work through the long list of GPU
architectures.

This also fixes the Dockerfile to move Vulkan install to just the stage that
needs it instead of blocking most other GPU installs.  This should speed up CI
which always has a clean build cache.
2026-03-06 16:36:22 -08:00
..
support app: add code for macOS and Windows apps under 'app' (#12933) 2025-11-04 11:40:17 -08:00
.this-is-the-create-dmg-repo app: add code for macOS and Windows apps under 'app' (#12933) 2025-11-04 11:40:17 -08:00
build_darwin.sh build: add -O3 optimization to CGO flags (#13877) 2026-01-24 10:55:38 -08:00
build_docker.sh Update ROCm (6.3 linux, 6.2 windows) and CUDA v12.8 (#9304) 2025-02-25 13:47:36 -08:00
build_linux.sh CI: dedup cuda libraries to reduce payload size (#13704) 2026-01-13 11:25:31 -08:00
build_windows.ps1 win: add curl-style install script (#14178) 2026-02-09 15:28:11 -08:00
create-dmg.sh app: add code for macOS and Windows apps under 'app' (#12933) 2025-11-04 11:40:17 -08:00
deduplicate_cuda_libs.sh CI: dedup cuda libraries to reduce payload size (#13704) 2026-01-13 11:25:31 -08:00
env.sh build: smarter docker parallelism (#14653) 2026-03-06 16:36:22 -08:00
install.ps1 win: progress reporting on install download (#14219) 2026-02-12 12:06:56 -08:00
install.sh install: prevent partial download script execution (#14311) 2026-02-18 18:32:45 -08:00
push_docker.sh change github.com/jmorganca/ollama to github.com/ollama/ollama (#3347) 2024-03-26 13:04:17 -07:00
tag_latest.sh CI: clean up naming, fix tagging latest (#6832) 2024-09-16 16:18:41 -07:00