From abfc171f6af35e3226fadc69f707cf9eddcac157 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=AB=98=E6=96=87=E5=B0=A7?= <18848977154@163.com> Date: Thu, 22 May 2025 16:36:26 +0800 Subject: [PATCH 1/3] must --- .../must/1.8.0/data.must.arm.cpu.kgcc.config | 66 +++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 templates/must/1.8.0/data.must.arm.cpu.kgcc.config diff --git a/templates/must/1.8.0/data.must.arm.cpu.kgcc.config b/templates/must/1.8.0/data.must.arm.cpu.kgcc.config new file mode 100644 index 0000000..cd4597f --- /dev/null +++ b/templates/must/1.8.0/data.must.arm.cpu.kgcc.config @@ -0,0 +1,66 @@ +[SERVER] +11.11.11.11 + +[DOWNLOAD] +must/1.8.0 https://hpc.rwth-aachen.de/must/files/MUST-v1.8.0-rc1.tar.gz MUST-v1.8.0-rc1.tar.gz +binutils/2.40 https://mirrors.aliyun.com/gnu/binutils/binutils-2.40.tar.gz binutils-2.40.tar.gz + +[DEPENDENCY] +set -e +set -x +yum install cmake make texinfo -y +module purge +./jarvis -install hpckit/2024.12.30 any +module use software/utils/hpckit/2024.12.30/HPCKit/24.12.30/modulefiles +module add gcc/compiler12.3.1/gccmodule +export CC=`which gcc` +export CXX=`which g++` +export FC=`which gfortran` +./jarvis -install openmpi/4.1.2 gcc +module use software/moduledeps/gcc12.3.1 +module load openmpi/4.1.2 +mkdir -p must +mkdir -p binutils +tar -xvf ${JARVIS_DOWNLOAD}/binutils-2.40.tar.gz +tar -xvf ${JARVIS_DOWNLOAD}/MUST-v1.8.0-rc1.tar.gz +cd binutils-2.40 +./configure --prefix=${JARVIS_ROOT}/binutils --enable-ld=yes --with-static-standard-libraries --enable-install-libbfd CFLAGS="-fPIC" CXXFLAGS="-fPIC" FCFLAGS="-fPIC" FFLAGS="-fPIC" +make +make install +export PATH=${JARVIS_ROOT}/binutils/bin:$PATH +export LD_LIBRARY_PATH=${JARVIS_ROOT}/binutils/lib:$LD_LIBRARY_PATH +ld -version + +[ENV] +module purge +module use software/utils/hpckit/2024.12.30/HPCKit/24.12.30/modulefiles +module add gcc/compiler12.3.1/gccmodule +export CC=`which gcc` +export CXX=`which g++` +export FC=`which gfortran` +module use software/moduledeps/gcc12.3.1 +module load openmpi/4.1.2 + +[APP] +app_name = must +build_dir = ${JARVIS_ROOT}/MUST-v1.8.0-rc1/ +binary_dir = ${JARVIS_ROOT}/must/bin/ +case_dir = ${JARVIS_ROOT}/must/bin/ + +[BUILD] +sed -i 's/start = (TRANSTYPE \*)va_alist;/start = (TRANSTYPE \*)\&va_alist;/g' externals/GTI/externals/PnMPI/src/pnmpi/wrapper.c +cmake -DCMAKE_INSTALL_PREFIX=${JARVIS_ROOT}/must -DCMAKE_BUILD_TYPE=Release +make install + +[CLEAN] +make clean + +[RUN] +run = +binary = mustrun -np 8 application.exe +nodes = 1 + +[PERF] +perf= +nsys= +ncu=--target-processes all -- Gitee From b065389110b479f436f2842082f4667172b8f3d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=AB=98=E6=96=87=E5=B0=A7?= <18848977154@163.com> Date: Wed, 11 Jun 2025 16:17:25 +0800 Subject: [PATCH 2/3] must --- .../must/1.8.0/data.must.arm.cpu.kgcc.config | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/templates/must/1.8.0/data.must.arm.cpu.kgcc.config b/templates/must/1.8.0/data.must.arm.cpu.kgcc.config index cd4597f..a34c662 100644 --- a/templates/must/1.8.0/data.must.arm.cpu.kgcc.config +++ b/templates/must/1.8.0/data.must.arm.cpu.kgcc.config @@ -3,7 +3,6 @@ [DOWNLOAD] must/1.8.0 https://hpc.rwth-aachen.de/must/files/MUST-v1.8.0-rc1.tar.gz MUST-v1.8.0-rc1.tar.gz -binutils/2.40 https://mirrors.aliyun.com/gnu/binutils/binutils-2.40.tar.gz binutils-2.40.tar.gz [DEPENDENCY] set -e @@ -19,17 +18,14 @@ export FC=`which gfortran` ./jarvis -install openmpi/4.1.2 gcc module use software/moduledeps/gcc12.3.1 module load openmpi/4.1.2 +./jarvis -install binutils/2.40 any +module use software/modulefiles +module load binutils/2.40 +export PATH=$BINUTILS_PATH/bin:$PATH +export LD_LIBRARY_PATH=$BINUTILS_PATH/lib:$LD_LIBRARY_PATH +ld -version mkdir -p must -mkdir -p binutils -tar -xvf ${JARVIS_DOWNLOAD}/binutils-2.40.tar.gz tar -xvf ${JARVIS_DOWNLOAD}/MUST-v1.8.0-rc1.tar.gz -cd binutils-2.40 -./configure --prefix=${JARVIS_ROOT}/binutils --enable-ld=yes --with-static-standard-libraries --enable-install-libbfd CFLAGS="-fPIC" CXXFLAGS="-fPIC" FCFLAGS="-fPIC" FFLAGS="-fPIC" -make -make install -export PATH=${JARVIS_ROOT}/binutils/bin:$PATH -export LD_LIBRARY_PATH=${JARVIS_ROOT}/binutils/lib:$LD_LIBRARY_PATH -ld -version [ENV] module purge @@ -40,6 +36,10 @@ export CXX=`which g++` export FC=`which gfortran` module use software/moduledeps/gcc12.3.1 module load openmpi/4.1.2 +module use software/modulefiles +module load binutils/2.40 +export PATH=$BINUTILS_PATH/bin:$PATH +export LD_LIBRARY_PATH=$BINUTILS_PATH/lib:$LD_LIBRARY_PATH [APP] app_name = must @@ -56,11 +56,11 @@ make install make clean [RUN] -run = -binary = mustrun -np 8 application.exe +run = +binary = mustrun -np 8 application.exe nodes = 1 [PERF] -perf= +perf= nsys= ncu=--target-processes all -- Gitee From cc8379aa53c619b48cfc4beb143a484b77b8e5d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=AB=98=E6=96=87=E5=B0=A7?= <18848977154@163.com> Date: Wed, 11 Jun 2025 16:18:19 +0800 Subject: [PATCH 3/3] binutils --- package/binutils/2.40/install.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 package/binutils/2.40/install.sh diff --git a/package/binutils/2.40/install.sh b/package/binutils/2.40/install.sh new file mode 100644 index 0000000..7e24dec --- /dev/null +++ b/package/binutils/2.40/install.sh @@ -0,0 +1,10 @@ +#!/bin/bash +set -x +set -e +. ${DOWNLOAD_TOOL} -u https://mirrors.aliyun.com/gnu/binutils/binutils-2.40.tar.gz -f binutils-2.40.tar.gz +cd ${JARVIS_TMP} +tar zxvf ${JARVIS_DOWNLOAD}/binutils-2.40.tar.gz +cd binutils-2.40 +./configure --prefix=$1 --enable-ld=yes --with-static-standard-libraries --enable-install-libbfd CFLAGS="-fPIC" CXXFLAGS="-fPIC" FCFLAGS="-fPIC" FFLAGS="-fPIC" +make +make install -- Gitee