Skip to content

Commit

Permalink
#1202: CI: write container build for Intel 21 OneAPI
Browse files Browse the repository at this point in the history
  • Loading branch information
lifflander authored and cz4rs committed Nov 5, 2021
1 parent daeb446 commit 05fe2d8
Showing 1 changed file with 72 additions and 0 deletions.
72 changes: 72 additions & 0 deletions ci/docker/ubuntu-18.04-intel-oneapi-cpp.dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@

FROM intel/oneapi-hpckit:2021.1-devel-ubuntu18.04 as base

ARG proxy=""

ENV https_proxy=${proxy} \
http_proxy=${proxy}

ENV DEBIAN_FRONTEND=noninteractive

RUN apt-get update -y -q && \
apt-get install -y -q --no-install-recommends \
ca-certificates \
less \
curl \
git \
wget \
zlib1g \
zlib1g-dev \
ninja-build \
valgrind \
make-guile \
libomp5 \
ccache && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*

COPY ./ci/deps/cmake.sh cmake.sh
RUN ./cmake.sh 3.18.4

ENV PATH=/cmake/bin/:$PATH
ENV LESSCHARSET=utf-8

ENV MPICH_CC=icc \
MPICH_CXX=icpc \
CC=mpicc \
CXX=mpicxx

ENV MPI_EXTRA_FLAGS="" \
PATH=/usr/lib/ccache/:$PATH

FROM base as build
COPY . /vt

ARG VT_LB_ENABLED
ARG VT_TRACE_ENABLED
ARG VT_TRACE_RUNTIME_ENABLED
ARG VT_MIMALLOC_ENABLED
ARG VT_DOXYGEN_ENABLED
ARG VT_ASAN_ENABLED
ARG VT_POOL_ENABLED
ARG CMAKE_BUILD_TYPE
ARG VT_EXTENDED_TESTS_ENABLED

ENV VT_LB_ENABLED=${VT_LB_ENABLED} \
VT_TRACE_ENABLED=${VT_TRACE_ENABLED} \
VT_MIMALLOC_ENABLED=${VT_MIMALLOC_ENABLED} \
VT_DOXYGEN_ENABLED=${VT_DOXYGEN_ENABLED} \
VT_TRACE_RUNTIME_ENABLED=${VT_TRACE_RUNTIME} \
VT_ASAN_ENABLED=${VT_ASAN_ENABLED} \
VT_POOL_ENABLED=${VT_POOL_ENABLED} \
VT_MPI_GUARD_ENABLED=${VT_MPI_GUARD_ENABLED} \
VT_EXTENDED_TESTS_ENABLED=${VT_EXTENDED_TESTS_ENABLED} \
VT_UNITY_BUILD_ENABLED=${VT_UNITY_BUILD_ENABLED} \
VT_DIAGNOSTICS_ENABLED=${VT_DIAGNOSTICS_ENABLED} \
VT_DIAGNOSTICS_RUNTIME_ENABLED=${VT_DIAGNOSTICS_RUNTIME_ENABLED} \
CMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}

RUN /vt/ci/build_cpp.sh /vt /build

FROM build as test
RUN /vt/ci/test_cpp.sh /vt /build

0 comments on commit 05fe2d8

Please sign in to comment.