From c92fe53ef13ca6fb6205521b7327572967bd5682 Mon Sep 17 00:00:00 2001 From: yuanchunlin Date: Fri, 6 Dec 2024 03:53:52 +0000 Subject: [PATCH] update templates/wrf/4.3.3/bisheng/data.wrf.arm.cpu.config. Signed-off-by: yuanchunlin --- .../wrf/4.3.3/bisheng/data.wrf.arm.cpu.config | 81 +++++++++++++++---- 1 file changed, 65 insertions(+), 16 deletions(-) diff --git a/templates/wrf/4.3.3/bisheng/data.wrf.arm.cpu.config b/templates/wrf/4.3.3/bisheng/data.wrf.arm.cpu.config index 2e83460..bd32165 100644 --- a/templates/wrf/4.3.3/bisheng/data.wrf.arm.cpu.config +++ b/templates/wrf/4.3.3/bisheng/data.wrf.arm.cpu.config @@ -9,32 +9,32 @@ set -e set -x module purge module use ./software/modulefiles -./jarvis -install kml/1.6.0/gcc any -./jarvis -install bisheng/2.5.0 com -module load bisheng/2.5.0 +./jarvis -install bisheng/3.2.0 com +module load bisheng/3.2.0 export CC=clang CXX=clang++ FC=flang ./jarvis -install jasper/1.900.2 clang module load jasper/1.900.2 -./jarvis -install hmpi/1.2.0 clang -module load hmpi/1.2.0 +./jarvis -install hmpi/2.3.0 clang +module load hmpi/2.3.0 export CC=mpicc CXX=mpicxx FC=mpifort ./jarvis -install hdf5/1.12.0/clang clang+mpi module load hdf5-clang/1.12.0 -./jarvis -install netcdf/4.7.4/clang clang+mpi -module load netcdf-clang/4.7.4 ./jarvis -install pnetcdf/1.12.1 clang+mpi module load pnetcdf/1.12.1 -#tar -zxvf $JARVIS_DOWNLOAD/wrf-4.3.3.tar.gz +./jarvis -install netcdf/4.8.1/clang clang+mpi +module load netcdf-clang/4.8.1 +./jarvis -install kml/2.4.0/bisheng clang +tar -zxvf $JARVIS_DOWNLOAD/wrf-4.3.3.tar.gz [ENV] #!/bin/bash module purge module use ./software/modulefiles -module load bisheng/2.5.0 +module load bisheng/3.2.0 module load jasper/1.900.2 -module load hmpi/1.2.0 -module load hdf5-clang/1.12.0 netcdf-clang/4.7.4 pnetcdf/1.12.1 -module load kml-gcc/1.6.0 +module load hmpi/2.3.0 +module load hdf5-clang/1.12.0 netcdf-clang/4.8.1 pnetcdf/1.12.1 +module load kml-bisheng/2.4.0 export WRFIO_NCD_LARGE_FILE_SUPPORT=1 export NETCDF=$NETCDF_CLANG_PATH export HDF5=$HDF5_CLANG_PATH @@ -55,18 +55,67 @@ export WRFIO_NCD_LARGE_FILE_SUPPORT=1 [APP] app_name = WRF build_dir = ${WRF_DIR} -binary_dir = +binary_dir = case_dir = ${JARVIS_ROOT}/workloads/test_wrf [BUILD] +cat << \EOF > ./arch/configure.defaults +########################################################### +#ARCH Linux aarch64,clang HYPERMPI#serial smpar dmpar dm+sm +DESCRIPTION = CLANG ($SFC/$SCC) +DMPARALLEL = 1 +OMPCPP = -D_OPENMP +OMP = -fopenmp +OMPCC = -fopenmp +SFC = flang +SCC = clang +CCOMP = clang +DM_FC = mpif90 -f90=$(SFC) +DM_CC = mpicc -cc=$(SCC) -DMPI2_SUPPORT +FC = CONFIGURE_FC +CC = CONFIGURE_CC +LD = $(FC) -L$(KML_BISHENG_PATH)/lib -lkm +RWORDSIZE = CONFIGURE_RWORDSIZE +PROMOTION = #-fdefault-real-8 +ARCH_LOCAL = -DNONSTANDARD_SYSTEM_SUBR -DWRF_USE_CLM +CFLAGS_LOCAL = -mcpu=native -w -O3 -c -march=armv8.2-a +LDFLAGS_LOCAL = +CPLUSPLUSLIB = +ESMF_LDFLAG = $(CPLUSPLUSLIB) +FCOPTIM = -O3 -march=armv8.2-a +FCREDUCEDOPT = $(FCOPTIM) +FCNOOPT = -O0 +FCDEBUG = -g # -fbacktrace -ggdb-fcheck=bounds,do,mem,pointer -ffpe-trap=invalid,zero,overflow +FORMAT_FIXED = -ffixed-form +FORMAT_FREE = -ffree-form -ffree-line-length-0 +FCSUFFIX = +BYTESWAPIO = -fconvert=big-endian +FCBASEOPTS_NO_G = -w $(FORMAT_FREE) $(BYTESWAPIO) +FCBASEOPTS = -mcpu=native $(OMP) $(FCBASEOPTS_NO_G) +MODULE_SRCH_FLAG = +TRADFLAG = -traditional +CPP = /lib/cpp -P +AR = ar +ARFLAGS = ru +M4 = m4 -G +RANLIB = ranlib +RLFLAGS = +CC_TOOLS = $(SCC) + +#insert new stanza before the Fujitsu block, keep Fujitsu at the end of the list +########################################################### +#ARCH NULL +#insert new stanza before the Fujitsu block, keep Fujitsu at the end of the list +########################################################### +#ARCH NULL +EOF echo 4 | ./configure -./compile -j 16 em_real 2>&1 | tee compile.log +./compile -j 16 em_real 2>&1 | tee compile.log [CLEAN] ./clean [RUN] run = dsub -s run.sh -binary = +binary = nodes = 1 - -- Gitee