Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,10 @@ redblackgraph/_version.py

# Test artifacts
.test-wheel-install/
_testing_output/
_testing_output/

# Claude Code
.claude/

# Secrets
.secrets
19 changes: 13 additions & 6 deletions .sandy/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,21 @@ FROM ${BASE_IMAGE}
# --- Option 1: Full CUDA toolkit (needed for compiling CUDA code) ---
# Adds ~3-5GB. Use this if you need nvcc, cuDNN headers, or are building
# custom CUDA kernels.
#
# The repo's Debian release must match the base image (sandy-base is Debian 13
# trixie). The debian12 repo fails here: its signing key relies on a SHA-1
# binding signature, which trixie's apt (sqv) rejects since 2026-02-01.

RUN CUDA_ARCH="$(uname -m)"; [ "$CUDA_ARCH" = "aarch64" ] && CUDA_ARCH="sbsa"; \
curl -fsSL "https://developer.download.nvidia.com/compute/cuda/repos/debian12/${CUDA_ARCH}/cuda-keyring_1.1-1_all.deb" \
curl -fsSL "https://developer.download.nvidia.com/compute/cuda/repos/debian13/${CUDA_ARCH}/cuda-keyring_1.1-1_all.deb" \
-o /tmp/cuda-keyring.deb \
&& dpkg -i /tmp/cuda-keyring.deb && rm /tmp/cuda-keyring.deb \
&& apt-get update \
&& apt-get install -y --no-install-recommends cuda-toolkit \
&& rm -rf /var/lib/apt/lists/*

ENV PATH=/usr/local/cuda/bin:${PATH}
ENV LD_LIBRARY_PATH=/usr/local/cuda/lib64:${LD_LIBRARY_PATH}
ENV LD_LIBRARY_PATH=/usr/local/cuda/lib64

# --- Option 2: PyTorch only (lighter, no system CUDA needed) ---
# Uncomment below and comment out Option 1 if you just need PyTorch.
Expand All @@ -36,14 +40,17 @@ ENV LD_LIBRARY_PATH=/usr/local/cuda/lib64:${LD_LIBRARY_PATH}
# RUN pip install --user torch torchvision torchaudio

# --- CuPy (GPU-accelerated NumPy, used by redblackgraph GPU backend) ---
# cupy-cuda12x provides pre-built wheels for x86_64; on aarch64 (e.g. DGX Spark)
# wheels are not available so we fall back to building from source via 'cupy'.
RUN pip install --no-cache-dir --break-system-packages --user cupy-cuda12x \
|| pip install --no-cache-dir --break-system-packages --user cupy
# Installed system-wide: build steps run as root, so --user would land in
# /root/.local, invisible to the sandy user at runtime. cupy-cuda13x matches
# the CUDA 13 toolkit above; if no wheel exists for this platform, fall back
# to building 'cupy' from source against that toolkit.
RUN pip install --no-cache-dir --break-system-packages cupy-cuda13x \
|| pip install --no-cache-dir --break-system-packages cupy

# --- Python ML packages (persist across sessions via pip sandbox) ---
# Uncomment what you need:

# RUN pip install --user transformers accelerate
# RUN pip install --user jupyter
# RUN pip install --user numpy pandas scikit-learn

319 changes: 0 additions & 319 deletions MATHEMATICAL_ANALYSIS.md

This file was deleted.

Loading
Loading