Flash-io benchmark configure: add fortran compiler flag to allow type mismatch #133
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ubuntu_openmpi | |
on: | |
push: | |
branches: master | |
paths-ignore: | |
- '**/*.md' | |
- '**/*.txt' | |
- '**/*.1' | |
- 'docs/*' | |
- 'test/test_installed/*' | |
pull_request: | |
branches: master | |
paths-ignore: | |
- '**/*.md' | |
- '**/*.txt' | |
- '**/*.1' | |
- 'docs/*' | |
- 'test/test_installed/*' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
timeout-minutes: 60 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install automake autoconf libtool libtool-bin m4 | |
# zlib | |
sudo apt-get install zlib1g-dev | |
# mpi | |
sudo apt-get install openmpi-bin openmpi-common libopenmpi-dev libgtk2.0-dev | |
echo "---- location of OpenMPI C compiler ----" | |
which mpicc | |
- name: Build PnetCDF | |
run: | | |
cd ${GITHUB_WORKSPACE} | |
autoreconf -i | |
mkdir -p /dev/shm/pnetcdf_output | |
./configure --enable-option-checking=fatal \ | |
--enable-profiling \ | |
pnc_ac_debug=yes \ | |
--enable-burst_buffering \ | |
--enable-subfiling \ | |
--enable-shared \ | |
--enable-thread-safe \ | |
--with-pthread \ | |
TESTMPIRUN="mpiexec --oversubscribe -n NP" \ | |
TESTOUTDIR=/dev/shm/pnetcdf_output | |
make -j 8 tests | |
- name: Print config.log | |
if: ${{ always() }} | |
run: | | |
cat ${GITHUB_WORKSPACE}/config.log | |
- name: make check | |
run: | | |
cd ${GITHUB_WORKSPACE} | |
make check | |
- name: Print test log files | |
if: ${{ always() }} | |
run: | | |
cd ${GITHUB_WORKSPACE} | |
fname=`find src test examples benchmarks -type f -name "*.log"` | |
for f in $fname ; do \ | |
bname=`basename $f` ; \ | |
if test "x$bname" != xconfig.log ; then \ | |
echo "-------- dump $f ----------------------------" ; \ | |
cat $f ; \ | |
fi ; \ | |
done | |
- name: make ptests | |
run: | | |
cd ${GITHUB_WORKSPACE} | |
make ptests | |
- name: make distcheck | |
run: | | |
cd ${GITHUB_WORKSPACE} | |
make -j 8 distcheck DISTCHECK_CONFIGURE_FLAGS="--silent TESTOUTDIR=/dev/shm/pnetcdf_output" | |
- name: Cleanup | |
if: ${{ always() }} | |
run: | | |
cd ${GITHUB_WORKSPACE} | |
make -s distclean | |
rm -rf /dev/shm/pnetcdf_output | |