1 Star 0 Fork 90

dingronghua/hpcrunner

forked from openEuler/hpcrunner
关闭
 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
init.sh 2.28 KB
一键复制 编辑 原始数据 按行查看 历史
sunlock0653 提交于 2025-11-13 10:08 +08:00 . fix blas-tester problem
#!/bin/bash
CUR_PATH=$(pwd)
chmod -R +x ./benchmark
chmod -R +x ./package
chmod -R +x ./test
chmod +x ./*.sh
chmod +x jarvis
mkdir -p tmp
export JARVIS_ROOT=${CUR_PATH} #hpcrunner所在路径
export JARVIS_COMPILER=${CUR_PATH}/software/compiler
export JARVIS_MPI=${CUR_PATH}/software/mpi
export JARVIS_LIBS=${CUR_PATH}/software/libs
export JARVIS_UTILS=${CUR_PATH}/software/utils
export JARVIS_DOWNLOAD=${CUR_PATH}/downloads #应用包下载存放路径
export JARVIS_MODULES=${CUR_PATH}/software/modulefiles
export JARVIS_MODULEDEPS=${CUR_PATH}/software/moduledeps
export JARVIS_TMP=/tmp #应用安装路径
export JARVIS_TMP_DOWNLOAD=${CUR_PATH}/tmp
export JARVIS_EXE=${CUR_PATH}/exe
export JARVIS_PROXY=https://github.com #github网络代理,默认使用官方源
export UseGitee=1 #下载源是否优先使用gitee,1代表优先使用
export UseLatest=0 #依赖是否优先安装最新版,1代表优先使用
export DOWNLOAD_TOOL=${CUR_PATH}/package/common/download.sh
export CHECK_DEPS=${CUR_PATH}/package/common/check_deps.sh
export CHECK_ROOT=${CUR_PATH}/package/common/check_root.sh
export kp=neon
ifsme=`lscpu|grep sme`
ifsve=`lscpu|grep sve`
ifneon=`lscpu|grep asimd`
if [ -n "$ifsme" ]; then
kp=sme
elif [ -n "$ifsve" ]; then
kp=sve
elif [ -n "$ifneon" ]; then
kp=neon
else
echo "not in kunpeng architecture"
fi
#判断hpckit使用版本
if [ ${UseLatest} -eq 0 ];then
HPCKIT_VERSION=25.1.0
BISHENG_VERSION=4.2.0.2
HMPI_VERSION=25.1.0
elif [ ${UseLatest} -eq 1 ];then
HPCKIT_VERSION=latest
else
echo "[ERROR] UseLatest=${UseLatest}, unsupported value."
exit 1
fi
#判断hpckit是否安装,更新配套版本
file_path="software/utils/hpckit/${HPCKIT_VERSION}/HPCKit/${HPCKIT_VERSION}/modulefiles/bisheng"
if [ -e "$file_path" ]; then
echo -e "你正在使用 $HPCKIT_VERSION 版本的 HPCKKit"
BISHENG_VERSION=`ls $file_path|grep compiler|awk -F "compiler" '{print $2}'`
HMPI_VERSION=`ls $file_path|grep hmpi|awk -F "hmpi" '{print $2}'`
else
echo -e "INFO: 检测到 $HPCKIT_VERSION 版本的 HPCKKit 未进行安装,请继续执行\n"
fi
#Install modules
if ! type module >/dev/null 2>&1;then
echo "Install environment-modules"
. $CHECK_ROOT && yum install -y environment-modules || apt install -y environment-modules
source /etc/profile
fi
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/jsfhd/hpcrunner.git
git@gitee.com:jsfhd/hpcrunner.git
jsfhd
hpcrunner
hpcrunner
master

搜索帮助