-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.compiler
More file actions
50 lines (43 loc) · 1.12 KB
/
Dockerfile.compiler
File metadata and controls
50 lines (43 loc) · 1.12 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
FROM debian:trixie-slim
LABEL maintainer="SaC Development Team <[email protected]>"
RUN apt update \
&& apt install -y --no-install-recommends \
linux-base \
linux-perf \
build-essential \
ca-certificates \
cmake \
curl \
git \
numactl \
python3 \
xsltproc \
openmpi-bin \
libopenmpi-dev \
libhwloc-dev \
uuid-runtime \
uuid-dev \
bison \
flex \
m4 \
&& apt clean \
&& apt autoclean \
&& apt --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 \
&& make release -j2 \
&& cp build_p/sac2c_p /usr/bin/sac2c \
&& sac2c -V
# Build and install the standard library
RUN git clone --recursive --single-branch https://github.com/SacBase/Stdlib.git \
&& cd Stdlib && mkdir build && cd build \
&& cmake -DBUILD_EXT=ON -DLINKSETSIZE=200 .. \
&& make -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