From c934b03674e032d8849e22545e51362a441a5848 Mon Sep 17 00:00:00 2001 From: chenshaoheng Date: Tue, 27 Feb 2024 15:07:36 +0800 Subject: [PATCH 01/19] update data.NWchem-new.arm.cpu.config.def --- .../6.8.1/data.NWchem-new.arm.cpu.config.def | 53 +++++++++++++++++++ .../6.8.1/data.NWchem.arm.cpu.config.def | 9 ++++ 2 files changed, 62 insertions(+) create mode 100644 container/nwchem/6.8.1/data.NWchem-new.arm.cpu.config.def diff --git a/container/nwchem/6.8.1/data.NWchem-new.arm.cpu.config.def b/container/nwchem/6.8.1/data.NWchem-new.arm.cpu.config.def new file mode 100644 index 0000000..6f5af9c --- /dev/null +++ b/container/nwchem/6.8.1/data.NWchem-new.arm.cpu.config.def @@ -0,0 +1,53 @@ +BootStrap: library +From: helloxusuo/repo/base:oe2203sp2 + +%environment + source /etc/profile || true + source /etc/profile.d/modules.sh + cd /hpcrunner + module use ./software/moduledeps/bisheng3.2.0 + source env.sh + +%post + # Install the necessary development environment + #yum install -y environment-modules git dmidecode pciutils wget vim unzip curl zlib zlib-devel + # Install base gcc + #yum install -y gcc gcc-c++ gcc-gfortran glibc-devel make libgfortran cmake + # install network package + #yum install -y flex tcsh tcl lsof tk bc + + #source /etc/profile || true + cd /hpcrunner + git init + git config --global http.sslVerify false + git status + + git pull https://gitee.com/openeuler/hpcrunner + cd ../ + mkdir linshi + cd linshi + git clone https://gitee.com/chenshaoheng/hpcrunner.git + cp hpcrunner/templates/nwchem/6.8.1/data.nwchem-new.arm.cpu.config /hpcrunner/templates/nwchem/6.8.1/ -f + + cd - + rm linshi -rf + cd /hpcrunner + source ./init.sh + # add your personal files here + + # Switch config + ./jarvis -use templates/nwchem/6.8.1/data.nwchem-new.arm.cpu.config + # download dependency + ./jarvis -d + # install dependency + ./jarvis -dp + # build hpc + ./jarvis -b + # run hpc + ./jarvis -r + # clean tmp directory + rm -rf downloads + + +%labels + Author chen diff --git a/container/nwchem/6.8.1/data.NWchem.arm.cpu.config.def b/container/nwchem/6.8.1/data.NWchem.arm.cpu.config.def index 817bf39..6f5af9c 100644 --- a/container/nwchem/6.8.1/data.NWchem.arm.cpu.config.def +++ b/container/nwchem/6.8.1/data.NWchem.arm.cpu.config.def @@ -17,11 +17,20 @@ From: helloxusuo/repo/base:oe2203sp2 #yum install -y flex tcsh tcl lsof tk bc #source /etc/profile || true + cd /hpcrunner git init git config --global http.sslVerify false git status git pull https://gitee.com/openeuler/hpcrunner + cd ../ + mkdir linshi + cd linshi + git clone https://gitee.com/chenshaoheng/hpcrunner.git + cp hpcrunner/templates/nwchem/6.8.1/data.nwchem-new.arm.cpu.config /hpcrunner/templates/nwchem/6.8.1/ -f + + cd - + rm linshi -rf cd /hpcrunner source ./init.sh # add your personal files here -- Gitee From d165dd3da069651936c3cc44f2eefd295098d07b Mon Sep 17 00:00:00 2001 From: chenshaoheng Date: Tue, 5 Mar 2024 11:38:24 +0800 Subject: [PATCH 02/19] add nwchem-sve.arm.cpu.config --- .../6.8.1/data.nwchem-sve.arm.cpu.config | 60 +++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 templates/nwchem/6.8.1/data.nwchem-sve.arm.cpu.config diff --git a/templates/nwchem/6.8.1/data.nwchem-sve.arm.cpu.config b/templates/nwchem/6.8.1/data.nwchem-sve.arm.cpu.config new file mode 100644 index 0000000..5826e42 --- /dev/null +++ b/templates/nwchem/6.8.1/data.nwchem-sve.arm.cpu.config @@ -0,0 +1,60 @@ +[SERVER] +11.11.11.11 + +[DOWNLOAD] +nwchem/6.8.1 https://codeload.github.com/NWChemgit/NWChem/tar.gz/6.8.1-release nwchem-6.8.1-release.tar.gz +ga/5.6.5 $JARVIS_PROXY/edoapra/ga/releases/download/v5.6.5/ga-5.6.5.tar.gz + + +[DEPENDENCY] +module purge +./jarvis -install bisheng/3.2.0-mini com +module use ./software/modulefiles +module load bisheng/3.2.0-mini +export CC=clang CXX=clang++ FC=flang +./jarvis -install hmpi/2.3.0 clang +module use ./software/moduledeps/bisheng3.2.0 +module load hmpi/2.3.0 + + +[ENV] +module use ./software/modulefiles +module purge +module load bisheng/3.2.0-mini +module use ./software/moduledeps/bisheng3.2.0 +module load hmpi/2.3.0 +export CC=clang CXX=clang++ FC=flang +export PMIX_INSTALL_PREFIX=${OPAL_PREFIX} +cd /hpcrunner +CUR_PATH=$(pwd) +export JARVIS_ROOT=${CUR_PATH} +export JARVIS_TMP=${CUR_PATH}/tmp +export PATH=${JARVIS_TMP}/nwchem-6.8.1-release/bin/LINUX64:$PATH + +[APP] +app_name = nwchem +build_dir = ${JARVIS_ROOT} +binary_dir = ${JARVIS_TMP}/nwchem-6.8.1-release/bin/LINUX64 +case_dir = + +[BUILD] +cd ${JARVIS_TMP} +tar -xvf ${JARVIS_DOWNLOAD}/nwchem-6.8.1-release.tar.gz +cd nwchem-6.8.1-release +cd src/tools +tar -zxvf ${JARVIS_DOWNLOAD}/ga-5.6.5.tar.gz +export NWCHEM_TOP=${JARVIS_TMP}/nwchem-6.8.1-release +export NWCHEM_TARGET=LINUX64 +export NWCHEM_MODULES=all +export USE_MPI=y +export USE_INTERNALBLAS=y +export NWCHEM_LONG_PATHS=Y +cd ${JARVIS_TMP}/nwchem-6.8.1-release/src +make nwchem_config +make FC=flang CC=clang CFLAGS="-mcpu=linxicore9100 -mllvm -force-customized-pipeline=true" FFLAGS="-mcpu=linxicore9100 -mllvm -force-customized-pipeline=true" + +[RUN] +run = +binary = +nodes = 1 + -- Gitee From 96a888b1d52a5e10b4d0d3d5cc3ff110ae2d7a10 Mon Sep 17 00:00:00 2001 From: chenshaoheng Date: Tue, 5 Mar 2024 15:03:45 +0800 Subject: [PATCH 03/19] fix nwchem-sve --- templates/nwchem/6.8.1/data.nwchem-sve.arm.cpu.config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/nwchem/6.8.1/data.nwchem-sve.arm.cpu.config b/templates/nwchem/6.8.1/data.nwchem-sve.arm.cpu.config index 5826e42..8c92594 100644 --- a/templates/nwchem/6.8.1/data.nwchem-sve.arm.cpu.config +++ b/templates/nwchem/6.8.1/data.nwchem-sve.arm.cpu.config @@ -51,7 +51,7 @@ export USE_INTERNALBLAS=y export NWCHEM_LONG_PATHS=Y cd ${JARVIS_TMP}/nwchem-6.8.1-release/src make nwchem_config -make FC=flang CC=clang CFLAGS="-mcpu=linxicore9100 -mllvm -force-customized-pipeline=true" FFLAGS="-mcpu=linxicore9100 -mllvm -force-customized-pipeline=true" +make FC=flang CFLAGS="-mcpu=linxicore9100 -mllvm -force-customized-pipeline=true" FFLAGS="-mcpu=linxicore9100 -mllvm -force-customized-pipeline=true" [RUN] run = -- Gitee From e5ea028d9fe4ea0c5b505220cce9d62dfdb124fa Mon Sep 17 00:00:00 2001 From: chenshaoheng Date: Tue, 5 Mar 2024 15:11:46 +0800 Subject: [PATCH 04/19] fix nwchem-sve --- templates/nwchem/6.8.1/data.nwchem-sve.arm.cpu.config | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/nwchem/6.8.1/data.nwchem-sve.arm.cpu.config b/templates/nwchem/6.8.1/data.nwchem-sve.arm.cpu.config index 8c92594..a60befd 100644 --- a/templates/nwchem/6.8.1/data.nwchem-sve.arm.cpu.config +++ b/templates/nwchem/6.8.1/data.nwchem-sve.arm.cpu.config @@ -33,8 +33,8 @@ export PATH=${JARVIS_TMP}/nwchem-6.8.1-release/bin/LINUX64:$PATH [APP] app_name = nwchem -build_dir = ${JARVIS_ROOT} -binary_dir = ${JARVIS_TMP}/nwchem-6.8.1-release/bin/LINUX64 +build_dir = +binary_dir = case_dir = [BUILD] @@ -56,5 +56,5 @@ make FC=flang CFLAGS="-mcpu=linxicore9100 -mllvm -force-customized-pipeline=true [RUN] run = binary = -nodes = 1 +nodes = -- Gitee From c1e712abe7ffa88b9825fbe74af04057d4d90c35 Mon Sep 17 00:00:00 2001 From: chenshaoheng Date: Tue, 5 Mar 2024 08:14:44 +0000 Subject: [PATCH 05/19] update templates/nwchem/6.8.1/data.nwchem-sve.arm.cpu.config. Signed-off-by: chenshaoheng --- templates/nwchem/6.8.1/data.nwchem-sve.arm.cpu.config | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/nwchem/6.8.1/data.nwchem-sve.arm.cpu.config b/templates/nwchem/6.8.1/data.nwchem-sve.arm.cpu.config index a60befd..991f086 100644 --- a/templates/nwchem/6.8.1/data.nwchem-sve.arm.cpu.config +++ b/templates/nwchem/6.8.1/data.nwchem-sve.arm.cpu.config @@ -33,8 +33,8 @@ export PATH=${JARVIS_TMP}/nwchem-6.8.1-release/bin/LINUX64:$PATH [APP] app_name = nwchem -build_dir = -binary_dir = +build_dir = ${JARVIS_TMP}/nwchem-6.8.1-release +binary_dir = ${JARVIS_TMP}/nwchem-6.8.1-release/bin/LINUX64 case_dir = [BUILD] @@ -56,5 +56,5 @@ make FC=flang CFLAGS="-mcpu=linxicore9100 -mllvm -force-customized-pipeline=true [RUN] run = binary = -nodes = +nodes = 1 -- Gitee From f47767d9fd3ea499ee1f7227c07f894faee2349c Mon Sep 17 00:00:00 2001 From: chenshaoheng Date: Tue, 5 Mar 2024 09:46:59 +0000 Subject: [PATCH 06/19] update templates/nwchem/6.8.1/data.nwchem-sve.arm.cpu.config. Signed-off-by: chenshaoheng --- templates/nwchem/6.8.1/data.nwchem-sve.arm.cpu.config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/nwchem/6.8.1/data.nwchem-sve.arm.cpu.config b/templates/nwchem/6.8.1/data.nwchem-sve.arm.cpu.config index 991f086..8899c51 100644 --- a/templates/nwchem/6.8.1/data.nwchem-sve.arm.cpu.config +++ b/templates/nwchem/6.8.1/data.nwchem-sve.arm.cpu.config @@ -51,7 +51,7 @@ export USE_INTERNALBLAS=y export NWCHEM_LONG_PATHS=Y cd ${JARVIS_TMP}/nwchem-6.8.1-release/src make nwchem_config -make FC=flang CFLAGS="-mcpu=linxicore9100 -mllvm -force-customized-pipeline=true" FFLAGS="-mcpu=linxicore9100 -mllvm -force-customized-pipeline=true" +make FC=flang CC=clang CFLAGS="-mcpu=linxicore9100 -mllvm -force-customized-pipeline=true" FFLAGS="-mcpu=linxicore9100 -mllvm -force-customized-pipeline=true" [RUN] run = -- Gitee From bad902fbd53659d8f60a86aa5c95ceb7c0313744 Mon Sep 17 00:00:00 2001 From: chenshaoheng Date: Tue, 5 Mar 2024 12:28:00 +0000 Subject: [PATCH 07/19] update templates/nwchem/6.8.1/data.nwchem-sve.arm.cpu.config. Signed-off-by: chenshaoheng --- templates/nwchem/6.8.1/data.nwchem-sve.arm.cpu.config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/nwchem/6.8.1/data.nwchem-sve.arm.cpu.config b/templates/nwchem/6.8.1/data.nwchem-sve.arm.cpu.config index 8899c51..13cd18d 100644 --- a/templates/nwchem/6.8.1/data.nwchem-sve.arm.cpu.config +++ b/templates/nwchem/6.8.1/data.nwchem-sve.arm.cpu.config @@ -51,7 +51,7 @@ export USE_INTERNALBLAS=y export NWCHEM_LONG_PATHS=Y cd ${JARVIS_TMP}/nwchem-6.8.1-release/src make nwchem_config -make FC=flang CC=clang CFLAGS="-mcpu=linxicore9100 -mllvm -force-customized-pipeline=true" FFLAGS="-mcpu=linxicore9100 -mllvm -force-customized-pipeline=true" +make -j32 FC=flang CC=clang COPTIONS="-mcpu=linxicore9100 -mllvm -force-customized-pipeline=true" FOPTIONS="-mcpu=linxicore9100 -mllvm -force-customized-pipeline=true" [RUN] run = -- Gitee From 87ce8b89948e13cb38a66b701857c44e056b61dc Mon Sep 17 00:00:00 2001 From: chenshaoheng Date: Wed, 6 Mar 2024 09:07:19 +0000 Subject: [PATCH 08/19] update templates/nwchem/6.8.1/data.nwchem-sve.arm.cpu.config. Signed-off-by: chenshaoheng --- templates/nwchem/6.8.1/data.nwchem-sve.arm.cpu.config | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/templates/nwchem/6.8.1/data.nwchem-sve.arm.cpu.config b/templates/nwchem/6.8.1/data.nwchem-sve.arm.cpu.config index 13cd18d..1db9995 100644 --- a/templates/nwchem/6.8.1/data.nwchem-sve.arm.cpu.config +++ b/templates/nwchem/6.8.1/data.nwchem-sve.arm.cpu.config @@ -51,7 +51,9 @@ export USE_INTERNALBLAS=y export NWCHEM_LONG_PATHS=Y cd ${JARVIS_TMP}/nwchem-6.8.1-release/src make nwchem_config -make -j32 FC=flang CC=clang COPTIONS="-mcpu=linxicore9100 -mllvm -force-customized-pipeline=true" FOPTIONS="-mcpu=linxicore9100 -mllvm -force-customized-pipeline=true" +export COPTIONS="-mcpu=linxicore9100 -mllvm -force-customized-pipeline=true" +export FOPTIONS="-mcpu=linxicore9100 -mllvm -force-customized-pipeline=true" +make FC=flang [RUN] run = -- Gitee From 176b2ab6c5331f942851abe5b146efe32dba5ccf Mon Sep 17 00:00:00 2001 From: chenshaoheng Date: Thu, 7 Mar 2024 01:17:17 +0000 Subject: [PATCH 09/19] update container/nwchem/6.8.1/data.NWchem-new.arm.cpu.config.def. Signed-off-by: chenshaoheng --- container/nwchem/6.8.1/data.NWchem-new.arm.cpu.config.def | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/container/nwchem/6.8.1/data.NWchem-new.arm.cpu.config.def b/container/nwchem/6.8.1/data.NWchem-new.arm.cpu.config.def index 6f5af9c..5f202a6 100644 --- a/container/nwchem/6.8.1/data.NWchem-new.arm.cpu.config.def +++ b/container/nwchem/6.8.1/data.NWchem-new.arm.cpu.config.def @@ -46,7 +46,7 @@ From: helloxusuo/repo/base:oe2203sp2 # run hpc ./jarvis -r # clean tmp directory - rm -rf downloads + rm downloads/* tmp/nwchem-6.8.1-release/src/tools/ga-5.6.5.tar.gz -rf %labels -- Gitee From 8300fe6f4d473d1f76f6bc0f8fd5f4b54b005170 Mon Sep 17 00:00:00 2001 From: chenshaoheng Date: Mon, 18 Mar 2024 16:23:42 +0800 Subject: [PATCH 10/19] add qe/7.3/data.qe.arm-sve.cpu.config --- templates/qe/7.3/data.qe.arm-sve.cpu.config | 59 +++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 templates/qe/7.3/data.qe.arm-sve.cpu.config diff --git a/templates/qe/7.3/data.qe.arm-sve.cpu.config b/templates/qe/7.3/data.qe.arm-sve.cpu.config new file mode 100644 index 0000000..c9de3a5 --- /dev/null +++ b/templates/qe/7.3/data.qe.arm-sve.cpu.config @@ -0,0 +1,59 @@ +[SERVER] +11.11.11.11 + +[DOWNLOAD] +qe/7.3 https://gitlab.com/QEF/q-e/-/archive/qe-7.3/q-e-qe-7.3.tar + +[DEPENDENCY] +module purge +./jarvis -install bisheng/3.2.0-mini com +module use ./software/modulefiles +module load bisheng/3.2.0-mini +export CC=clang CXX=clang++ FC=flang +./jarvis -install hmpi/2.3.0 bisheng +module use ./software/moduledeps/bisheng3.2.0 +module load hmpi/2.3.0 +module load kml-bisheng/2.2.0 + + +[ENV] +module purge +module use ./software/modulefiles +module load bisheng/3.2.0-mini +module use ./software/moduledeps/bisheng3.2.0 +module load hmpi/2.3.0 +module load kml-bisheng/2.2.0 + +export BLAS_LIBS="-L${JARVIS_ROOT}/software/libs/bisheng3.2.0/kml-bisheng/2.2.0/lib/kblas/omp -lkblas" +export LAPACK_LIBS="-L${JARVIS_ROOT}/software/libs/bisheng3.2.0/kml-bisheng/2.2.0/lib -lklapack_full" + +cd /hpcrunner +CUR_PATH=$(pwd) +export JARVIS_ROOT=${CUR_PATH} +export JARVIS_TMP=${CUR_PATH}/tmp +export PATH=${JARVIS_ROOT}/q-e-qe-7.3-kml/bin:$PATH + + +[APP] +app_name = QE +build_dir = ${JARVIS_TMP}/q-e-qe-7.3 +binary_dir = ${JARVIS_ROOT}/q-e-qe-7.3-kml/bin +case_dir = + +[BUILD] +cd ${JARVIS_TMP} +tar -xf ${JARVIS_DOWNLOAD}/q-e-qe-7.3.tar +cd q-e-qe-7.3 + +./configure F90=flang F77=flang MPIF90=mpifort MPIF77=mpifort CC=mpicc FCFLAGS="-O3 -mcpu=linxicore9100 -mllvm -force-customized-pipeline=true" CFLAGS="-O3 -mcpu=linxicore9100 -mllvm -force-customized-pipeline=true" --with-scalapack=no --enable-openmp --prefix=$JARVIS_ROOT/q-e-qe-7.3-kml +sed -i 's/gfortran/flang/g' make.inc +make -j pwall +make install + +[CLEAN] +make clean + +[RUN] +run = +binary = +nodes = 1 -- Gitee From 033823709a13d333a3b22f83a586e88a7a565caa Mon Sep 17 00:00:00 2001 From: chenshaoheng Date: Mon, 18 Mar 2024 16:35:45 +0800 Subject: [PATCH 11/19] add container-cesm.sve.config --- templates/CESM/2.1.3/CESM-2.1.3.patch | 117 ++++++++++++++++++ .../data.cesm.arm.cpu.singularity.config | 94 ++++++++++++++ 2 files changed, 211 insertions(+) create mode 100644 templates/CESM/2.1.3/CESM-2.1.3.patch create mode 100644 templates/CESM/2.1.3/data.cesm.arm.cpu.singularity.config diff --git a/templates/CESM/2.1.3/CESM-2.1.3.patch b/templates/CESM/2.1.3/CESM-2.1.3.patch new file mode 100644 index 0000000..b3345d1 --- /dev/null +++ b/templates/CESM/2.1.3/CESM-2.1.3.patch @@ -0,0 +1,117 @@ +diff -uprN CESM-release-cesm2.1.3/cime/config/cesm/machines/config_compilers.xml CESM-release-cesm2.1.3_1/cime/config/cesm/machines/config_compilers.xml +--- CESM-release-cesm2.1.3/cime/config/cesm/machines/config_compilers.xml 2023-08-01 11:02:27.000000000 +0800 ++++ CESM-release-cesm2.1.3_1/cime/config/cesm/machines/config_compilers.xml 2024-03-11 10:38:25.077406000 +0800 +@@ -1273,9 +1273,9 @@ using a fortran linker. + + + +- ++ + +- -std=gnu99 -O3 -mcpu=tsv110 ++ -std=gnu99 -O3 -mcpu=linxicore9100 -mllvm -force-customized-pipeline=true + -fopenmp + -mllvm -alias-set-saturation-threshold=10000 + -mllvm -alias-set-saturation-threshold=10000 +@@ -1291,7 +1291,7 @@ using a fortran linker. + + +- -mno-fcmla -fconvert=big-endian -O3 -mcpu=tsv110 -Hx,54,0x08 -Hx,54,0x800 -Mx,54,0x1000 -mllvm -alias-set-saturation-threshold=10000 -lstringlib -Wl,--wrap=memcpy -Wl,--wrap=memset -I/workspace/public/software/libs/netcdf/netcdf_c_4.7.4_fortran_4.5.3/bisheng2.5.0_hmpi1.2.0/include -I/workspace/public/software/libs/pnetcdf/1.12.1/bisheng2.5.0_hmpi1.2.0/include -I/workspace/public/software/libs/hdf5/1.12.0/bisheng2.5.0_hmpi1.2.0/include -I/workspace/public/software/libs/kml/1.6.0/include -I./ -I../ ++ -mno-fcmla -fconvert=big-endian -O3 -mcpu=linxicore9100 -mllvm -force-customized-pipeline=true -Hx,54,0x08 -Hx,54,0x800 -Mx,54,0x1000 -mllvm -alias-set-saturation-threshold=10000 -lstringlib -Wl,--wrap=memcpy -Wl,--wrap=memset -I/hpcrunner/software/libs/bisheng3.2.0/hmpi2.3.0/netcdf-clang/4.8.1/include -I/hpcrunner/software/libs/bisheng3.2.0/hmpi2.3.0/pnetcdf/1.12.1/include -I/hpcrunner/software/libs/bisheng3.2.0/hmpi2.3.0/hdf5-clang/1.12.0/include -I/hpcrunner/software/libs/bisheng3.2.0/kml-bisheng/2.2.0/include -I./ -I../ + -fopenmp +