add spin up command #11
Workflow file for this run
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
on: push | |
jobs: | |
intel-autotools: | |
runs-on: self-hosted | |
#strategy: | |
#matrix: | |
# io-flag: ["--disable-deprecated-io", "--enable-deprecated-io"] | |
# compilers: [ "intel", "intel-classic", "intel-oneapi"] | |
# target: [ "PROD", "DEBUG" ] | |
env: | |
NC_VERSION: 4.7.0 | |
INTEL_VERSION: 2022.1.2 | |
TEST_VERBOSE: 1 | |
MPI_LAUNCHER: "srun --mpi=pmi2 --partition n384" | |
steps: | |
- name: checkout | |
uses: actions/checkout@v2 | |
# TODO env command doesn't seem to work in the runner | |
# if it was we'd be able not module load every step | |
- name: Set up enviroment | |
run: | # writes env variables onto file to allow them to persist across steps | |
module load intel/${INTEL_VERSION} impi/${INTEL_VERSION} netcdf/${NC_VERSION} hdf5 | |
echo "FC=`which mpiifort`" >> "$GITHUB_ENV" | |
echo "CC=`which mpiicc`" >> "$GITHUB_ENV" | |
echo "FCFLAGS=`nf-config --fflags`" >> "$GITHUB_ENV" | |
echo "CFLAGS=`nc-config --cflags`" >> "$GITHUB_ENV" | |
echo "LDFLAGS=`nc-config --libs`" >> "$GITHUB_ENV" | |
# env: | |
# CC: mpifc -fc=${{ matrix.compilers == 'intel-classic' && 'icc' || 'icx'}} | |
# FC: mpifc -fc=${{ matrix.compilers != 'intel-oneapi' && 'ifort' || 'ifx'}} | |
- name: Configure | |
run: | | |
module load intel/${INTEL_VERSION} impi/${INTEL_VERSION} netcdf/${NC_VERSION} hdf5 | |
autoreconf -if ./configure.ac && ./configure | |
- name: Compile | |
run: | | |
module load intel/${INTEL_VERSION} impi/${INTEL_VERSION} netcdf/${NC_VERSION} hdf5 | |
make -j || make | |
- name: Run test suite | |
run: | | |
module load intel/${INTEL_VERSION} impi/${INTEL_VERSION} netcdf/${NC_VERSION} hdf5 | |
${MPI_LAUNCHER} -n 25 hostname > /dev/null | |
make check -k | |