Skip to content
Open
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
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Files generated by invoking Julia with --code-coverage
*.jl.cov
*.jl.*.cov
*.so
*.csv

# Files generated by invoking Julia with --track-allocation
*.jl.mem
Expand Down
64 changes: 64 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
############################################################
# Base image
############################################################
ARG IMAGE=nvidia/cuda:12.1.1-devel-ubuntu20.04
FROM $IMAGE

############################################################
# System packages
############################################################
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive \
apt-get install --yes --no-install-recommends \
curl ca-certificates git vim gcc g++ make && \
apt-get clean && rm -rf /var/lib/apt/lists/*

############################################################
# Install Julia (system install)
############################################################
ARG JULIA_RELEASE=1.12
ARG JULIA_VERSION=1.12.2

RUN curl -s -L https://julialang-s3.julialang.org/bin/linux/x64/${JULIA_RELEASE}/julia-${JULIA_VERSION}-linux-x86_64.tar.gz | \
tar -C /usr/local -x -z --strip-components=1 -f -

############################################################
# System-wide Julia depot (root install)
############################################################
ENV JULIA_DEPOT_PATH=/usr/local/share/julia

RUN mkdir -p /usr/local/share/julia/environments/v${JULIA_RELEASE} && \
chmod -R 0777 /usr/local/share/julia

############################################################
# Copy DeRham + GPUFiniteFieldMatrices into system depot env
############################################################
COPY Project.toml Manifest.toml supabase.jl /usr/local/share/julia/environments/v${JULIA_RELEASE}/
COPY src /usr/local/share/julia/environments/v${JULIA_RELEASE}/src

# External dependency
COPY --from=gf / /usr/local/share/julia/environments/v${JULIA_RELEASE}/GPUFiniteFieldMatrices

############################################################
# Instantiate & precompile system-wide packages
############################################################
RUN julia -e 'using Pkg; \
Pkg.activate("/usr/local/share/julia/environments/v'${JULIA_RELEASE}'"); \
Pkg.develop(path="/usr/local/share/julia/environments/v'${JULIA_RELEASE}'/GPUFiniteFieldMatrices"); \
Pkg.add("HTTP"); \
Pkg.add("JSON"); \
Pkg.add("DataFrames")'

############################################################
# Runtime User Depot
############################################################
RUN mkdir -m 0777 /data
ENV JULIA_HISTORY=/data/logs/repl_history.jl

# Startup script to initialize user depot from system depot
COPY startup.jl /usr/local/share/julia/config/

############################################################
# Final runtime depot path (user depot + system depot)
############################################################
ENV JULIA_DEPOT_PATH=/data:/usr/local/share/julia
6 changes: 5 additions & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ CUDA = "052768ef-5323-5732-b1bb-66c8b64840ba"
Combinatorics = "861a8166-3701-5b0c-9a16-15d98fcdc6aa"
DataFrames = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0"
GPUFiniteFieldMatrices = "465031f1-b347-4f72-85f6-baf667cdf853"
HTTP = "cd3eb016-35fb-5094-929b-558a96fad6f3"
JSON = "682c06a0-de6a-54ab-a142-c8b1cf79cde6"
LFUDACache = "4ae1174a-2808-43b3-975e-65e36c59b120"
LRUCache = "8ac3fa9e-de4c-5943-b1dc-09c6b5f20637"
Expand All @@ -17,16 +18,19 @@ Memoize = "c03570c3-d221-55d1-a50c-7939bbd78826"
OhMyThreads = "67456a42-1dca-4109-a031-0a68de7e3ad5"
Oscar = "f1435218-dba5-11e9-1e4d-f1a5fab5fc13"
PProf = "e4faabce-9ead-11e9-39d9-4379958e3056"
UnicodePlots = "b8865327-cd53-5732-bb35-84acbb429228"

[sources]
GPUFiniteFieldMatrices = {path = "../GPUFiniteFieldMatrices.jl"}
GPUFiniteFieldMatrices = {rev = "main", url = "https://github.com/UCSD-computational-number-theory/GPUFiniteFieldMatrices.jl.git"}

[compat]
CSV = "0.10.15"
CUDA = "5.7.3"
DataFrames = "1.7.0"
GPUFiniteFieldMatrices = "0.3.0"
HTTP = "1.10.19"
JSON = "0.21.4"
LFUDACache = "0.1.1"
LRUCache = "1.6.2"
OhMyThreads = "0.8.3"
UnicodePlots = "3.8.1"
Loading