Skip to content

Commit c3afbf2

Browse files
committed
Update v2.1.2
1 parent 6dead73 commit c3afbf2

3 files changed

Lines changed: 31 additions & 10 deletions

File tree

Dockerfile

Lines changed: 28 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ ARG UBUNTU_VERSION
44
FROM nvidia/cuda:${CUDA_VERSION}-cudnn-devel-ubuntu${UBUNTU_VERSION}
55

66
ARG DEBIAN_FRONTEND=noninteractive
7-
ARG LLVM_VERSION=21
87
ENV LANGUAGE=en_US.UTF-8
98
ENV LANG=en_US.UTF-8
109

10+
ARG LLVM_VERSION
1111
ARG IMAGE_VERSION
1212
ARG TORCH_VERSION
1313

@@ -25,21 +25,39 @@ RUN apt-get update && apt-get upgrade -y && \
2525
libssl-dev && \
2626
fc-cache -f -v
2727

28-
# Vcpkg, Cmake, LLVM
28+
# Vcpkg
2929
RUN cd /usr/local && git clone https://github.com/microsoft/vcpkg.git && \
30-
cd vcpkg && ./bootstrap-vcpkg.sh && \
31-
wget -O /tmp/kitware-archive.sh \
30+
cd vcpkg && ./bootstrap-vcpkg.sh
31+
32+
# CMake
33+
RUN wget -O /tmp/kitware-archive.sh \
3234
https://apt.kitware.com/kitware-archive.sh && \
3335
bash /tmp/kitware-archive.sh && \
34-
apt-get update && apt-get install -y cmake && \
35-
wget -O /tmp/llvm.sh https://apt.llvm.org/llvm.sh && \
36-
chmod +x /tmp/llvm.sh && /tmp/llvm.sh ${LLVM_VERSION} && \
37-
apt-get install -y libomp-${LLVM_VERSION}-dev && \
36+
apt-get update && apt-get install -y cmake
37+
38+
# LLVM
39+
RUN wget -qO- https://apt.llvm.org/llvm-snapshot.gpg.key | \
40+
sudo tee /etc/apt/trusted.gpg.d/apt.llvm.org.asc && \
41+
echo "deb http://apt.llvm.org/noble/ llvm-toolchain-noble main" | \
42+
tee /etc/apt/sources.list.d/llvm.list && \
43+
echo "deb-src http://apt.llvm.org/noble/ llvm-toolchain-noble main" | \
44+
tee -a /etc/apt/sources.list.d/llvm.list && \
45+
apt-get update && apt-get install -y \
46+
clang-${LLVM_VERSION} lldb-${LLVM_VERSION} \
47+
clang-tools-${LLVM_VERSION} libclang-${LLVM_VERSION}-dev \
48+
clang-format-${LLVM_VERSION} python3-clang-${LLVM_VERSION} \
49+
clangd-${LLVM_VERSION} clang-tidy-${LLVM_VERSION} \
50+
lldb-${LLVM_VERSION} libc++-${LLVM_VERSION}-dev \
51+
libc++abi-${LLVM_VERSION}-dev libomp-${LLVM_VERSION}-dev && \
3852
ln -s /usr/bin/clang-${LLVM_VERSION} /usr/bin/clang && \
3953
ln -s /usr/bin/clang++-${LLVM_VERSION} /usr/bin/clang++ && \
4054
ln -s /usr/bin/clangd-${LLVM_VERSION} /usr/bin/clangd && \
4155
ln -s /usr/bin/clang-tidy-${LLVM_VERSION} /usr/bin/clang-tidy && \
42-
ln -s /usr/bin/clang-format-${LLVM_VERSION} /usr/bin/clang-format
56+
ln -s /usr/bin/clang-format-${LLVM_VERSION} /usr/bin/clang-format && \
57+
ln -s /usr/bin/lldb-${LLVM_VERSION} /usr/bin/lldb
58+
59+
# Rust
60+
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -y
4361

4462
# Config files
4563
COPY data/.vimrc data/.inputrc data/.bashrc data/.tmux.conf /root/
@@ -51,6 +69,7 @@ RUN wget -O /tmp/miniconda3.sh \
5169
bash /tmp/miniconda3.sh -b -u -p /root/miniconda3 && \
5270
\. /root/miniconda3/bin/activate && \
5371
conda upgrade libstdcxx-ng -c conda-forge -y && \
72+
pip3 install nvitop && \
5473
pip3 install torch==${TORCH_VERSION} torchvision torchaudio \
5574
--index-url https://download.pytorch.org/whl/cu126 \
5675
--no-cache-dir

scripts/.image-configs.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
IMAGE_VERSION=2.1.1
1+
IMAGE_VERSION=2.1.2
22
TORCH_VERSION=2.7.0
33
CUDA_VERSION=12.6.0
44
UBUNTU_VERSION=24.04
5+
LLVM_VERSION=21
56
IMAGE_TAG=v${IMAGE_VERSION}-torch${TORCH_VERSION}-cuda${CUDA_VERSION}-ubuntu${UBUNTU_VERSION}
67
IMAGE_NAME=jamesnulliu/deeplearning:${IMAGE_TAG}

scripts/build.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,6 @@ docker build \
99
--build-arg CUDA_VERSION=$CUDA_VERSION \
1010
--build-arg UBUNTU_VERSION=$UBUNTU_VERSION \
1111
--build-arg CUDNN_VERSION=$CUDNN_VERSION \
12+
--build-arg LLVM_VERSION=$LLVM_VERSION \
1213
-t $IMAGE_NAME \
1314
.

0 commit comments

Comments
 (0)