Skip to content

Commit

Permalink
bump to ubuntu 24.04 and add mold linker
Browse files Browse the repository at this point in the history
  • Loading branch information
s-sajid-ali committed May 6, 2024
1 parent a984e96 commit 1b0f496
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
3 changes: 2 additions & 1 deletion cuda-11/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ ENTRYPOINT ["/bin/bash", "/opt/spack/share/spack/docker/entrypoint.bash"]
CMD ["interactive-shell"]

# Build stage with Spack pre-installed and ready to be used
FROM nvidia/cuda:11.8.0-devel-ubuntu22.04 as builder
FROM bootstrap as builder

# Install OS packages needed to build the software
RUN apt-get -yqq update && apt-get -yqq upgrade \
Expand Down Expand Up @@ -156,6 +156,7 @@ RUN { \
&& chmod a+x /entrypoint.sh \
&& ln -s /opt/views/view /opt/view

RUN apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/3bf863cc.pub

RUN apt-get -yqq update && apt-get -yqq upgrade \
&& apt-get -yqq install build-essential bash git cmake wget gfortran tar \
Expand Down
2 changes: 1 addition & 1 deletion cuda-12/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ ENTRYPOINT ["/bin/bash", "/opt/spack/share/spack/docker/entrypoint.bash"]
CMD ["interactive-shell"]

# Build stage with Spack pre-installed and ready to be used
FROM nvidia/cuda:12.4.1-devel-ubuntu22.04 as builder
FROM bootstrap as builder

# Install OS packages needed to build the software
RUN apt-get -yqq update && apt-get -yqq upgrade \
Expand Down
7 changes: 4 additions & 3 deletions ubuntu-clang/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -113,16 +113,17 @@ RUN { \
&& chmod a+x /entrypoint.sh \
&& ln -s /opt/views/view /opt/view

RUN apt-get -yqq update && apt-get -yqq upgrade \
&& apt-get -yqq install build-essential bash git tar gfortran curl wget \
&& rm -rf /var/lib/apt/lists/*

# Install LLVM in the final image
RUN apt-get -yqq update && apt-get -yqq install lsb-release software-properties-common
RUN wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add -
RUN add-apt-repository "deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-17 main"
RUN apt-get -yqq update
RUN apt-get -yqq install clang-17 libc++-17-dev libc++abi-17-dev libomp-17-dev libclang-rt-17-dev

RUN apt-get -yqq update && apt-get -yqq upgrade \
&& apt-get -yqq install build-essential bash git tar gfortran curl wget \
&& rm -rf /var/lib/apt/lists/*
ENTRYPOINT [ "/entrypoint.sh" ]
CMD [ "/bin/bash" ]

0 comments on commit 1b0f496

Please sign in to comment.