Development¶
Requirements¶
A source build needs about 70 GB free. The setup targets Fedora:
$ git submodule update --init --recursive
$ make deps-fedora
$ make dev
The Qt launcher is make dev-qt. The dev log is target/shrimply-dev.log.
Slang: downloaded automatically during build (requires
curl,tar, andsha256sum). To use a local copy, setSLANG_LIBRARY_DIRandSLANG_INCLUDE_DIR.SPIR-V Tools: portable Vulkan OBJ shaders require
spirv-optandspirv-valat build time. SetSPIRV_OPTandSPIRV_VALif they are outsidePATH.CUDA Toolkit 12.9: required to build the shared Linux GTK binary even when running on the Intel backend.
FFmpeg: native and packaged builds use the revision in
external/ffmpeg(with Vulkan, VA-API, DRM, NVDEC, and NVENC on Linux).make linux-ffmpegbuilds the local libraries and command-line tools.Python 3.14 & uv: required for the compute server, the Manim worker, and building this documentation site. Always run Python environments with
uv run --lockedso repository lockfiles and overrides are respected.
macOS uses the same Makefile targets. make check there skips the Python
and documentation checks.
Nix development environment¶
The flake provides Rust, the CUDA toolkit, Slang, and the native dependencies
for the GTK and Qt apps on x86_64-linux. It requires Nix 2.27 or newer
to include the FFmpeg submodule.
$ git submodule update --init --recursive
$ nix develop --accept-flake-config
$ make dev
The flake uses the NixOS CUDA binary cache. A multi-user Nix install may need that cache in the system Nix configuration before the daemon will trust it.
Build the GTK app:
$ nix build --accept-flake-config
$ ./result/bin/shrimply
The published flake also builds with
nix build github:soirihiroka/shrimply --accept-flake-config. For a fork,
use git+https://github.com/OWNER/shrimply.git?submodules=1 to fetch its
source and submodules directly. The package ships CUDA kernels for compute
capability 8.6 (GeForce RTX 30-series).
Build and check¶
$ make dev
$ make build
$ make check
$ make test
$ make release
make dev-qt builds and launches the Qt app. make qt-build builds it
without launching. The binary is target/qt/debug/shrimply on Linux and
target/debug/shrimply.exe on Windows.
Build this documentation site with make docs, and validate links and
warnings with make docs-check.
Packaging¶
Docker [Experimental]¶
$ git submodule update --init --recursive
$ docker buildx build --target export --output type=local,dest=dist/stage .
Compute server Docker images can be built locally with:
$ docker build -t shrimply-compute:dev compute-server
$ docker build --build-arg CUDA_VERSION=13.0 -t shrimply-compute:dev-cuda13.0 compute-server
The CUDA 13.0 build compiles PyCOLMAP using two compiler jobs by default; pass
--build-arg BUILD_JOBS=8 to speed up a local build with sufficient memory.
Contributing¶
Read the contribution terms before submitting a change. For Ebi workspace internals and benchmarks, see crates/ebi/ARCHITECTURE.md. For the compute server wire protocol, see compute-server/PROTOCOL.md.