From e7e5af9d1e78988fb0ac66ddd31129be938ad2ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=AB=98=E6=96=87=E5=B0=A7?= <18848977154@163.com> Date: Tue, 17 Jun 2025 11:53:06 +0800 Subject: [PATCH 1/2] wps --- .../data.wps.arm.cpu.bisheng.hmpi.config | 93 +++++++++++++++++++ 1 file changed, 93 insertions(+) create mode 100644 templates/wps/4.6.0/bisheng/data.wps.arm.cpu.bisheng.hmpi.config diff --git a/templates/wps/4.6.0/bisheng/data.wps.arm.cpu.bisheng.hmpi.config b/templates/wps/4.6.0/bisheng/data.wps.arm.cpu.bisheng.hmpi.config new file mode 100644 index 0000000..4cab0a8 --- /dev/null +++ b/templates/wps/4.6.0/bisheng/data.wps.arm.cpu.bisheng.hmpi.config @@ -0,0 +1,93 @@ +[SERVER] +11.11.11.11 + +[DOWNLOAD] +WPS/4.6.0 https://github.com/wrf-model/WPS/archive/refs/tags/v4.6.0.tar.gz WPS-4.6.0.tar.gz + +[DEPENDENCY] +set -e +set -x +if [ ! -d "${JARVIS_ROOT}/WRF-4.2" ]; then #判断wrf是否安装 + echo "还未安装wrf,请运行以下命令安装wrf + ./jarvis -use templates/wrf/4.2/bisheng/data.wrf.arm.cpu.config + ./jarvis -d + ./jarvis -dp + ./jarvis -e + ./jarvis -b" +fi +yum install -y time.aarch64 zlib.aarch64 zlib-devel.aarch64 libtirpc.aarch64 libtirpc-devel.aarch64 csh +module purge +./jarvis -install hpckit/2025.3.30 com +module use ./software/compiler/hpckit/2025.3.30/HPCKit/latest/modulefiles +module load bisheng/compiler4.2.0/bishengmodule +module load bisheng/hmpi25.0.0/hmpi +export CC="clang -Wno-implicit-function-declaration -Wno-incompatible-function-pointer-types" CXX=clang++ FC=flang +./jarvis -install jasper/1.900.2 clang +module use ./software/moduledeps/bisheng4.2.0 +module load jasper/1.900.2 +export CC=mpicc CXX=mpicxx FC=mpifort +module use ./software/moduledeps/bisheng4.2.0-hmpi25.0.0 +./jarvis -install hdf5/1.12.0/clang clang+mpi +module load hdf5-clang/1.12.0 +./jarvis -install pnetcdf/1.12.1 clang+mpi +module load pnetcdf/1.12.1 +./jarvis -install netcdf/4.7.4/clang clang+mpi +module load netcdf-clang/4.7.4 +tar -zxvf ${JARVIS_DOWNLOAD}/WPS-4.6.0.tar.gz + +[ENV] +module purge +module use ${JARVIS_ROOT}//software/compiler/hpckit/2025.3.30/HPCKit/latest/modulefiles +module load bisheng/compiler4.2.0/bishengmodule +module use ${JARVIS_ROOT}/software/moduledeps/bisheng4.2.0 +module use ${JARVIS_ROOT}/software/moduledeps/bisheng4.2.0-hmpi25.0.0 +module load jasper/1.900.2 +module load bisheng/hmpi25.0.0/hmpi +module load hdf5-clang/1.12.0 pnetcdf/1.12.1 netcdf-clang/4.7.4 +module load bisheng/kml25.0.0/kml +export WRFIO_NCD_LARGE_FILE_SUPPORT=1 +export NETCDF=$NETCDF_CLANG_PATH +export HDF5=$HDF5_CLANG_PATH +export PHDF5=$HDF5 +export PNETCDF=$PNETCDF_PATH +export JASPER=$JASPER_PATH +export JASPERLIB=$JASPER_PATH/lib +export JASPERINC=$JASPER_PATH/include +export CPPFLAGS="-I$HDF5/include -I$PNETCDF/include -I$NETCDF/include" +export LDFLAGS="-L$HDF5/lib -L$PNETCDF/lib -L$NETCDF/lib -lnetcdf -lnetcdff -lpnetcdf -lhdf5_hl -lhdf5 -lz" +export CC=mpicc CXX=mpicxx FC=mpif90 F77=mpif90 F90=mpif90 +export WRF_DIR=$JARVIS_ROOT/WRF-4.2 +export MPI_LIB="-L$JARVIS_COMPILER/hpckit/2025.3.30/HPCKit/latest/hmpi/bisheng/hmpi/lib -lmpi -lomp" +export INCLUDE=$WRF_DIR/include:$INCLUDE +export KML_LIB=$JARVIS_COMPILER/hpckit/2025.3.30/HPCKit/latest/kml/bisheng/lib/noarch +unset MPI MPI_DIR MPI_INC +export WRF_DIR=${JARVIS_ROOT}/WRF-4.2 + +[APP] +app_name = WPS +build_dir = ${JARVIS_ROOT}/WPS-4.6.0/ +binary_dir = ${JARVIS_ROOT}/q-e-qe-6.4.1/bin/ +case_dir = ${JARVIS_ROOT}/workloads/QE/qe-test + +[BUILD] +sed -i "192c\#ARCH Linux aarch64, flang # serial serial_NO_GRIB2 dmpar dmpar_NO_GRIB2" arch/configure.defaults +sed -i "197c\SFC = flang" arch/configure.defaults +sed -i "198c\SCC = clang" arch/configure.defaults +sed -i "200c\DM_CC = mpicc -DMPI2_SUPPORT" arch/configure.defaults +echo -n "3" | ./configure +sed -i "35s|.*|WRF_DIR = ${WRF_DIR}|" configure.wps +sed -i '48c\ -L$(NETCDF)/lib -lnetcdff -lnetcdf -lomp' configure.wps +./compile + +[CLEAN] +make clean + +[RUN] +run = mpirun --allow-run-as-root -x OMP_NUM_THREADS=1 -np 8 +binary = pw.x -input test_3.in +nodes = 1 + +[PERF] +perf= +nsys= +ncu=--target-processes all -- Gitee From 70eb26524604135f5b79328b68a4f5643e52515d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=AB=98=E6=96=87=E5=B0=A7?= <18848977154@163.com> Date: Tue, 17 Jun 2025 16:34:17 +0800 Subject: [PATCH 2/2] wps --- .../wps/4.6.0/bisheng/data.wps.arm.cpu.bisheng.hmpi.config | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/wps/4.6.0/bisheng/data.wps.arm.cpu.bisheng.hmpi.config b/templates/wps/4.6.0/bisheng/data.wps.arm.cpu.bisheng.hmpi.config index 4cab0a8..43a137e 100644 --- a/templates/wps/4.6.0/bisheng/data.wps.arm.cpu.bisheng.hmpi.config +++ b/templates/wps/4.6.0/bisheng/data.wps.arm.cpu.bisheng.hmpi.config @@ -83,8 +83,8 @@ sed -i '48c\ -L$(NETCDF)/lib -lnetcdff -lnetcdf -lomp' co make clean [RUN] -run = mpirun --allow-run-as-root -x OMP_NUM_THREADS=1 -np 8 -binary = pw.x -input test_3.in +run = +binary = nodes = 1 [PERF] -- Gitee