Skip to content

Commit

Permalink
Port SRW App to WCOSS2 (#270)
Browse files Browse the repository at this point in the history
* port to wcoss2

* update scripts

* ensure platform name from variance

* update scripts

* remove wcoss2 from lmod-setup
  • Loading branch information
chan-hoo authored May 31, 2022
1 parent ef24e7a commit 9d159ca
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Externals.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ protocol = git
repo_url = https://github.com/ufs-community/UFS_UTILS
# Specify either a branch name or a hash but not both.
#branch = develop
hash = 31271f7
hash = b6efa86
local_path = src/UFS_UTILS
required = True

Expand All @@ -30,7 +30,7 @@ protocol = git
repo_url = https://github.com/NOAA-EMC/UPP
# Specify either a branch name or a hash but not both.
#branch = develop
hash = 394917e
hash = fbd41a5
local_path = src/UPP
required = True

Expand Down
3 changes: 2 additions & 1 deletion devbuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ OPTIONS
show this help guide
-p, --platform=PLATFORM
name of machine you are building on
(e.g. cheyenne | hera | jet | orion | wcoss_dell_p3)
(e.g. cheyenne | hera | jet | orion | wcoss_dell_p3 | wcoss2)
-c, --compiler=COMPILER
compiler to use; default depends on platform
(e.g. intel | gnu | cray | gccgfortran)
Expand Down Expand Up @@ -155,6 +155,7 @@ if [ -z "${COMPILER}" ] ; then
jet|hera|gaea) COMPILER=intel ;;
orion) COMPILER=intel ;;
wcoss_dell_p3) COMPILER=intel ;;
wcoss2) COMPILER=intel ;;
cheyenne) COMPILER=intel ;;
macos,singularity) COMPILER=gnu ;;
odin) COMPILER=intel ;;
Expand Down
1 change: 0 additions & 1 deletion etc/lmod-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,3 @@ elif [ "$L_MACHINE" = odin ]; then
else
module purge
fi

51 changes: 51 additions & 0 deletions modulefiles/build_wcoss2_intel
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
#%Module

proc ModulesHelp { } {
puts stderr "This module loads libraries for building SRW on"
puts stderr "the NOAA WCOSS2 machine using Intel-19.1.3.304"
}

module-whatis "Loads libraries needed for building SRW on WCOSS2 (Cactus/Dogwood)"

module load envvar/1.0

module load PrgEnv-intel/8.1.0
module load intel/19.1.3.304
module load craype/2.7.13
module load cray-mpich/8.1.7

module load cmake/3.20.2

setenv HPC_OPT /apps/ops/para/libs
module use /apps/ops/para/libs/modulefiles/compiler/intel/19.1.3.304
module use /apps/ops/para/libs/modulefiles/mpi/intel/19.1.3.304/cray-mpich/8.1.7

module load jasper/2.0.25
module load zlib/1.2.11
module load libpng/1.6.37
module load hdf5/1.10.6
module load netcdf/4.7.4
module load pio/2.5.2
module load esmf/8.3.0b09
module load fms/2022.01
module load bacio/2.4.1
module load crtm/2.3.0
module load g2/3.4.5
module load g2tmpl/1.10.0
module load ip/3.3.3
module load sp/2.3.3
module load w3nco/2.4.1

module load libjpeg/9c
module load cray-pals/1.1.3

module load w3emc/2.9.2
module load nemsio/2.5.2
module load sigio/2.3.2
module load sfcio/1.4.1
module load wrf_io/1.2.0

setenv CMAKE_C_COMPILER cc
setenv CMAKE_CXX_COMPILER CC
setenv CMAKE_Fortran_COMPILER ftn
setenv CMAKE_Platform wcoss2

0 comments on commit 9d159ca

Please sign in to comment.