Skip to content

Commit 600f40e

Browse files
committed
Merge branch 'Docker-update' of github.com:sourceryinstitute/OpenCoarrays
2 parents b480f1d + e98a23f commit 600f40e

File tree

5 files changed

+22
-14
lines changed

5 files changed

+22
-14
lines changed

.Dockerfiles/master-jupyter-inherit/Dockerfile

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
FROM jupyter/minimal-notebook:f3652d3f58f2
1+
FROM jupyter/minimal-notebook:4cdbc9cdb7d1
22

33
USER root
4-
ENV GCC_VERSION 7.3.0
4+
ENV GCC_VERSION 8.2.0
55

66
RUN 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}"

.Dockerfiles/master-jupyter-inherit/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ build: $(subst /,_,$(NAME))-build.stamp ## Build docker file. Depending on which
1919

2020
$(subst /,_,$(NAME))-build.stamp: Dockerfile .dockerignore hooks/build ## Target for doing & timestamping the build
2121
touch $@
22-
hooks/build 2>&1 | tee $(subst stamp,log,$@) || rm -rf $@
22+
IMAGE_NAME=$(IMAGE_NAME) hooks/build 2>&1 | tee $(subst stamp,log,$@) || rm -rf $@
2323
docker tag $(NAME) $(NAME):$(GIT_MASTER_HEAD_SHA)
2424
docker tag $(NAME) $(NAME):latest
2525

.Dockerfiles/master-jupyter-inherit/hooks/build

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,15 @@ git fetch -v --all --depth=9999999 --update-shallow
1515
git tag --list
1616
git branch
1717

18+
echo "Info: value of IMAGE_NAME = ${IMAGE_NAME:-<unset>}"
19+
1820
d_repo='sourceryinstitute/OpenCoarrays'
1921
d_git_remotes=("$(git remote show)")
2022
echo "${#d_git_remotes[@]} git remotes found."
2123
n_remotes=${#d_git_remotes[@]}
2224
if (( n_remotes > 0 )) ; then
2325
echo "Using remote: ${d_git_remotes[0]}"
24-
d_vcs_url="$(git remote -v | awk 'FNR == 1 {print $2}')"
26+
d_vcs_url="$(git remote -v | awk '/origin/ {print $2; exit}')"
2527
fi
2628

2729
if [[ -z "${d_vcs_url:-}" ]]; then
@@ -56,5 +58,5 @@ docker build --build-arg OPENCOARRAYS_VERSION="${opencoarrays_version}" \
5658
--build-arg VCS_VERSION="${d_vcs_describe:-${d_tag}}" \
5759
--rm \
5860
--pull \
59-
-t "${IMAGE_NAME:-$(tr '[:upper:]' '[:lower:]' <<< "${d_repo}")}:latest" .
60-
docker tag "${IMAGE_NAME:-$(tr '[:upper:]' '[:lower:]' <<< "${d_repo}")}:latest" "${IMAGE_NAME:-$(tr '[:upper:]' '[:lower:]' <<< "${d_repo}")}:${d_vcs_tag}"
61+
-t "${IMAGE_NAME:-$(tr '[:upper:]' '[:lower:]' <<< "${d_repo}_jupyter")}:latest" .
62+
docker tag "${IMAGE_NAME:-$(tr '[:upper:]' '[:lower:]' <<< "${d_repo}_jupyter")}:latest" "${IMAGE_NAME:-$(tr '[:upper:]' '[:lower:]' <<< "${d_repo}_jupyter")}:${d_vcs_tag}"

src/tests/unit/teams/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
caf_compile_executable(team_number team-number.f90)
22
caf_compile_executable(teams_subset teams_subset.f90)
3-
caf_compile_executable(get_communicator get-communicator.f90)
3+
caf_compile_executable(get_communicator get-communicator.F90)

src/tests/unit/teams/get-communicator.f90 renamed to src/tests/unit/teams/get-communicator.F90

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)