Skip to content

Commit

Permalink
Merge pull request #144 from Parallel-NetCDF/disable_fortran
Browse files Browse the repository at this point in the history
Github action: disable fortran for Mac OS
  • Loading branch information
wkliao authored Jul 15, 2024
2 parents 1d61ea1 + c4988de commit c4c122e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 15 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/mac_mpich.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ jobs:
- uses: actions/checkout@v4
- name: Set up dependencies
run: |
brew install gcc
which gcc
gcc --version
which gfortran
# brew install gcc
# which gcc
# gcc --version
# which gfortran
brew install automake autoconf libtool m4
- name: Build MPICH
run: |
Expand All @@ -50,10 +50,8 @@ jobs:
--enable-romio \
--with-file-system=ufs \
--with-device=ch3:sock \
CC=gcc \
FC=gfortran \
FFLAGS=-fallow-argument-mismatch \
FCFLAGS=-fallow-argument-mismatch
--disable-fortran \
CC=gcc
make -s LIBTOOLFLAGS=--silent V=1 -j 8 install > qout 2>&1
make -s -j 8 distclean >> qout 2>&1
- name: Build PnetCDF
Expand All @@ -69,6 +67,7 @@ jobs:
--enable-shared \
--enable-thread-safe \
--with-pthread \
--disable-fortran \
--with-mpi=${GITHUB_WORKSPACE}/MPICH \
TESTOUTDIR=${GITHUB_WORKSPACE}/pnetcdf_output
make -j 8 tests
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/mac_openmpi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ jobs:
- uses: actions/checkout@v4
- name: Set up dependencies
run: |
brew install gcc
which gcc
gcc --version
which gfortran
# brew install gcc
# which gcc
# gcc --version
# which gfortran
brew install automake autoconf libtool m4
- name: Build OPENMPI
run: |
Expand All @@ -52,9 +52,8 @@ jobs:
--with-hwloc=internal \
--with-pmix=internal \
--with-libevent=internal \
CC=gcc \
FC=gfortran \
FCFLAGS=-fallow-argument-mismatch
--disable-mpi-fortran \
CC=gcc
make -s LIBTOOLFLAGS=--silent V=1 -j 8 install > qout 2>&1
make -s -j 8 distclean >> qout 2>&1
- name: Build PnetCDF
Expand All @@ -70,6 +69,7 @@ jobs:
--enable-shared \
--enable-thread-safe \
--with-pthread \
--disable-fortran \
--with-mpi=${GITHUB_WORKSPACE}/OPENMPI \
TESTMPIRUN="${GITHUB_WORKSPACE}/OPENMPI/bin/mpiexec --oversubscribe -n NP" \
TESTOUTDIR=${GITHUB_WORKSPACE}/pnetcdf_output
Expand Down

0 comments on commit c4c122e

Please sign in to comment.