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
2
2
3
3
USER root
4
- ENV GCC_VERSION 7.3 .0
4
+ ENV GCC_VERSION 8.2 .0
5
5
6
6
RUN DEBIAN_FRONTEND=noninteractive transientBuildDeps="file" \
7
7
&& echo "NB_USER=${NB_USER}" \
@@ -16,14 +16,14 @@ RUN DEBIAN_FRONTEND=noninteractive transientBuildDeps="file" \
16
16
&& apt-get update -y \
17
17
&& apt-get install -y --no-install-recommends \
18
18
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 \
22
22
mpich>=3.2 \
23
23
libmpich-dev>=3.2 \
24
24
${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 " \
27
27
&& gcc --version \
28
28
&& gfortran --version \
29
29
&& mpiexec --version \
@@ -74,4 +74,4 @@ RUN DEBIAN_FRONTEND=noninteractive transientBuildDeps="cmake cmake-data git" \
74
74
&& apt-get purge -y --auto-remove ${transientBuildDeps} \
75
75
&& rm -rf /var/lib/apt/lists/* /var/log/* /tmp/*
76
76
77
- USER "${NB_USER}"
77
+ USER "${NB_USER}"
Original file line number Diff line number Diff line change @@ -34,6 +34,10 @@ program main
34
34
35
35
implicit none
36
36
37
+ #ifndef MPI_WORKING_MODULE
38
+ include ' mpif.h'
39
+ #endif
40
+
37
41
call mpi_matches_caf(get_communicator())
38
42
! ! verify # ranks = # images and image number = rank + 1
39
43
@@ -83,8 +87,10 @@ pure function destination_team(image,numTeams) result(team)
83
87
team = mod (image+1 ,numTeams)+ 1
84
88
end function
85
89
86
- subroutine mpi_matches_caf (comm )
90
+ subroutine mpi_matches_caf (comm )
91
+ #ifdef MPI_WORKING_MODULE
87
92
use mpi
93
+ #endif
88
94
use iso_c_binding, only : c_int
89
95
integer (c_int), intent (in ) :: comm
90
96
! ! MPI communicator
You can’t perform that action at this time.
0 commit comments