Skip to content

Commit

Permalink
test openmpi
Browse files Browse the repository at this point in the history
  • Loading branch information
wkliao committed Jan 5, 2023
1 parent 0426233 commit be23d8e
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 16 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/mac_mpich.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@ on:
- 'docs/*'

env:
MPICH_VERSION: 4.0.2
HDF5_VERSION: 1.13.3
NETCDF_VERSION: 4.9.0
MPICH_VERSION: 4.0.3

jobs:
build:
Expand Down Expand Up @@ -73,8 +71,8 @@ jobs:
FC=gfortran \
FFLAGS=-fallow-argument-mismatch \
FCFLAGS=-fallow-argument-mismatch
make -s LIBTOOLFLAGS=--silent V=1 -j 4 install > qout 2>&1
make -s -j 4 distclean >> qout 2>&1
make -s LIBTOOLFLAGS=--silent V=1 -j 8 install > qout 2>&1
make -s -j 8 distclean >> qout 2>&1
- name: Build PnetCDF
run: |
cd ${GITHUB_WORKSPACE}
Expand All @@ -97,6 +95,7 @@ jobs:
cat ${GITHUB_WORKSPACE}/config.log
- name: make check
run: |
cd ${GITHUB_WORKSPACE}
make check
- name: Print test log files
if: ${{ always() }}
Expand All @@ -112,13 +111,17 @@ jobs:
done
- name: make ptests
run: |
cd ${GITHUB_WORKSPACE}
make ptests
- name: make distcheck
run: |
make distcheck DISTCHECK_CONFIGURE_FLAGS="--silent --with-mpi=${GITHUB_WORKSPACE}/MPICH"
cd ${GITHUB_WORKSPACE}
make -j 8 distcheck DISTCHECK_CONFIGURE_FLAGS="--silent --with-mpi=${GITHUB_WORKSPACE}/MPICH"
- name: Cleanup
if: ${{ always() }}
run: |
cd ${GITHUB_WORKSPACE}
make -s distclean
rm -rf ${GITHUB_WORKSPACE}/pnetcdf_output
rm -rf ${GITHUB_WORKSPACE}/MPICH
21 changes: 11 additions & 10 deletions .github/workflows/mac_openmpi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Mac OSX with OpenMPI

on:
push:
branches: [ master ]
branches: [ master, test_github_actions ]
paths-ignore:
- '**/*.md'
- '**/*.txt'
Expand All @@ -11,7 +11,7 @@ on:
- '**/*.png'
- 'docs/*'
pull_request:
branches: [ master ]
branches: [ master, test_github_actions ]
paths-ignore:
- '**/*.md'
- '**/*.txt'
Expand All @@ -20,20 +20,17 @@ on:
- '**/*.png'
- 'docs/*'

env:
MPICH_VERSION: 4.0.2
HDF5_VERSION: 1.13.3
NETCDF_VERSION: 4.9.0

jobs:
build:
runs-on: macos-13
runs-on: macos-latest
timeout-minutes: 60
steps:
- uses: actions/checkout@v3
- name: Set up dependencies
run: |
brew instal automake autoconf libtool m4 open-mpi zlib
echo "---- location of OpenMPI C compiler ----"
which mpicc
- name: Build PnetCDF
run: |
cd ${GITHUB_WORKSPACE}
Expand All @@ -56,6 +53,7 @@ jobs:
cat ${GITHUB_WORKSPACE}/config.log
- name: make check
run: |
cd ${GITHUB_WORKSPACE}
make check
- name: Print test log files
if: ${{ always() }}
Expand All @@ -71,13 +69,16 @@ jobs:
done
- name: make ptests
run: |
cd ${GITHUB_WORKSPACE}
make ptests
- name: make distcheck
run: |
make distcheck DISTCHECK_CONFIGURE_FLAGS="--silent"
cd ${GITHUB_WORKSPACE}
make -j 8 distcheck DISTCHECK_CONFIGURE_FLAGS="--silent"
- name: Cleanup
if: ${{ always() }}
run: |
cd ${GITHUB_WORKSPACE}
make -s distclean
rm -rf ${GITHUB_WORKSPACE}/pnetcdf_output
rm -rf pnetcdf_output

0 comments on commit be23d8e

Please sign in to comment.