File tree Expand file tree Collapse file tree 2 files changed +15
-9
lines changed
.Dockerfiles/master-jupyter-inherit Expand file tree Collapse file tree 2 files changed +15
-9
lines changed Original file line number Diff line number Diff line change 1- FROM jupyter/minimal-notebook:f3652d3f58f2
1+ FROM jupyter/minimal-notebook:latest
22
33USER root
4- ENV GCC_VERSION 7.3 .0
4+ ENV GCC_VERSION 8.2 .0
55
66RUN DEBIAN_FRONTEND=noninteractive transientBuildDeps="file" \
77 && echo "NB_USER=${NB_USER}" \
@@ -16,14 +16,14 @@ RUN DEBIAN_FRONTEND=noninteractive transientBuildDeps="file" \
1616 && apt-get update -y \
1717 && apt-get install -y --no-install-recommends \
1818 build-essential \
19- gcc-7>=7.3 .0 \
20- gfortran-7>=7.3 .0 \
21- g++-7>=7.3 .0 \
19+ gcc-8>=8.2 .0 \
20+ gfortran-8>=8.2 .0 \
21+ g++-8>=8.2 .0 \
2222 mpich>=3.2 \
2323 libmpich-dev>=3.2 \
2424 ${transientBuildDeps} \
25- && update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 60 --slave /usr/bin/gfortran gfortran /usr/bin/gfortran-7 \
26- && update-alternatives --set gcc "/usr/bin/gcc-7 " \
25+ && update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 60 --slave /usr/bin/gfortran gfortran /usr/bin/gfortran-8 \
26+ && update-alternatives --set gcc "/usr/bin/gcc-8 " \
2727 && gcc --version \
2828 && gfortran --version \
2929 && mpiexec --version \
@@ -74,4 +74,4 @@ RUN DEBIAN_FRONTEND=noninteractive transientBuildDeps="cmake cmake-data git" \
7474 && apt-get purge -y --auto-remove ${transientBuildDeps} \
7575 && rm -rf /var/lib/apt/lists/* /var/log/* /tmp/*
7676
77- USER "${NB_USER}"
77+ USER "${NB_USER}"
Original file line number Diff line number Diff line change @@ -34,6 +34,10 @@ program main
3434
3535 implicit none
3636
37+ #ifndef MPI_WORKING_MODULE
38+ include ' mpif.h'
39+ #endif
40+
3741 call mpi_matches_caf(get_communicator())
3842 ! ! verify # ranks = # images and image number = rank + 1
3943
@@ -83,8 +87,10 @@ pure function destination_team(image,numTeams) result(team)
8387 team = mod (image+1 ,numTeams)+ 1
8488 end function
8589
86- subroutine mpi_matches_caf (comm )
90+ subroutine mpi_matches_caf (comm )
91+ #ifdef MPI_WORKING_MODULE
8792 use mpi
93+ #endif
8894 use iso_c_binding, only : c_int
8995 integer (c_int), intent (in ) :: comm
9096 ! ! MPI communicator
You can’t perform that action at this time.
0 commit comments