Skip to content

Commit

Permalink
Merge pull request #20 from EdwardSafford-NOAA/develop
Browse files Browse the repository at this point in the history
Update RadMon, add support for orion, completes #14
  • Loading branch information
EdwardSafford-NOAA authored Aug 12, 2022
2 parents 50eb463 + 866d68b commit 8bdc3d8
Show file tree
Hide file tree
Showing 33 changed files with 499 additions and 937 deletions.
8 changes: 8 additions & 0 deletions modulefiles/common-run.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
help([[
Load common modules to run GSI Monitoring on all machines
]])

local wgrib2_ver=os.getenv("wgrib2_ver") or "2.0.8"

load(pathJoin("wgrib2", wgrib2_ver))

2 changes: 1 addition & 1 deletion modulefiles/common.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Load common modules to build GSI Monitoring on all machines
]])

local netcdf_ver=os.getenv("netcdf_ver") or "4.7.4"
local bacio=os.getenv("bacio_ver") or "2.4.1"
local bacio_ver=os.getenv("bacio_ver") or "2.4.1"
local w3emc_ver=os.getenv("w3emc_ver") or "2.9.2"
local ncdiag_ver=os.getenv("ncdiag_ver") or "1.0.0"

Expand Down
18 changes: 18 additions & 0 deletions modulefiles/hera.gnu-run.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
help([[
]])

prepend_path("MODULEPATH", "/scratch2/NCEPDEV/nwprod/hpc-stack/libs/hpc-stack/modulefiles/stack")

local hpc_ver=os.getenv("hpc_ver") or "1.1.0"
local hpc_gnu_ver=os.getenv("hpc_gnu_ver") or "9.2.0"
local grads_ver=os.getenv("grads_ver") or "2.2.1"
local prod_util_ver=os.getenv("prod_util_ver") or "1.2.2"

load(pathJoin("hpc", hpc_ver))
load(pathJoin("hpc-gnu", hpc_gnu_ver))
load(pathJoin("grads", grads_ver))
load(pathJoin("prod_util", prod_util_ver))

load("common-run")

whatis("Description: GSI Monitoring environment on Hera with GNU Compilers")
19 changes: 19 additions & 0 deletions modulefiles/hera.intel-run.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
help([[
]])

prepend_path("MODULEPATH", "/scratch2/NCEPDEV/nwprod/hpc-stack/libs/hpc-stack/modulefiles/stack")

local hpc_ver=os.getenv("hpc_ver") or "1.1.0"
local hpc_intel_ver=os.getenv("hpc_intel_ver") or "18.0.5.274"
local grads_ver=os.getenv("grads_ver") or "2.2.1"
local prod_util_ver=os.getenv("prod_util_ver") or "1.2.2"

load(pathJoin("hpc", hpc_ver))
load(pathJoin("hpc-intel", hpc_intel_ver))
load(pathJoin("grads", grads_ver))
load(pathJoin("prod_util", prod_util_ver))

load("common-run")


whatis("Description: GSI Monitoring run-time environment on Hera.intel")
18 changes: 18 additions & 0 deletions modulefiles/orion-run.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
help([[
]])

prepend_path("MODULEPATH", "/apps/contrib/NCEP/libs/hpc-stack/modulefiles/stack")

local hpc_ver=os.getenv("hpc_ver") or "1.1.0"
local hpc_intel_ver=os.getenv("hpc_intel_ver") or "2018.4"
local grads_ver=os.getenv("grads_ver") or "2.2.1"
local prod_util_ver=os.getenv("prod_util_ver") or "1.2.2"

load(pathJoin("hpc", hpc_ver))
load(pathJoin("hpc-intel", hpc_intel_ver))
load(pathJoin("grads", grads_ver))
load(pathJoin("prod_util", prod_util_ver))

load("common-run")

whatis("Description: GSI Monitoring run-time environment on Orion")
18 changes: 18 additions & 0 deletions modulefiles/wcoss2-run.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
help([[
]])

local intel_ver=os.getenv("intel_ver") or "19.1.3.304"

load(pathJoin("intel", intel_ver))


prepend_path("MODULEPATH", "/apps/test/lmodules/core/")
load ("GrADS/2.2.2")

prepend_path("MODULEPATH", "/apps/ops/para/nco/modulefiles/core/")
load ("prod_util/2.0.13")

load("common-run")


