-
Notifications
You must be signed in to change notification settings - Fork 667
Expand file tree
/
Copy pathDockerfile.all
More file actions
31 lines (24 loc) · 1017 Bytes
/
Dockerfile.all
File metadata and controls
31 lines (24 loc) · 1017 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
FROM ubuntu:24.04
# Container dependencies
RUN apt-get update && apt-get install -y git python3 python3-pip ccache
ENV PIP_BREAK_SYSTEM_PACKAGES=1
# Python build dependencies
RUN pip install cmake ninja pybind11 numpy packaging
# PyTorch (CUDA 13.0)
RUN pip install torch --index-url https://download.pytorch.org/whl/cu130
# JAX with CUDA 13 support
RUN pip install "jax[cuda13]"
# NVIDIA CUDA toolkit wheels
RUN pip install \
"nvidia-cuda-nvcc<13.1" \
"nvidia-cuda-cccl<13.1" \
"nvidia-cuda-crt<13.1" \
"nvidia-nvvm<13.1" \
"nvidia-cuda-profiler-api<13.1" \
"nvidia-nvml-dev<13.1"
# Create symlinks for CUDA libraries
RUN CUDA_PATH=$(python3 -c "import nvidia; print(list(nvidia.__path__)[0] + '/cu13')") && \
ln -s $CUDA_PATH/lib/libcudart.so.13 $CUDA_PATH/lib/libcudart.so && \
ln -s $CUDA_PATH/lib/libcublas.so.13 $CUDA_PATH/lib/libcublas.so && \
ln -s $CUDA_PATH/../nccl/lib/libnccl.so.2 $CUDA_PATH/../nccl/lib/libnccl.so && \
ln -s $CUDA_PATH/lib $CUDA_PATH/lib64