Skip to content

Commit a6518a2

Browse files
committed
Merge branch 'main' of github.com:wsmoses/Enzyme-Tutorial
Merge remote changes to the order and makefile of P2 into the main branch.
2 parents 48b8666 + 27ebcdd commit a6518a2

File tree

2 files changed

+471
-82
lines changed

2 files changed

+471
-82
lines changed

docker/Dockerfile

+12-13
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,14 @@
1-
# Use Alpine Linux as the parent image
21
FROM ubuntu:20.04
32

43
ENV DEBIAN_FRONTEND=noninteractive
54

6-
RUN apt-get -y update
7-
8-
RUN apt-get install -y wget gnupg lsb-core software-properties-common
9-
10-
RUN wget -O key.key https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add key.key
11-
12-
RUN apt-add-repository "deb http://apt.llvm.org/`lsb_release -c | cut -f2`/ llvm-toolchain-`lsb_release -c | cut -f2`-12 main"
13-
14-
RUN apt-get install -y autoconf cmake ninja-build gcc g++ libtool gfortran llvm-12-dev clang-12 libopenmpi-dev openmpi-bin git
5+
RUN apt-get -y update && apt-get install -y --no-install-recommends curl gnupg lsb-core software-properties-common \
6+
&& curl -fsSL https://apt.llvm.org/llvm-snapshot.gpg.key|apt-key add - \
7+
&& apt-add-repository "deb http://apt.llvm.org/`lsb_release -c | cut -f2`/ llvm-toolchain-`lsb_release -c | cut -f2`-12 main" \
8+
&& apt-get install -y --no-install-recommends autoconf cmake ninja-build gcc g++ libtool gfortran llvm-12-dev clang-12 libopenmpi-dev openmpi-bin git \
9+
&& apt-get autoremove -y --purge \
10+
&& apt-get clean -y \
11+
&& rm -rf /var/lib/apt/lists/*
1512

1613
# Get & install Enzyme
1714
RUN git clone https://github.com/wsmoses/Enzyme.git \
@@ -20,6 +17,8 @@ RUN git clone https://github.com/wsmoses/Enzyme.git \
2017
&& cmake -G Ninja .. -DCMAKE_BUILD_TYPE=Debug \
2118
&& ninja
2219

23-
RUN update-alternatives --install /usr/bin/clang clang /usr/bin/clang-12 10 --slave /usr/bin/clang++ clang++ /usr/bin/clang++-12
24-
RUN update-alternatives --install /usr/bin/opt opt /usr/bin/opt-12 10
25-
RUN update-alternatives --install /usr/bin/llvm-symbolizer llvm-symbolizer /usr/bin/llvm-symbolizer-12 10
20+
RUN update-alternatives --install /usr/bin/clang clang /usr/bin/clang-12 10 --slave /usr/bin/clang++ clang++ /usr/bin/clang++-12 \
21+
&& update-alternatives --install /usr/bin/opt opt /usr/bin/opt-12 10 \
22+
&& update-alternatives --install /usr/bin/llvm-symbolizer llvm-symbolizer /usr/bin/llvm-symbolizer-12 10
23+
24+
ENV DEBIAN_FRONTEND=

0 commit comments

Comments
 (0)