Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add 'set -u' to all shell scripts #7

Merged
merged 4 commits into from
Aug 19, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Feature/hera (#6)
* add hera configs

* update compiler and mpi combo

* remove tar.gz after download

* hera config
  • Loading branch information
aerorahul authored and DusanJovic-NOAA committed Aug 19, 2020
commit 08520f6542126c20f0524a3129029aa560d28597
21 changes: 21 additions & 0 deletions config/config_hera.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/bash

# Compiler/MPI combination
export HPC_COMPILER="intel/18.0.5.274"
export HPC_MPI="impi/2018.0.4"

# Build options
export USE_SUDO=N
export PKGDIR=pkg
export LOGDIR=log
export OVERWRITE=N
export NTHREADS=8
export MAKE_CHECK=N
export MAKE_VERBOSE=N
export MAKE_CLEAN=N
export DOWNLOAD_ONLY=N
export STACK_EXIT_ON_FAIL=Y
export WGET="wget -nv"

# Load these basic modules for Hera
module load cmake/3.16.1
197 changes: 197 additions & 0 deletions config/stack_hera.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,197 @@
cmake:
build: NO
version: 3.17.2

jpeg:
build: NO
version: 9.1.0

zlib:
build: YES
shared: NO
version: 1.2.11

png:
build: YES
shared: NO
version: 1.6.35

szip:
build: YES
shared: NO
version: 2.1.1

jasper:
build: YES
shared: NO
version: 2.0.15

udunits:
build: YES
shared: NO
version: 2.2.26

hdf5:
build: YES
version: 1.10.6
shared: NO
enable_szip: NO
enable_zlib: YES

pnetcdf:
build: NO
version: 1.12.1
shared: NO

netcdf:
build: YES
shared: NO
enable_pnetcdf: NO
version_c: 4.7.4
version_f: 4.5.3
version_cxx: 4.3.1

nccmp:
build: YES
version: 1.8.7.0

nco:
build: NO
version: 4.9.3

pio:
build: YES
version: 2.5.1
enable_pnetcdf: NO

esmf:
build: YES
version: 8_1_0_beta_snapshot_00
shared: NO
enable_pnetcdf: NO

gptl:
build: NO
version: 8.0.2

fftw:
build: NO
version: 3.3.8

tau2:
build: NO
version: 3.25.1

bacio:
build: YES
version: v2.4.0
install_as: 2.4.0
openmp: OFF

sigio:
build: YES
version: v2.3.0
install_as: 2.3.0
openmp: OFF

sfcio:
build: YES
version: v1.4.0
install_as: 1.4.0
openmp: OFF

gfsio:
build: YES
version: v1.4.0
install_as: 1.4.0
openmp: OFF

w3nco:
build: YES
version: v2.4.0
install_as: 2.4.0
openmp: OFF

sp:
build: YES
version: v2.3.0
install_as: 2.3.0
openmp: OFF

ip:
build: YES
version: v3.3.0
install_as: 3.3.0
openmp: OFF

ip2:
build: YES
version: v1.1.0
install_as: 1.1.0
openmp: OFF

landsfcutil:
build: YES
version: v2.4.0
install_as: 2.4.0
openmp: OFF

nemsio:
build: YES
version: v2.5.1
install_as: 2.5.1
openmp: OFF

nemsiogfs:
build: YES
version: v2.5.0
install_as: 2.5.0
openmp: OFF

w3emc:
build: YES
version: v2.7.0
install_as: 2.7.0
openmp: OFF

g2:
build: YES
version: v3.4.0
install_as: 3.4.0
openmp: OFF

g2tmpl:
build: YES
version: v1.9.0
install_as: 1.9.0
openmp: OFF

crtm:
build: YES
version: v2.3.0
install_as: 2.3.0
openmp: OFF

nceppost:
build: YES
version: dceca26
install_as: dceca26
openmp: OFF

wrf_io:
build: YES
version: v1.1.1-cmake
install_as: 1.1.1
openmp: OFF

bufr:
build: YES
version: bufr_v11.3.1.1
install_as: 11.3.1.1
openmp: OFF

wgrib2:
build: YES
version: v2.0.8-cmake-v1.0.2
install_as: 2.0.8
openmp: OFF
12 changes: 6 additions & 6 deletions libs/build_nccmp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ version=${1:-${STACK_nccmp_version}}

software=$name-$version

cd ${HPC_STACK_ROOT}/${PKGDIR:-"pkg"}

url="https://gitlab.com/remikz/nccmp/-/archive/$version/${software}.tar.gz"
[[ -d $software ]] || ( $WGET $url; tar -xf $software.tar.gz && rm -f $software.tar.gz )
[[ ${DOWNLOAD_ONLY} =~ [yYtT] ]] && exit 0

# Hyphenated version used for install prefix
compiler=$(echo $HPC_COMPILER | sed 's/\//-/g')
mpi=$(echo $HPC_MPI | sed 's/\//-/g')
Expand Down Expand Up @@ -56,16 +62,10 @@ fi
LDFLAGS5="-L$NETCDF_ROOT/lib -lnetcdf"
export LDFLAGS="${LDFLAGS1:-} ${LDFLAGS2:-} ${LDFLAGS3:-} ${LDFLAGS4:-} ${LDFLAGS5:-}"

url="https://gitlab.com/remikz/nccmp/-/archive/$version/${software}.tar.gz"

cd ${HPC_STACK_ROOT}/${PKGDIR:-"pkg"}

# Enable header pad comparison, if netcdf-c src directory exists!
[[ -d "netcdf-c-$NETCDF_VERSION" ]] && netcdf_src="$PWD/netcdf-c-$NETCDF_VERSION"
[[ -d "netcdf-c-$NETCDF_VERSION" ]] && extra_confs="--with-netcdf=$netcdf_src"

[[ -d $software ]] || ( $WGET $url; tar -xf $software.tar.gz )
[[ ${DOWNLOAD_ONLY} =~ [yYtT] ]] && exit 0
[[ -d $software ]] && cd $software || ( echo "$software does not exist, ABORT!"; exit 1 )
[[ -d build ]] && rm -rf build
mkdir -p build && cd build
Expand Down
2 changes: 1 addition & 1 deletion libs/build_szip.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ cd ${HPC_STACK_ROOT}/${PKGDIR:-"pkg"}

software=$name-$version
url=https://support.hdfgroup.org/ftp/lib-external/szip/$version/src/$software.tar.gz
[[ -d $software ]] || ( $WGET $url; tar -xf $software.tar.gz )
[[ -d $software ]] || ( $WGET $url; tar -xf $software.tar.gz && rm -f $software.tar.gz )
[[ ${DOWNLOAD_ONLY} =~ [yYtT] ]] && exit 0
[[ -d $software ]] && cd $software || ( echo "$software does not exist, ABORT!"; exit 1 )
[[ -d build ]] && rm -rf build
Expand Down
2 changes: 1 addition & 1 deletion libs/build_udunits.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ cd ${HPC_STACK_ROOT}/${PKGDIR:-"pkg"}

software=$name-$version
url=ftp://ftp.unidata.ucar.edu/pub/udunits/$software.tar.gz
[[ -d $software ]] || ( $WGET $url; tar xvf $software.tar.gz )
[[ -d $software ]] || ( $WGET $url; tar xvf $software.tar.gz && rm -f $software.tar.gz )
[[ ${DOWNLOAD_ONLY} =~ [yYtT] ]] && exit 0
[[ -d $software ]] && cd $software || ( echo "$software does not exist, ABORT!"; exit 1 )
[[ -d build ]] && rm -rf build
Expand Down