forked from CESM-Development/cime
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request ESMCI#1731 from NCAR/ejh_openmpi
Add C testing with openmpi-4.0.4, netcdf-c-4.7.4, pnetcdf-1.12.1
- Loading branch information
Showing
11 changed files
with
191 additions
and
6 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,135 @@ | ||
name: netcdf-4.7.4_pnetcdf-12.1_ncint | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
env: | ||
CPPFLAGS: "-I/home/runner/openmpi/include -I/home/runner/hdf5/include -I/home/runner/netcdf-c/include -I/home/runner/netcdf-fortran/include -I/home/runner/pnetcdf/include" | ||
LDFLAGS: "-L/home/runner/openmpi/lib -L/home/runner/hdf5/lib -L/home/runner/netcdf-c/lib -L/home/runner/netcdf-fortran/lib -L/home/runner/pnetcdf/lib" | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Installs | ||
run: | | ||
sudo apt-get install doxygen graphviz wget gfortran libjpeg-dev libz-dev | ||
- name: cache-openmpi | ||
id: cache-openmpi | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/openmpi | ||
key: openmpi-${{ runner.os }}-4.0.4 | ||
|
||
- name: build-openmpi | ||
if: steps.cache-openmpi.outputs.cache-hit != 'true' | ||
run: | | ||
wget https://download.open-mpi.org/release/open-mpi/v4.0/openmpi-4.0.4.tar.gz &> /dev/null | ||
tar -xzf openmpi-4.0.4.tar.gz | ||
pushd openmpi-4.0.4 | ||
./configure --prefix=/home/runner/openmpi | ||
make | ||
sudo make install | ||
popd | ||
- name: cache-hdf5 | ||
id: cache-hdf5 | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/hdf5 | ||
key: hdf5-${{ runner.os }}-1.10.6-openmpi-4.0.4 | ||
|
||
- name: build-hdf5 | ||
if: steps.cache-hdf5.outputs.cache-hit != 'true' | ||
run: | | ||
set -x | ||
export PATH="/home/runner/openmpi/bin:$PATH" | ||
export CC=/home/runner/openmpi/bin/mpicc | ||
wget https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.10/hdf5-1.10.6/src/hdf5-1.10.6.tar.gz &> /dev/null | ||
tar -xzf hdf5-1.10.6.tar.gz | ||
pushd hdf5-1.10.6 | ||
./configure --prefix=/home/runner/hdf5 --enable-parallel --disable-tools --disable-fortran --disable-cxx --enable-parallel-tests | ||
make | ||
sudo make install | ||
popd | ||
- name: cache-netcdf-c | ||
id: cache-netcdf-c | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/netcdf-c | ||
key: netcdf-c-${{ runner.os }}-4.7.4-openmpi-4.0.4 | ||
|
||
- name: build-netcdf-c | ||
if: steps.cache-netcdf-c.outputs.cache-hit != 'true' | ||
run: | | ||
set -x | ||
export PATH="/home/runner/openmpi/bin:$PATH" | ||
export CC=/home/runner/openmpi/bin/mpicc | ||
wget https://www.unidata.ucar.edu/downloads/netcdf/ftp/netcdf-c-4.7.4.tar.gz &> /dev/null | ||
tar -xzf netcdf-c-4.7.4.tar.gz | ||
pushd netcdf-c-4.7.4 | ||
./configure --prefix=/home/runner/netcdf-c --disable-dap --disable-utilities | ||
make -j | ||
sudo make install | ||
popd | ||
- name: cache-netcdf-fortran | ||
id: cache-netcdf-fortran | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/netcdf-fortran | ||
key: netcdf-fortran-${{ runner.os }}-4.5.3-openmpi-4.0.4 | ||
|
||
- name: build-netcdf-fortran | ||
if: steps.cache-netcdf-fortran.outputs.cache-hit != 'true' | ||
run: | | ||
set -x | ||
export PATH="/home/runner/openmpi/bin:$PATH" | ||
export CC=/home/runner/openmpi/bin/mpicc | ||
wget https://github.com/Unidata/netcdf-fortran/archive/v4.5.3.tar.gz &> /dev/null | ||
tar -xzf v4.5.3.tar.gz | ||
pushd netcdf-fortran-4.5.3 | ||
./configure --prefix=/home/runner/netcdf-fortran | ||
make -j | ||
sudo make install | ||
popd | ||
- name: cache-pnetcdf | ||
id: cache-pnetcdf | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/pnetcdf | ||
key: pnetcdf-${{ runner.os }}-1.12.1-openmpi-4.0.4 | ||
|
||
- name: build-pnetcdf | ||
if: steps.cache-pnetcdf.outputs.cache-hit != 'true' | ||
run: | | ||
set -x | ||
export PATH="/home/runner/openmpi/bin:$PATH" | ||
export CC=/home/runner/openmpi/bin/mpicc | ||
wget https://parallel-netcdf.github.io/Release/pnetcdf-1.12.1.tar.gz &> /dev/null | ||
tar -xzf pnetcdf-1.12.1.tar.gz | ||
pushd pnetcdf-1.12.1 | ||
./configure --prefix=/home/runner/pnetcdf --enable-shared --disable-cxx | ||
make | ||
sudo make install | ||
popd | ||
- name: autoreconf | ||
run: autoreconf -i | ||
- name: pio build | ||
run: | | ||
set -x | ||
echo 'export PATH=/home/runner/openmpi/bin:$PATH' > .bashrc | ||
echo $'alias mpiexec=\'mpiexec --oversubscribe\'' >> .bashrc | ||
cat .bashrc | ||
source .bashrc | ||
export PATH="/home/runner/openmpi/bin:$PATH" | ||
export CC=/home/runner/openmpi/bin/mpicc | ||
./configure --with-mpiexec='mpiexec --oversubscribe' | ||
which mpiexec | ||
make check | ||
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
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
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
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
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
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
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
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
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
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