-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
46 lines (39 loc) · 1.08 KB
/
Dockerfile
File metadata and controls
46 lines (39 loc) · 1.08 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
# PASSLab OMPT Research Image.
# Copyright (c) PASSLab Team, 2018. All rights reserved.
# Use Ubuntu 16.04 (with proper init system) as the base.
FROM phusion/baseimage:0.11
RUN apt-get update && apt-get dist-upgrade -y
# Set working directory to `/opt`.
WORKDIR /opt
# Install needed tools.
RUN apt-add-repository -y ppa:lttng/stable-2.10 && \
apt-get update && \
apt-get install -y \
build-essential \
cmake \
git \
lttng-tools \
lttng-modules-dkms \
liblttng-ust-dev \
&& rm -rf /var/lib/apt/lists/*
# Build OpenMP runtime.
RUN git clone https://github.com/llvm-mirror/openmp.git && \
cd openmp && \
git remote update && \
cd .. && \
mkdir -p openmp-build && \
mkdir -p openmp-install && \
cd openmp-build && \
cmake -G "Unix Makefiles" \
-DCMAKE_BUILD_TYPE=Debug \
-DCMAKE_INSTALL_PREFIX=../openmp-install \
-DOPENMP_ENABLE_LIBOMPTARGET=off \
-DLIBOMP_OMPT_SUPPORT=on \
../openmp
RUN cd openmp-build && \
make && \
make install
COPY . pinsight
RUN cd pinsight && \
make && \
make test