8 changed files with 200 additions and 0 deletions
@ -0,0 +1,25 @@
|
||||
target=$1 |
||||
debug=${2:-"release"} |
||||
fast=${3:-"fast"} |
||||
|
||||
source ../../local_scripts/identify_target.sh $target $debug $fast |
||||
|
||||
# component to build |
||||
component="OASIS3-MCT" |
||||
|
||||
echo ssh -t "${user_at_dest}" "mkdir -p ${dest_folder}/components/${component}" |
||||
ssh -t "${user_at_dest}" "mkdir -p ${dest_folder}/components/${component}" |
||||
|
||||
# deploy the code from local source |
||||
echo rsync -r -i -u oasis3-mct ${dest}/components/${component}/. |
||||
echo rsync -i -u start_build_${target}.sh ${dest}/components/${component}/ |
||||
echo rsync -i -u build_${target}.sh ${dest}/components/${component}/ |
||||
rsync -r -i -u oasis3-mct ${dest}/components/${component}/. |
||||
rsync -i -u start_build_${target}.sh ${dest}/components/${component}/ |
||||
rsync -i -u build_${target}.sh ${dest}/components/${component}/ |
||||
|
||||
# start the build process |
||||
echo ssh -t "${user_at_dest}" "cd ${dest_folder}/components/${component}/; bash -c \"source ~/.bash_profile; source start_build_${target}.sh $debug $fast\"" |
||||
ssh -t "${user_at_dest}" "cd ${dest_folder}/components/${component}/; bash -c \"source ~/.bash_profile; source start_build_${target}.sh $debug $fast\"" |
||||
|
||||
../../local_scripts/tag_build.sh "$target" "$debug" "$fast" |
@ -0,0 +1,53 @@
|
||||
#!/bin/bash |
||||
|
||||
debug=${1:-"release"} |
||||
rebuild=${2:-"fast"} |
||||
|
||||
# LOAD REQUIRED MODULES |
||||
module load intel/19.1.0 |
||||
module load openmpi/intel.19/3.1.6 |
||||
module load netcdf/intel.19/4.7.4 |
||||
|
||||
# GET IOW ESM ROOT PATH |
||||
export IOW_ESM_ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )/../.." |
||||
|
||||
# SET SYSTEM-SPECIFIC COMPILER OPTIONS AND PATHS |
||||
# compile mode: "PRODUCTION" or "DEBUG" |
||||
if [ $debug == "debug" ]; then |
||||
export IOW_ESM_COMPILE_MODE="DEBUG" |
||||
elif [ $debug == "release" ]; then |
||||
export IOW_ESM_COMPILE_MODE="PRODUCTION" |
||||
else |
||||
echo "Compile mode is not specified correctly. Use debug or release" |
||||
exit; |
||||
fi |
||||
|
||||
# include paths |
||||
export IOW_ESM_NETCDF_INCLUDE="${NETCDF_INCLUDE_PATH}" |
||||
export IOW_ESM_NETCDF_LIBRARY="${NETCDF_LIBRARY_PATH}" |
||||
# executables |
||||
export IOW_ESM_MAKE="/usr/bin/make" |
||||
export IOW_ESM_FC="mpifort" |
||||
export IOW_ESM_CC="mpicc" |
||||
export IOW_ESM_LD="mpifort" |
||||
|
||||
# compiler flags |
||||
if [ $debug == "debug" ]; then |
||||
export IOW_ESM_FFLAGS="-O0 -g -traceback -fno-alias -ip -align" |
||||
export IOW_ESM_CFLAGS="-vec-report0 -O0 -fno-alias -ip -align" |
||||
export IOW_ESM_LDFLAGS="-g -traceback" |
||||
else |
||||
export IOW_ESM_FFLAGS="-O3 -r8 -O3 -no-prec-div -static -fp-model fast=2 -xHost" |
||||
export IOW_ESM_CFLAGS="-vec-report0 -O3 -r8 -O3 -no-prec-div -static -fp-model fast=2 -xHost" |
||||
export IOW_ESM_LDFLAGS="" |
||||
fi |
||||
|
||||
# MAKE CLEAN |
||||
if [ $rebuild == "rebuild" ]; then |
||||
rm -r ${IOW_ESM_ROOT}/components/OASIS3-MCT/oasis3-mct/IOW_ESM_${IOW_ESM_COMPILE_MODE} |
||||
fi |
||||
|
||||
# RUN BUILD COMMAND |
||||
cd ${IOW_ESM_ROOT}/components/OASIS3-MCT/oasis3-mct/util/make_dir |
||||
${IOW_ESM_MAKE} --file=TopMakefileOasis3 |
||||
cd ${IOW_ESM_ROOT}/components/OASIS3-MCT |
@ -0,0 +1,53 @@
|
||||
#!/bin/bash |
||||
|
||||
debug=${1:-"release"} |
||||
rebuild=${2:-"fast"} |
||||
|
||||
# LOAD REQUIRED MODULES |
||||
module load intel/18.0.6 |
||||
module load impi/2018.5 |
||||
module load netcdf/intel/4.7.3 |
||||
|
||||
# GET IOW ESM ROOT PATH |
||||
export IOW_ESM_ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )/../.." |
||||
|
||||
# SET SYSTEM-SPECIFIC COMPILER OPTIONS AND PATHS |
||||
# compile mode: "PRODUCTION" or "DEBUG" |
||||
if [ $debug == "debug" ]; then |
||||
export IOW_ESM_COMPILE_MODE="DEBUG" |
||||
elif [ $debug == "release" ]; then |
||||
export IOW_ESM_COMPILE_MODE="PRODUCTION" |
||||
else |
||||
echo "Compile mode is not specified correctly. Use debug or release" |
||||
exit; |
||||
fi |
||||
|
||||
# include paths |
||||
export IOW_ESM_NETCDF_INCLUDE="/sw/dataformats/netcdf/intel.18/4.7.3/skl/include" |
||||
export IOW_ESM_NETCDF_LIBRARY="/sw/dataformats/netcdf/intel.18/4.7.3/skl/lib" |
||||
# executables |
||||
export IOW_ESM_MAKE="/usr/bin/make" |
||||
export IOW_ESM_FC="mpiifort" |
||||
export IOW_ESM_CC="mpiicc" |
||||
export IOW_ESM_LD="mpiifort" |
||||
|
||||
# compiler flags |
||||
if [ $debug == "debug" ]; then |
||||
export IOW_ESM_FFLAGS="-O0 -g -traceback -fno-alias -ip -align" |
||||
export IOW_ESM_CFLAGS="-vec-report0 -O0 -fno-alias -ip -align" |
||||
export IOW_ESM_LDFLAGS="-g -traceback" |
||||
else |
||||
export IOW_ESM_FFLAGS="-O3 -r8 -O3 -no-prec-div -static -fp-model fast=2 -xHost" |
||||
export IOW_ESM_CFLAGS="-vec-report0 -O3 -r8 -O3 -no-prec-div -static -fp-model fast=2 -xHost" |
||||
export IOW_ESM_LDFLAGS="" |
||||
fi |
||||
|
||||
# MAKE CLEAN |
||||
if [ $rebuild == "rebuild" ]; then |
||||
rm -r ${IOW_ESM_ROOT}/components/OASIS3-MCT/oasis3-mct/IOW_ESM_${IOW_ESM_COMPILE_MODE} |
||||
fi |
||||
|
||||
# RUN BUILD COMMAND |
||||
cd ${IOW_ESM_ROOT}/components/OASIS3-MCT/oasis3-mct/util/make_dir |
||||
${IOW_ESM_MAKE} --file=TopMakefileOasis3 |
||||
cd ${IOW_ESM_ROOT}/components/OASIS3-MCT |
@ -0,0 +1,53 @@
|
||||
#!/bin/bash |
||||
|
||||
debug=${1:-"release"} |
||||
rebuild=${2:-"fast"} |
||||
|
||||
# LOAD REQUIRED MODULES |
||||
module load intel/18.0.5 |
||||
module load impi/2018.5 |
||||
module load netcdf/intel/4.7.3 |
||||
|
||||
# GET IOW ESM ROOT PATH |
||||
export IOW_ESM_ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )/../.." |
||||
|
||||
# SET SYSTEM-SPECIFIC COMPILER OPTIONS AND PATHS |
||||
# compile mode: "PRODUCTION" or "DEBUG" |
||||
if [ $debug == "debug" ]; then |
||||
export IOW_ESM_COMPILE_MODE="DEBUG" |
||||
elif [ $debug == "release" ]; then |
||||
export IOW_ESM_COMPILE_MODE="PRODUCTION" |
||||
else |
||||
echo "Compile mode is not specified correctly. Use debug or release" |
||||
exit; |
||||
fi |
||||
|
||||
# include paths |
||||
export IOW_ESM_NETCDF_INCLUDE="/sw/dataformats/netcdf/intel.18/4.7.3/skl/include" |
||||
export IOW_ESM_NETCDF_LIBRARY="/sw/dataformats/netcdf/intel.18/4.7.3/skl/lib" |
||||
# executables |
||||
export IOW_ESM_MAKE="/usr/bin/make" |
||||
export IOW_ESM_FC="mpiifort" |
||||
export IOW_ESM_CC="mpiicc" |
||||
export IOW_ESM_LD="mpiifort" |
||||
|
||||
# compiler flags |
||||
if [ $debug == "debug" ]; then |
||||
export IOW_ESM_FFLAGS="-O0 -g -traceback -fno-alias -ip -align" |
||||
export IOW_ESM_CFLAGS="-vec-report0 -O0 -fno-alias -ip -align" |
||||
export IOW_ESM_LDFLAGS="-g -traceback" |
||||
else |
||||
export IOW_ESM_FFLAGS="-O3 -r8 -O3 -no-prec-div -static -fp-model fast=2 -xHost" |
||||
export IOW_ESM_CFLAGS="-vec-report0 -O3 -r8 -O3 -no-prec-div -static -fp-model fast=2 -xHost" |
||||
export IOW_ESM_LDFLAGS="" |
||||
fi |
||||
|
||||
# MAKE CLEAN |
||||
if [ $rebuild == "rebuild" ]; then |
||||
rm -r ${IOW_ESM_ROOT}/components/OASIS3-MCT/oasis3-mct/IOW_ESM_${IOW_ESM_COMPILE_MODE} |
||||
fi |
||||
|
||||
# RUN BUILD COMMAND |
||||
cd ${IOW_ESM_ROOT}/components/OASIS3-MCT/oasis3-mct/util/make_dir |
||||
${IOW_ESM_MAKE} --file=TopMakefileOasis3 |
||||
cd ${IOW_ESM_ROOT}/components/OASIS3-MCT |
@ -0,0 +1,4 @@
|
||||
debug=${1:-"debug"} # debug/release |
||||
fast=${2:-"fast"} # fast/rebuild |
||||
|
||||
srun -t 01:00:00 -p compute -N1 --tasks-per-node 1 --pty bash -c "source ~/.bash_profile; source build_haumea.sh ${debug} ${fast}" |
@ -0,0 +1,4 @@
|
||||
debug=${1:-"debug"} # debug/release |
||||
fast=${2:-"fast"} # fast/rebuild |
||||
|
||||
source build_hlrnb.sh ${debug} ${fast} |
@ -0,0 +1,4 @@
|
||||
debug=${1:-"debug"} # debug/release |
||||
fast=${2:-"fast"} # fast/rebuild |
||||
|
||||
source build_hlrnb.sh ${debug} ${fast} |
Loading…
Reference in new issue