Skip to content

Commit 0f35ff9

Browse files
committed
docker: fix oneapi setup
1 parent 42cce7e commit 0f35ff9

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

docker/Dockerfile.devito

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ RUN python3 -m venv /venv && \
2626
/venv/bin/pip install --no-cache-dir --upgrade pip && \
2727
/venv/bin/pip install --no-cache-dir jupyter && \
2828
/venv/bin/pip install --no-cache-dir wheel && \
29-
eval "$MPI4PY_FLAGS /venv/bin/pip install --no-cache-dir mpi4py" && \
29+
eval $MPI4PY_FLAGS /venv/bin/pip install --no-cache-dir mpi4py && \
3030
/venv/bin/pip install --no-cache-dir -e /app/devito[extras,mpi,tests] && \
3131
rm -rf ~/.cache/pip
3232

docker/Dockerfile.intel

+8-2
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ RUN apt-get update -y && apt-get dist-upgrade -y && \
5959
# Development packages
6060
libigc-dev intel-igc-cm libigdfcl-dev libigfxcmrt-dev level-zero-dev
6161

62+
ENV MPI4PY_FLAGS='. /opt/intel/oneapi/setvars.sh intel64'
63+
6264
##############################################################
6365
# ICC image
6466
# This is a legacy setup that is not built anymore but kept for reference
@@ -70,12 +72,13 @@ RUN apt-get update -y && apt-get install -y intel-oneapi-compiler-dpcpp-cpp-and-
7072
rm -rf /var/lib/apt/lists/*
7173

7274
# Devito config
75+
ENV I_MPI_CC="icc"
76+
ENV I_MPI_CXX="icpc"
7377
ENV DEVITO_ARCH="icc"
7478
ENV DEVITO_LANGUAGE="openmp"
7579
ENV DEVITO_PLATFORM="intel64"
7680
# MPICC compiler for mpi4py
7781
ENV MPICC=mpiicc
78-
ENV MPI4PY_FLAGS='. /opt/intel/oneapi/setvars.sh && CFLAGS="-cc=icc"'
7982

8083
##############################################################
8184
# ICX OpenMP image
@@ -87,11 +90,12 @@ RUN apt-get update -y && apt-get install -y intel-oneapi-compiler-dpcpp-cpp inte
8790
rm -rf /var/lib/apt/lists/*
8891

8992
# Devito config
93+
ENV I_MPI_CC="icx"
94+
ENV I_MPI_CXX="icpx"
9095
ENV DEVITO_ARCH="icx"
9196
ENV DEVITO_LANGUAGE="openmp"
9297
# MPICC compiler for mpi4py
9398
ENV MPICC=mpiicc
94-
ENV MPI4PY_FLAGS='. /opt/intel/oneapi/setvars.sh && CFLAGS="-cc=icx"'
9599

96100
##############################################################
97101
# ICX SYCL CPU image
@@ -102,6 +106,7 @@ FROM icx as cpu-sycl
102106
ENV DEVITO_ARCH="sycl"
103107
ENV DEVITO_LANGUAGE="sycl"
104108
ENV DEVITO_PLATFORM="intel64"
109+
ENV MPICC=sycl
105110

106111
##############################################################
107112
# ICX SYCL GPU image
@@ -112,3 +117,4 @@ FROM icx as gpu-sycl
112117
ENV DEVITO_ARCH="sycl"
113118
ENV DEVITO_LANGUAGE="sycl"
114119
ENV DEVITO_PLATFORM="intelgpuX"
120+
ENV MPICC=sycl

0 commit comments

Comments
 (0)