Skip to content

Commit

Permalink
Port to WCOSS2 (Cactus/Dogwood) (#568)
Browse files Browse the repository at this point in the history
  • Loading branch information
DusanJovic-NOAA authored Jan 3, 2022
1 parent 8684753 commit 6dc6c39
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 2 deletions.
15 changes: 13 additions & 2 deletions model/bin/cmplr.env
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ fi
if [ "$cmplr" == "intel" ] || [ "$cmplr" == "intel_debug" ] || [ "$cmplr" == "intel_prof" ] || \
[ "$cmplr" == "so_intel" ] || [ "$cmplr" == "so_intel_debug" ] || [ "$cmplr" == "so_intel_prof" ] || \
[ "$cmplr" == "datarmor_intel" ] || [ "$cmplr" == "datarmor_intel_debug" ] || [ "$cmplr" == "datarmor_intel_prof" ] || \
[ "$cmplr" == "wcoss_phase2" ] || [ "$cmplr" == "wcoss_cray" ] || [ "$cmplr" == "wcoss_dell_p3" ] || \
[ "$cmplr" == "wcoss_phase2" ] || [ "$cmplr" == "wcoss_cray" ] || [ "$cmplr" == "wcoss_dell_p3" ] || [ "$cmplr" == "wcoss2" ] || \
[ "$cmplr" == "theia" ] || [ "$cmplr" == "hera" ] || [ "$cmplr" == "orion" ] ; then


Expand All @@ -125,6 +125,11 @@ if [ "$cmplr" == "intel" ] || [ "$cmplr" == "intel_debug" ] || [ "$c
comp_mpi='ftn'
fi

if [ ! -z "$(echo $cmplr | grep wcoss2)" ] ; then
comp_seq='ftn'
comp_mpi='ftn'
fi


# OPTIONS - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Expand All @@ -141,6 +146,9 @@ if [ "$cmplr" == "intel" ] || [ "$cmplr" == "intel_debug" ] || [ "$c
elif [ ! -z "$(echo $cmplr | grep wcoss_dell_p3)" ] ; then
optc="$optc -xHOST"
optl="$optl -xHOST"
elif [ ! -z "$(echo $cmplr | grep wcoss2)" ] ; then
optc="$optc"
optl="$optl"
else
optc="$optc -xhost"
optl="$optl -xhost"
Expand All @@ -151,7 +159,7 @@ if [ "$cmplr" == "intel" ] || [ "$cmplr" == "intel_debug" ] || [ "$c
if [ "$list" == 'yes' ] ; then optc="$optc -list"; fi

# omp options
if [ "$cmplr" == "hera" ] || [ "$cmplr" == "orion" ] || [ "$cmplr" == "wcoss_cray" ] || [ "$cmplr" == "wcoss_dell_p3" ]; then
if [ "$cmplr" == "hera" ] || [ "$cmplr" == "orion" ] || [ "$cmplr" == "wcoss_cray" ] || [ "$cmplr" == "wcoss_dell_p3" ] || [ "$cmplr" == "wcoss2" ] ; then
optomp="-qopenmp"
else
optomp="-openmp"
Expand Down Expand Up @@ -179,6 +187,9 @@ if [ "$cmplr" == "intel" ] || [ "$cmplr" == "intel_debug" ] || [ "$c
if [ ! -z "$(echo $cmplr | grep datarmor)" ] ; then
optc="$optc -xcore-avx2"
optl="$optl -xcore-avx2"
elif [ ! -z "$(echo $cmplr | grep wcoss2)" ] ; then
optc="$optc"
optl="$optl"
else
optc="$optc -xhost"
optl="$optl -xhost"
Expand Down
2 changes: 2 additions & 0 deletions model/bin/w3_setup
Original file line number Diff line number Diff line change
Expand Up @@ -417,6 +417,7 @@ then
[ "$cmplr" == "theia" ] || [ "$cmplr" == "wcoss_cray" ] || \
[ "$cmplr" == "hera" ] || [ "$cmplr" == "orion" ] || \
[ "$cmplr" == "wcoss_phase2" ] || [ "$cmplr" == "wcoss_dell_p3" ] || \
[ "$cmplr" == "wcoss2" ] || \
[ "$cmplr" == "datarmor_gnu" ] || [ "$cmplr" == "datarmor_gnu_debug" ] || \
[ "$cmplr" == "pgi" ] || [ "$cmplr" == "pgi_debug" ] || \
[ "$cmplr" == "datarmor_pgi" ] || [ "$cmplr" == "datarmor_pgi_debug" ] || \
Expand All @@ -443,6 +444,7 @@ then
[ "$cmplr" == "theia" ] || [ "$cmplr" == "wcoss_cray" ] || \
[ "$cmplr" == "hera" ] || [ "$cmplr" == "orion" ] || \
[ "$cmplr" == "wcoss_phase2" ] || [ "$cmplr" == "wcoss_dell_p3" ] || \
[ "$cmplr" == "wcoss2" ] || \
[ "$cmplr" == "datarmor_gnu" ] || [ "$cmplr" == "datarmor_gnu_debug" ] || \
[ "$cmplr" == "pgi" ] || [ "$cmplr" == "pgi_debug" ] || \
[ "$cmplr" == "datarmor_pgi" ] || [ "$cmplr" == "datarmor_pgi_debug" ] || \
Expand Down
4 changes: 4 additions & 0 deletions model/esmf/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ else ifeq ("$(WW3_COMP)",$(filter "$(WW3_COMP)","theia" "Intel" "hera" "orion"))
ESMF_F90COMPILEOPTS := $(ESMF_F90COMPILEOPTS) -convert big_endian
else ifeq ("$(WW3_COMP)",$(filter "$(WW3_COMP)","wcoss_phase2" "wcoss_cray" "wcoss_dell_p3"))
ESMF_F90COMPILEOPTS := $(ESMF_F90COMPILEOPTS) -convert big_endian
else ifeq ("$(WW3_COMP)",$(filter "$(WW3_COMP)","wcoss2"))
ESMF_F90COMPILEOPTS := $(ESMF_F90COMPILEOPTS) -convert big_endian
WW3_CC=cc
WW3_F90=ftn
else ifeq ("$(WW3_COMP)",$(filter "$(WW3_COMP)","intel" "datarmor_intel" "datarmor_intel_debug"))
ESMF_F90COMPILEOPTS := $(ESMF_F90COMPILEOPTS) -convert big_endian
# mpt
Expand Down

0 comments on commit 6dc6c39

Please sign in to comment.