Skip to content

Commit

Permalink
Merge pull request #293 from Hang-Lei-NOAA/wcoss2_update
Browse files Browse the repository at this point in the history
Wcoss2 update
  • Loading branch information
Hang-Lei-NOAA authored Aug 9, 2021
2 parents 37b09c5 + 615a8af commit f26ffbb
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 18 deletions.
31 changes: 13 additions & 18 deletions config/config_wcoss2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,11 @@
# Disable that so LMOD isn't overwritten
unset BASH_ENV

# Startup LMOD
source /apps/prod/lmodules/startLmod

# Compiler/MPI combination
#export HPC_COMPILER="cray-intel/19.1.1.217" # See IMPORTANT NOTE below
export HPC_COMPILER="intel/19.1.1.217"
export HPC_MPI="cray-mpich/8.0.15"
#export HPC_COMPILER="cray-intel/19.1.3.304" # See IMPORTANT NOTE below
export HPC_COMPILER="intel/19.1.3.304"
export HPC_MPI="cray-mpich/8.1.7"
export HPC_PYTHON="python/3.8.6"

# Build options
export USE_SUDO=N
Expand All @@ -27,18 +25,19 @@ export WGET="wget -nv"

# WCOSS2 specific
# NOTE:
# On WCOSS2 the Intel compiler module is "intel/19.1.1.217"
# On WCOSS2 the Intel compiler module is "intel/19.1.3.304"
# However, on the Cray, the wrappers are cc, ftn, and CC
# The Intel modules have icc, ifort and icpc for CC, FC and CXX respectively
# By specifying "cray-intel", we load the "hpc-cray-intel" module which
# loads the Intel module (as it should), and
# define cc, FC and CC for CC, FC and CXX respectively.
# cray-intel does not imply the native module in this case

#module purge
module load cmake/3.16.5
module load git/2.27.0
module load cpe-intel
module load PrgEnv-intel/8.1.0
module load cmake/3.20.2
module load git/2.29.0
module load intel/19.1.3.304
module load craype/2.7.8

export SERIAL_CC=cc
export SERIAL_FC=ftn
Expand All @@ -53,10 +52,6 @@ export MPI_CXX=$SERIAL_CXX
# stack_noaa.yaml, to keep one YAML file for NOAA.
export STACK_esmf_comm="mpich3"
export STACK_esmf_os="Linux"

# LMod is coming to WCOSS2
# LMod has disabled "default" and requires exact module match.
# https://lmod.readthedocs.io/en/latest/090_configuring_lmod.html
#module load lmod/8.3
#export LMOD_EXACT_MATCH="no"
#export LMOD_EXTENDED_DEFAULT="yes"
#FMS to build with AVX:
export STACK_fms_CFLAGS="-march=core-avx2"
export STACK_fms_FFLAGS="-march=core-avx2"
1 change: 1 addition & 0 deletions libs/build_esmf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ case $MPI in
export ESMF_COMM=${STACK_esmf_comm:-"mpich3"}
;;
cray-mpich )
export ESMF_OS=${STACK_esmf_os:-"Unicos"}
export ESMF_COMM=${STACK_esmf_comm:-"mpi"}
;;
impi )
Expand Down

0 comments on commit f26ffbb

Please sign in to comment.