-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.compiler
More file actions
54 lines (46 loc) · 1.18 KB
/
Dockerfile.compiler
File metadata and controls
54 lines (46 loc) · 1.18 KB
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
FROM debian:trixie-slim
LABEL maintainer="SaC Development Team <info@sac-home.org>"
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
linux-base \
linux-perf \
build-essential \
ca-certificates \
ninja-build \
cmake \
curl \
git \
numactl \
python3 \
xsltproc \
openmpi-bin \
libopenmpi-dev \
libhwloc-dev \
uuid-runtime \
uuid-dev \
bison \
flex \
m4 \
&& apt-get clean \
&& apt-get autoclean \
&& apt-get --purge autoremove
# Build and install the SaC compiler
RUN git clone --recursive --single-branch https://gitlab.sac-home.org/sac-group/sac2c.git \
&& cd sac2c \
&& GENERATOR=Ninja make -j4 \
&& make symlink \
&& sac2c -V
# Ensure linker cache is valid
RUN ldconfig
# Build and install the standard library
RUN git clone --recursive --single-branch https://github.com/SacBase/Stdlib.git \
&& cd Stdlib \
&& cmake -S . -B build -G Ninja -DLINKSETSIZE=200 \
&& cmake --build build -j4
# Build and install energy measuring library
RUN git clone --recursive --single-branch https://github.com/SacBase/Energy.git \
&& cd Energy \
&& make
# Copy .sac2crc to home directory
RUN cp -r /root/.sac2crc /home/.sac2crc
WORKDIR /home