diff --git a/templates/ww3/6.07.1/ww3.arm.cpu.config b/templates/ww3/6.07.1/ww3.arm.cpu.config new file mode 100644 index 0000000000000000000000000000000000000000..5cb8959b0502af556d63d474a735925dd9bf3503 --- /dev/null +++ b/templates/ww3/6.07.1/ww3.arm.cpu.config @@ -0,0 +1,103 @@ +[SERVER] +11.11.11.11 + +[DOWNLOAD] +ww3/6.07.1 https://github.com/NOAA-EMC/WW3/archive/refs/tags/6.07.1.tar.gz WW3-6.07.1.tar.gz + +[DEPENDENCY] +./jarvis -install package/hpckit/2024.12.30/ any +module use software/utils/hpckit/2024.12.30/HPCKit/24.12.30/modulefiles +module purge +module load bisheng/compiler4.1.0/bishengmodule bisheng/hmpi2.4.3/hmpi + +export CC=mpicc FC=mpifort CXX=mpicxx + +./jarvis -install package/hdf5/1.12.0/clang bisheng+mpi +module use ${JARVIS_ROOT}/software/moduledeps/bisheng4.1.0-hmpi2.4.3/ +module load hdf5-clang/1.12.0 +./jarvis -install package/pnetcdf/1.11.2 bisheng+mpi +module load pnetcdf/1.11.2 +./jarvis -install package/netcdf/4.7.4/clang bisheng+mpi +module load netcdf-clang/4.7.4 + +[ENV] +module use ${JARVIS_ROOT}/software/utils/hpckit/2024.12.30/HPCKit/24.12.30/modulefiles +module purge +module load bisheng/compiler4.1.0/bishengmodule bisheng/hmpi2.4.3/hmpi +module use ${JARVIS_ROOT}/software/moduledeps/bisheng4.1.0-hmpi2.4.3/ +module load hdf5-clang/1.12.0 +module load pnetcdf/1.11.2 +module load netcdf-clang/4.7.4 +export PATH=$JARVIS_ROOT/software/apps/bisheng4.1.0-hmpi2.4.3/ww3-6.07.1/model/exe:$PATH + +[APP] +app_name = ww3 +build_dir = $JARVIS_ROOT/software/apps/bisheng4.1.0-hmpi2.4.3/ww3-6.07.1/model/bin +binary_dir = $JARVIS_ROOT/software/apps/bisheng4.1.0-hmpi2.4.3/ww3-6.07.1/model/exe +case_dir = + +[BUILD] +set -x +mkdir -p ${JARVIS_ROOT}/software/apps/bisheng4.1.0-hmpi2.4.3/ww3-6.07.1 +cd ${JARVIS_ROOT}/software/apps/bisheng4.1.0-hmpi2.4.3/ww3-6.07.1 +rm -rf ${JARVIS_ROOT}/software/apps/bisheng4.1.0-hmpi2.4.3/ww3-6.07.1/* +tar -xf ${JARVIS_DOWNLOAD}/WW3-6.07.1.tar.gz --strip-components 1 -C ${JARVIS_ROOT}/software/apps/bisheng4.1.0-hmpi2.4.3/ww3-6.07.1 +export WWATCH3_NETCDF=NC4 +export NETCDF_CONFIG=${NETCDF_CLANG_PATH}/bin/nc-config +export NETCDF_INCDIR=${NETCDF_CLANG_PATH}/include +export NETCDF_LIBDIR=${NETCDF_CLANG_PATH}/lib +echo -e "y\n\nflang\nclang\n\n\n\ny" | ./model/bin/w3_setup model/ +cd ./model/bin +cp link.Intel link +cp comp.Intel comp +sed -i '34s/$1/"$1"/' ./link +sed -i '89s/-ip//' ./link +sed -i 's/mpiifort/mpifort/' ./link +sed -i '101,$s/ifort/flang/' ./link +sed -i 's/-openmp/-fopenmp/' ./link +sed -i 's/-assume byterecl -ip //g' comp +sed -i 's/-convert big_endian/-fconvert=big-endian/g' comp +sed -i 's/mpiifort/mpifort/' comp +sed -i '98,$s/ifort/flang/' comp +sed -i 's/-openmp/-fopenmp/' comp +cat << EOF > switch +F90 NC4 NOGRB NOPA LRB4 MPI DIST PR3 UQ FLX2 LN1 ST2 STAB2 NL1 BT1 DB1 MLIM TR0 BS0 IC0 IS0 REF0 XX0 WNT1 WNX1 CRT1 CRX1 O0 O1 O2 O3 O4 O5 O6 O7 O11 O14 +EOF +./w3_clean +./w3_new +./w3_make +[CLEAN] +./w3_clean + +[RUN] +run = +binary = +nodes = 1 + +[BATCH] +#定义日志文件 +LOG_FILE="ww3-proformance.log" + +>"$LOG_FILE" +$RUN_TOOL "WW3 ww3_multi" "mpirun --allow-run-as-root -np 64 ww3_multi" $LOG_FILE +#mpirun --allow-run-as-root -np 2 ww3_multi + +echo "All commands executed. Performance log saved to $LOG_FILE" + +[JOB] +#!/bin/sh +#DSUB -n ww3_test +#DSUB --mpi hmpi +#DSUB -q default +#DSUB -N 1 +#DSUB -R cpu=128 +#DSUB -oo ww3.%J.out +#DSUB -oe ww3.%J.err + +LOG_FILE="ww3-proformance.log" + +>"$LOG_FILE" +$RUN_TOOL "WW3 ww3_multi" "mpirun --allow-run-as-root -np 2 ww3_multi" $LOG_FILE + +echo "ALL commands executed. Performance log saved to $LOG_FILE" +