-
Notifications
You must be signed in to change notification settings - Fork 180
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updates the version of components except UFS and verify to the current tip of their respective develop branches. Verify is not yet updated because we are currently on a branch that hasn't been merged to develop yet in order to use the module/py environment fix. GSI will still need to be updated further before use after the resolution of NOAA-EMC/GSI/issues/348 Also updated the GSI and UPP build scripts to take in debug (`-d`), operations (`-o`), and verbose (`-v`) options and apply them as appropriate to the component build scripts. The ops flag for GSI still needs work, as I encountered issues using the [build_4nco_global.sh](https://github.com/NOAA-EMC/GSI/blob/develop/ush/build_4nco_global.sh) or [prune_4nco_global.sh](https://github.com/NOAA-EMC/GSI/blob/develop/ush/prune_4nco_global.sh) scripts. Also fixes a typo in the `parm/post` file list. Updates are in preparation for the [COM reorg](#761)
- Loading branch information
1 parent
2dc2af0
commit 65cdcce
Showing
13 changed files
with
245 additions
and
56 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
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,16 @@ | ||
help([[ | ||
Build environment for GSI monitor on Hera | ||
]]) | ||
|
||
prepend_path("MODULEPATH", "/scratch2/NCEPDEV/nwprod/hpc-stack/libs/hpc-stack/modulefiles/stack") | ||
|
||
load(pathJoin("hpc", "1.1.0")) | ||
load(pathJoin("hpc-intel", "18.0.5.274")) | ||
load(pathJoin("hpc-impi", "2018.0.4")) | ||
|
||
load(pathJoin("cmake", "3.20.1")) | ||
|
||
load(pathJoin("hdf5", "1.10.6")) | ||
load(pathJoin("netcdf", "4.7.4")) | ||
|
||
load(pathJoin("w3emc", "2.9.1")) |
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,16 @@ | ||
help([[ | ||
Build environment for GSI monitor on Orion | ||
]]) | ||
|
||
prepend_path("MODULEPATH", "/apps/contrib/NCEP/libs/hpc-stack/modulefiles/stack") | ||
|
||
load(pathJoin("hpc", "1.1.0")) | ||
load(pathJoin("hpc-intel", "2018.4")) | ||
load(pathJoin("hpc-impi", "2018.4")) | ||
|
||
load(pathJoin("cmake", "3.22.1")) | ||
|
||
load(pathJoin("hdf5", "1.10.6")) | ||
load(pathJoin("netcdf", "4.7.4")) | ||
|
||
load(pathJoin("w3emc", "2.9.1")) |
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,16 @@ | ||
help([[ | ||
Build environment for GSI monitor on WCOSS Dell | ||
]]) | ||
|
||
prepend_path("MODULEPATH", "/usrx/local/nceplibs/dev/hpc-stack/libs/hpc-stack/modulefiles/stack") | ||
|
||
load(pathJoin("hpc", "1.1.0")) | ||
load(pathJoin("hpc-ips", "18.0.1.163")) | ||
load(pathJoin("hpc-impi", "18.0.1")) | ||
|
||
load(pathJoin("cmake", "3.20.2")) | ||
|
||
load(pathJoin("hdf5", "1.10.6")) | ||
load(pathJoin("netcdf", "4.7.4")) | ||
|
||
load(pathJoin("w3emc", "2.9.1")) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
#! /usr/bin/env bash | ||
set -eux | ||
|
||
source ./machine-setup.sh > /dev/null 2>&1 | ||
cwd=$(pwd) | ||
|
||
BUILD_TYPE="Release" | ||
DIR_ROOT="${cwd}/gsi_monitor.fd" | ||
BUILD_DIR="${DIR_ROOT}/build" | ||
INSTALL_PREFIX="${DIR_ROOT}/install" | ||
GSI_INSTALL_PREFIX="${cwd}/gsi.fd/install" | ||
|
||
OPTIND=1 | ||
while getopts ":dov" option; do | ||
case "${option}" in | ||
d) export BUILD_TYPE="DEBUG";; | ||
o) _ops="YES";; | ||
v) export BUILD_VERBOSE="YES";; | ||
\?) | ||
echo "[$BASH_SOURCE]: Unrecognized option: ${option}" | ||
usage | ||
;; | ||
:) | ||
echo "[$BASH_SOURCE]: ${option} requires an argument" | ||
usage | ||
;; | ||
esac | ||
done | ||
shift $((OPTIND-1)) | ||
|
||
# Load necessary modules | ||
source machine-setup.sh > /dev/null 2>&1 | ||
module use ${cwd}/../modulefiles | ||
modulefile=${cwd}/../modulefiles/gsi_monitor.${target} | ||
if [[ -f ${modulefile}.lua ]]; then | ||
set +x | ||
module load gsi_monitor.$target | ||
module list | ||
set -x | ||
else | ||
echo "FATAL: modulefile ${modulefile}.lua not found!" | ||
exit 1 | ||
fi | ||
|
||
if [[ -d "${BUILD_DIR}" ]]; then | ||
rm -Rf "${BUILD_DIR}" | ||
fi | ||
mkdir -p "${BUILD_DIR}" | ||
cd "${BUILD_DIR}" | ||
|
||
CMAKE_OPTS="" | ||
|
||
CMAKE_OPTS+="-DBUILD_UTIL_ALLMON=YES" | ||
|
||
if [[ -d "${GSI_INSTALL_PREFIX}" ]]; then | ||
CMAKE_OPTS+=" -Dncdiag_ROOT=${GSI_INSTALL_PREFIX}" | ||
else | ||
echo <<- EOF | ||
FATAL: ${GSI_INSTALL_PREFIX} does not exist | ||
Have you built GSI yet? | ||
EOF | ||
exit 2 | ||
fi | ||
|
||
# Collect BUILD Options | ||
CMAKE_OPTS+=" -DCMAKE_BUILD_TYPE=${BUILD_TYPE}" | ||
|
||
# Install destination for built executables, libraries, CMake Package config | ||
CMAKE_OPTS+=" -DCMAKE_INSTALL_PREFIX=${INSTALL_PREFIX}" | ||
|
||
set -x | ||
cmake $CMAKE_OPTS $DIR_ROOT | ||
make -j ${BUILD_JOBS:-8} VERBOSE=${BUILD_VERBOSE:-} | ||
make install | ||
set +x | ||
|
||
# Clean up build directory | ||
rm -Rf "${BUILD_DIR}" | ||
|
||
exit |
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
Oops, something went wrong.