whatis("Description: GSI Monitoring run-time environment on wcoss2")
126 changes: 126 additions & 0 deletions parm/Mon_config
Original file line number Diff line number Diff line change
@@ -0,0 +1,126 @@
#-------------------------------------------------------
# Monitor configuration file
#
# This is used by the developer scripts located in
# src/*Monitor/<data_extract|image_gen>
#
#-------------------------------------------------------


#---------------------------------------------------
# Get the root of the cloned GSI-monitor directory
#
readonly DIR_ROOT=$(cd "$(dirname "$(readlink -f -n "${BASH_SOURCE[0]}" )" )/.." && pwd -P)
export MY_GSI_MONITOR=$DIR_ROOT


#---------------------------------------------------
# Determine machine name
#
COMPILER=${COMPILER:-intel}
source $DIR_ROOT/ush/detect_machine.sh
machine_id=`echo "${MACHINE_ID%%.*}"`
export MY_MACHINE=$machine_id

#---------------------------------------------------
# Load modules from stack
#
# Note: I'm intentionally not including s4 and jet for the moment.
# I don't have access to those machines so I can't test the
# run-time modules. If the run-time mod idea passes muster
# then I'll open an issue for the change to those machines.
#
if [[ $MY_MACHINE = "wcoss2" || $MY_MACHINE = "hera" || $MY_MACHINE = "orion" ]]; then
source $DIR_ROOT/ush/module-setup.sh
module use $DIR_ROOT/modulefiles
module load ${MACHINE_ID}-run
module list
fi

case $MY_MACHINE in
s4)
module load license_intel
module use /data/prod/hpc-stack/modulefiles/stack
module load hpc/1.1.0 hpc-intel/18.0.4 hpc-impi/18.0.4
module load wgrib2/2.0.8
module load grads/2.2.1
module load prod_util/1.2.2
module load netcdf/4.7.4

export SUB=/usr/bin/sbatch
export SERVICE_PARTITION="serial"

#rstprod data is not allowed on S4
CHGRP_CMD=echo
;;

jet)
module use /lfs4/HFIP/hfv3gfs/nwprod/hpc-stack/libs/modulefiles/stack
module load hpc/1.1.0 hpc-intel/18.0.5.274 hpc-impi/2018.4.274
module load wgrib2/2.0.8
module load grads/2.2.1
module load prod_util/1.2.2

export SUB=/apps/slurm/default/bin/sbatch
export SERVICE_PARTITION="service"
;;

hera)
export SUB=/apps/slurm/default/bin/sbatch
export SERVICE_PARTITION="service"

tankdir="/scratch1/NCEPDEV/da/$USER/save/nbns"
ptmp="/scratch2/NCEPDEV/stmp3/$USER"
stmp="/scratch2/NCEPDEV/stmp1/$USER"
queue=""
project=""
account="da-cpu"
;;

wcoss2)
export SUB="qsub"

tankdir="/lfs/h2/emc/da/noscrub/$USER/nbns"
ptmp="/lfs/h2/emc/ptmp/$USER"
stmp="/lfs/h2/emc/stmp/$USER"
queue="dev"
project="GDAS-DEV"
account="GFS-DEV"
;;

orion)
export SUB="sbatch" #/opt/slurm/bin/sbatch
export SERVICE_PARTITION="orion"

tankdir="/work/noaa/da/$USER/nbns"
ptmp="/work2/noaa/stmp/$USER"
stmp="/work/noaa/stmp/$USER"
queue=""
project=""
account="da-cpu"
esac


export ACCOUNT=${ACCOUNT:-$account}
export PROJECT=${PROJECT:-$project}
export JOB_QUEUE=${JOB_QUEUE:-$queue}

export MON_PTMP=${MON_PTMP:-$ptmp}
export MON_STMP=${MON_STMP:-$stmp}
export MON_LOGDIR=${MON_LOGDIR:-$ptmp/logs}
export TANKDIR=${TANKDIR:-$tankdir}

export WEBUSER=${WEBUSER:-$USER}
export WEBSVR=${WEBSVR:-emcrzdm}


export Z=${Z:-"gz"}
export NCP="cp -f"
export COMPRESS=${COMPRESS:-gzip}
export UNCOMPRESS=${UNCOMPRESS:-"gunzip -f"}
export GRADS=`which grads`
export STNMAP=`which stnmap`
export WGRIB2=`which wgrib2`

export GSI_MON_BIN=$MY_GSI_MONITOR/install/bin

Loading

0 comments on commit 8bdc3d8

Please sign in to comment.