Skip to content

Commit

Permalink
Add LLVM installation in final container, not dependencies
Browse files Browse the repository at this point in the history
Also installs make again :)
  • Loading branch information
JosseVanDelm committed Dec 22, 2023
1 parent 2c059f6 commit 3d4e6fc
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions container/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,8 @@ RUN git clone https://github.com/kuleuven-micas/snitch_cluster.git /src \
&& git reset --hard d87720fdf66b15325b37391494b990ac606503ab \
&& git submodule update --init

# mlir and clang
RUN apt-get -y install wget lsb-release software-properties-common gnupg \
&& wget https://apt.llvm.org/llvm.sh && chmod +x llvm.sh && ./llvm.sh 17 && rm llvm.sh \
&& apt-get -y install mlir-17-tools
# Snitch-specific version for libc and clang runtime libraries
# LLVM 17 is already installed in base image
RUN mkdir -p /opt/snitch-llvm \
&& wget -qO- https://github.com/pulp-platform/llvm-project/releases/download/0.12.0/riscv32-pulp-llvm-ubuntu1804-0.12.0.tar.gz | \
tar xz --strip-components=1 -C /opt/snitch-llvm
Expand Down Expand Up @@ -119,10 +116,16 @@ RUN apt-get -y update \
libsqlite3-0 \
bzip2 \
# make pip able to install via git
&& apt-get -y install git
&& apt-get -y install git \
# add python3.11 to path in bashrc
RUN echo "export PATH=/opt/python3.11/bin:$PATH" >> ~/.bashrc

# mlir and clang
RUN apt-get -y install wget lsb-release software-properties-common gnupg \
&& wget https://apt.llvm.org/llvm.sh && chmod +x llvm.sh && ./llvm.sh 17 && rm llvm.sh \
&& apt-get -y install mlir-17-tools \
&& apt-get -y install make

# install python requirements
RUN export PATH=/opt/python3.11/bin:$PATH \
&& git clone https://github.com/kuleuven-micas/snax-mlir.git \
Expand Down

0 comments on commit 3d4e6fc

Please sign in to comment.