From c5c3ebb4c9acab4845b5708c0f24b8b4ef7edeab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=AB=98=E6=96=87=E5=B0=A7?= <2794580162@qq.com> Date: Tue, 15 Jul 2025 10:08:11 +0800 Subject: [PATCH 1/2] nco --- templates/nco/5.1.4/data.NCO.arm.cpu.config | 59 +++++++++------------ 1 file changed, 24 insertions(+), 35 deletions(-) diff --git a/templates/nco/5.1.4/data.NCO.arm.cpu.config b/templates/nco/5.1.4/data.NCO.arm.cpu.config index 14116d5..ac8a4cf 100644 --- a/templates/nco/5.1.4/data.NCO.arm.cpu.config +++ b/templates/nco/5.1.4/data.NCO.arm.cpu.config @@ -7,61 +7,58 @@ NCO/5.1.4 https://sourceforge.net/projects/nco/files/nco-5.1.4.tar.gz [DEPENDENCY] set -e set -x + module purge ./jarvis -install bisheng/2.3.0 com module use ./software/modulefiles module load bisheng/2.3.0 -sed -i '9c ./configure --prefix=$1 CFLAGS="-fPIC"' package/libjpeg/v9b/install.sh +export CC=`which clang` +export CXX=`which clang++` +export FC=`which flang` ./jarvis -install libjpeg/v9b bisheng ./jarvis -install hmpi/1.2.0 bisheng module load libjpeg/v9b - - module load hmpi/1.2.0 -CC=`which mpicc` ./jarvis -install hdf5/1.12.0/clang bisheng module load hdf5-clang/1.12.0 ./jarvis -install hdf4/4.2.13 bisheng module load hdf4/4.2.13 -./jarvis -install hdf4/ bisheng -sed -i '21c ./configure --prefix=$1 ${build_type} --enable-shared --enable-netcdf-4 --disable-dap --with-pic --disable-doxygen --enable-static --disable-pnetcdf --enable-largefile CPPFLAGS="-O3 -I${HMPI_PATH}/include -I${HDF5_CLANG_PATH}/include -I${PNETCDF_DIR}/include" LDFLAGS="-L${HDF5_CLANG_PATH}/lib -L${PNETCDF_DIR}/lib -Wl,-rpath=${HDF5_CLANG_PATH}/lib -Wl,-rpath=${PNETCDF_DIR}/lib" CFLAGS="-O3 -L${HDF5_CLANG_PATH}/lib -L${PNETCDF_DIR}/lib -I${HDF5_CLANG_PATH}/include -I${PNETCDF_DIR}/include"' package/netcdf/4.7.4/install.sh -sed -i '5c hdf5_version="${hdf5_big_version}.0"' package/hdf5/1.12.0/install.sh -CC=`which mpicc` ./jarvis -install hdf5/1.12.0 bisheng -module load hdf5/1.12.0 -./jarvis -install hdf4/4.2.13/ bisheng -module load hdf4/4.2.13 -sed -i '21c ./configure --prefix=$1 ${build_type} --enable-shared --enable-netcdf-4 --disable-dap --with-pic --disable-doxygen --enable-static --disable-pnetcdf --enable-largefile CPPFLAGS="-O3 -I${HMPI_PATH}/include -I${HDF5_DIR}/include -I${PNETCDF_DIR}/include" LDFLAGS="-L${HDF5_DIR}/lib -L${PNETCDF_DIR}/lib -Wl,-rpath=${HDF5_DIR}/lib -Wl,-rpath=${PNETCDF_DIR}/lib" CFLAGS="-O3 -L${HDF5_DIR}/lib -L${PNETCDF_DIR}/lib -I${HDF5_DIR}/include -I${PNETCDF_DIR}/include"' package/netcdf/4.7.4/install.sh -./jarvis -install netcdf/4.7.4 bisheng -module load netcdf/4.7.4 +./jarvis -install pnetcdf/1.12.1 bisheng +module load pnetcdf/1.12.1 ./jarvis -install gsl/2.6 bisheng -sed -i '14c --disable-python --build=arm-linux' package/antlr/2.7.7/install.sh +module load gsl/2.6 ./jarvis -install antlr/2.7.7 bisheng +module load antlr/2.7.7 ./jarvis -install udunits/2.2.28 bisheng +module load udunits/2.2.28 +./jarvis -install netcdf/4.7.4/clang clang+mpi +module use ./software/moduledeps/bisheng2.3.0-hmpi1.2.0 +module load netcdf-clang/4.7.4 [ENV] module purge module use ./software/modulefiles - module load bisheng/2.3.0 +export CC=`which clang` +export CXX=`which clang++` +export FC=`which flang` +module load libjpeg/v9b module load hmpi/1.2.0 module load hdf5-clang/1.12.0 module load hdf4/4.2.13 -module load netcdf/4.7.4 +module load pnetcdf/1.12.1 module load gsl/2.6 -module load antlr/2.7.7 +module load antlr/2.7.7 module load udunits/2.2.28 - -export CC=`which clang` -export CXX=`which clang++` -export FC=`which flang` - +module use ./software/moduledeps/bisheng2.3.0-hmpi1.2.0 +module load netcdf-clang/4.7.4 [APP] app_name = NCO -build_dir = ${JARVIS_TMP}/nco-5.1.4 +build_dir = ${JARVIS_TMP}/ binary_dir = ${JARVIS_LIBS}/bisheng2.3.0/nco/bin case_dir = ${JARVIS_LIBS}/bisheng2.3.0/nco/bin @@ -72,18 +69,10 @@ rm -rf nco-5.1.4 tar zxvf ${JARVIS_DOWNLOAD}/nco-5.1.4.tar.gz cd nco-5.1.4 echo ${UDUNITS_PATH} -export NETCDF_INC=${NETCDF_PATH}/include -export NETCDF_LIB=${NETCDF_PATH}/lib -./configure CPPFLAGS="-I${ANTLR_PATH}/include -I${UDUNITS_PATH}/include" CFLAGS="-L${ANTLR_PATH}/lib -I${NETCDF_PATH}/include -I${UDUNITS_PATH}/include -L${UDUNITS_PATH}/lib " --prefix=${JARVIS_LIBS}/bisheng2.3.0/nco +export NETCDF_INC=${NETCDF_CLANG_PATH}/include +export NETCDF_LIB=${NETCDF_CLANG_PATH}/lib +./configure CPPFLAGS="-I${ANTLR_PATH}/include -I${UDUNITS_PATH}/include" CFLAGS="-L${ANTLR_PATH}/lib -I${NETCDF_CLANG_PATH}/include -I${UDUNITS_PATH}/include -L${UDUNITS_PATH}/lib " --prefix=${JARVIS_LIBS}/bisheng2.3.0/nco make make install - - - -[RUN] -run = ./ncap2 -v -binary = -nodes = 1 - -- Gitee From 5fda0a4c5d3d3abdb54ae81aded9e4501fb1fcfe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=AB=98=E6=96=87=E5=B0=A7?= <2794580162@qq.com> Date: Tue, 15 Jul 2025 10:41:39 +0800 Subject: [PATCH 2/2] nco --- templates/nco/5.1.4/data.NCO.arm.cpu.config | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/templates/nco/5.1.4/data.NCO.arm.cpu.config b/templates/nco/5.1.4/data.NCO.arm.cpu.config index ac8a4cf..38aa208 100644 --- a/templates/nco/5.1.4/data.NCO.arm.cpu.config +++ b/templates/nco/5.1.4/data.NCO.arm.cpu.config @@ -75,4 +75,8 @@ export NETCDF_LIB=${NETCDF_CLANG_PATH}/lib make make install +[RUN] +run = ./ncap2 -v +binary = +nodes = 1 -- Gitee