Skip to content

Commit fb8d267

Browse files
author
Jeff Whitaker
committed
update
1 parent f5888b7 commit fb8d267

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

.github/workflows/build_latest.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
NETCDF_DIR: ${{ github.workspace }}/..
1111
NETCDF_EXTRA_CONFIG: --enable-pnetcdf
1212
#CC: mpicc.mpich
13-
CC: mpicc
13+
CC: mpicc.openmpi
1414
#NO_NET: 1
1515
strategy:
1616
matrix:
@@ -29,8 +29,8 @@ jobs:
2929
- name: Install Ubuntu Dependencies
3030
run: |
3131
sudo apt-get update
32-
#sudo apt-get install mpich libmpich-dev libhdf5-mpich-dev libcurl4-openssl-dev bzip2 libsnappy-dev libblosc-dev libzstd-dev
33-
sudo apt-get install openmpi-bin openmpi-common libopenmpi-dev libcurl4-openssl-dev bzip2 libsnappy-dev libblosc-dev libzstd-dev
32+
sudo apt-get install mpich libmpich-dev libhdf5-mpich-dev openmpi-bin openmpi-common libopenmpi-dev libcurl4-openssl-dev bzip2 libsnappy-dev libblosc-dev libzstd-dev
33+
update-alternatives --list mpirun
3434
echo "Download and build PnetCDF version ${PNETCDF_VERSION}"
3535
wget https://parallel-netcdf.github.io/Release/pnetcdf-${PNETCDF_VERSION}.tar.gz
3636
tar -xzf pnetcdf-${PNETCDF_VERSION}.tar.gz
@@ -48,6 +48,7 @@ jobs:
4848
export LDFLAGS="-L${NETCDF_DIR}/lib"
4949
#export LIBS="-lhdf5_mpich_hl -lhdf5_mpich -lm -lz"
5050
export LIBS="-lhdf5_openmpi_hl -lhdf5_openmpi -lm -lz"
51+
which $CC
5152
./configure --prefix $NETCDF_DIR --enable-netcdf-4 --enable-shared --enable-dap --enable-parallel4 $NETCDF_EXTRA_CONFIG
5253
make -j 2
5354
sudo make install
@@ -79,23 +80,23 @@ jobs:
7980
# parallel (hdf5 for netcdf4, pnetcdf for netcdf3)
8081
cd ../examples
8182
#mpirun.mpich -np 4 python mpi_example.py
82-
mpirun -np 4 --oversubscribe python mpi_example.py
83+
mpirun.openmpi -np 4 --oversubscribe python mpi_example.py
8384
if [ $? -ne 0 ] ; then
8485
echo "hdf5 mpi test failed!"
8586
exit 1
8687
else
8788
echo "hdf5 mpi test passed!"
8889
fi
8990
#mpirun.mpich -np 4 python mpi_example_compressed.py
90-
mpirun -np 4 --oversubscribe python mpi_example_compressed.py
91+
mpirun.openmpi -np 4 --oversubscribe python mpi_example_compressed.py
9192
if [ $? -ne 0 ] ; then
9293
echo "hdf5 compressed mpi test failed!"
9394
exit 1
9495
else
9596
echo "hdf5 compressed mpi test passed!"
9697
fi
9798
#mpirun.mpich -np 4 python mpi_example.py NETCDF3_64BIT_DATA
98-
mpirun -np 4 --oversubscribe python mpi_example.py NETCDF3_64BIT_DATA
99+
mpirun.openmpi -np 4 --oversubscribe python mpi_example.py NETCDF3_64BIT_DATA
99100
if [ $? -ne 0 ] ; then
100101
echo "pnetcdf mpi test failed!"
101102
exit 1

0 commit comments

Comments
 (0)