-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#1202: CI: write container build for Intel 21 OneAPI
- Loading branch information
1 parent
daeb446
commit 05fe2d8
Showing
1 changed file
with
72 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |