diff --git a/ManufacturingSimulation/OpenLB-1.5-0/OpenLB-1.5-0.sh b/ManufacturingSimulation/OpenLB-1.5-0/OpenLB-1.5-0.sh index fa74e87c7315a5f4fc76038d99142ba1616d3347..2380e2ed2b007877caa3155dbd337e2cb76131ca 100644 --- a/ManufacturingSimulation/OpenLB-1.5-0/OpenLB-1.5-0.sh +++ b/ManufacturingSimulation/OpenLB-1.5-0/OpenLB-1.5-0.sh @@ -26,16 +26,15 @@ tar -xvf $buildpath/olb-1.5r0.tgz -C $buildpath && rm -rf $buildpath/olb-1.5r0.t cd $buildpath/olb-1.5r0 sed -i "s/-march=native//g" config.mk -sed -i "s/g++/clang++/g" config.mk -sed -i "s/:= gcc/:= clang/g" config.mk +sed -i "s/g++/mpic++/g" config.mk +sed -i "s/:= gcc/:= mpicc/g" config.mk cd $buildpath/olb-1.5r0/src/utilities sed -i "s/for_each_n/for_each/g" benchmarkUtil.h -export CC=clang -export CXX=clang++ -export FC=flang +export CC=mpicc +export CXX=mpic++ cd $buildpath/olb-1.5r0 diff --git a/ManufacturingSimulation/OpenLB-1.5-0/build.sh b/ManufacturingSimulation/OpenLB-1.5-0/build.sh index 5fa09140765be4cbc6470ac123c5138726520b0b..389abbf2c8f0b0f08aad2ba7201d5dcd6b71043f 100644 --- a/ManufacturingSimulation/OpenLB-1.5-0/build.sh +++ b/ManufacturingSimulation/OpenLB-1.5-0/build.sh @@ -27,6 +27,10 @@ bash $dep_dir/bisheng-compiler-2.1.0.sh $buildpath $installpath module use $installpath/bisheng-compiler-2.1.0 module load $installpath/bisheng-compiler-2.1.0/bisheng_modulefiles +bash $dep_dir/hmpi-1.1.1.sh $buildpath $installpath +module use $installpath/hmpi-1.1.1 +module load $installpath/hmpi-1.1.1/hmpi_modulefiles + bash OpenLB-1.5-0.sh $buildpath $installpath diff --git a/ManufacturingSimulation/OpenLB-1.5-0/dependency/hmpi-1.1.1.sh b/ManufacturingSimulation/OpenLB-1.5-0/dependency/hmpi-1.1.1.sh new file mode 100644 index 0000000000000000000000000000000000000000..667f3deff14f91e46a38f9ac7c51f75c8900da08 --- /dev/null +++ b/ManufacturingSimulation/OpenLB-1.5-0/dependency/hmpi-1.1.1.sh @@ -0,0 +1,72 @@ +#!/bin/bash + +if [[ $# -ne 2 ]]; then + echo "The format is as follows:" + echo "bash hmpi-1.1.1.sh buildpath installpath" + echo ":param buildpath: 应用构建绝对路径" + echo ":param installpath: 应用安装绝对路径" + exit 1 +fi + +[[ ! "$1" =~ ^/.* || ! -d "$1" || "$1" = "/" ]] && echo "请输入正确的构建路径" && exit 1 +[[ ! "$2" =~ ^/.* || ! -d "$2" || "$2" = "/" ]] && echo "请输入正确的安装路径" && exit 1 + +buildpath=$1 +installpath=$2 +[[ "$buildpath" =~ .*/$ ]] && buildpath=${buildpath%/*} +[[ "$installpath" =~ .*/$ ]] && installpath=${installpath%/*} +[[ "$buildpath" == "$installpath" ]] && echo "构建路径与安装路径需为不同路径" && exit 1 +set -e +yum install -y wget tar perl-Data-Dumper autoconf automake libtool numactl binutils systemd-devel valgrind flex environment-modules gcc-c++ git + +download_pkg() +{ + wget -t 0 -c -P $buildpath $1 + tar xf $buildpath/v1.1.1-huawei.tar.gz -C $buildpath + rm -rf $buildpath/v1.1.1-huawei.tar.gz +} + +download_pkg https://github.com/kunpengcompute/hmpi/archive/refs/tags/v1.1.1-huawei.tar.gz +download_pkg https://github.com/kunpengcompute/hucx/archive/refs/tags/v1.1.1-huawei.tar.gz +download_pkg https://github.com/kunpengcompute/xucg/archive/refs/tags/v1.1.1-huawei.tar.gz +cp -r $buildpath/xucg-1.1.1-huawei/* $buildpath/hucx-1.1.1-huawei/src/ucg/ +cd $buildpath/hucx-1.1.1-huawei +git init && ./autogen.sh +./contrib/configure-opt --prefix=$installpath/hmpi-1.1.1/hucx-1.1.1-huawei --disable-numa CC=clang CXX=clang++ FC=flang +for file in `find . -name Makefile`;do sed -i "s/-Werror//g" $file;done +for file in `find . -name Makefile`;do sed -i "s/-implicit-function-declaration//g" $file;done +make -j$(nproc) +make -j$(nproc) install +export PATH=$installpath/hmpi-1.1.1/hucx-1.1.1-huawei/bin:$PATH +export LD_LIBRARY_PATH=$installpath/hmpi-1.1.1/hucx-1.1.1-huawei/lib:$LD_LIBRARY_PATH +export INCLUDE=$installpath/hmpi-1.1.1/hucx-1.1.1-huawei/include:$INCLUDE +cd $buildpath/hmpi-1.1.1-huawei +./autogen.pl CC=clang CXX=clang++ FC=flang +./configure --prefix=$installpath/hmpi-1.1.1/hmpi-1.1.1-huawei --with-platform=contrib/platform/mellanox/optimized --enable-mpil-compatibility \ + --with-ucx=$installpath/hmpi-1.1.1/hucx-1.1.1-huawei CC=clang CXX=clang++ FC=flang +make -j$(nproc) +make -j$(nproc) install +cat>"$installpath/hmpi-1.1.1/hmpi_modulefiles"< + + + + + + Document + + + +
+

2022/08/09 00:15:29

+
+ +

+ 配置信息 +

+
+
+ 源码文件存放路径 + + /opt/portadv/portadmin/sourcecode/olb-1.5r0 + +
+
+ 目标操作系统 + + openEuler 22.03 +
+
+ 目标系统内核版本 + + 5.10.0 +
+
+ 编译器版本 + + BiSheng Compiler 2.1.0, GFORTRAN7 +
+
+ 构建工具 + + make + +
+
+ 编译命令 + make + +
+
+ 迁移结果 + + + 源码迁移分析成功:您指定的分析路径/分析包中没有需要迁移的内容 + +
+
+
+
+
+

可兼容替换

+

0

+
+
+

待验证替换

+

0

+
+
+

依赖文件总数

+

0

+
+
+
+
+

源文件数

+

0

+
+
+

代码行数

+

0

+
+
+

源码迁移人力

+

0人月

+
+
+

预估标准:1人月迁移工作量 = 500行 C/C++/Fortran/Go/构建文件等源码,或250行汇编代码

+
+
+
+ +
+
+ 与架构相关的依赖文件 +
+ +
+ +
+
+ + + + + + + + + + + +
序号依赖文件名文件类型 + 待下载软件包名称 + 分析结果处理建议
+
+
+ + + + + + + + + + + + + + + + +
+
+
+ 未发现与架构相关的依赖文件 +
+
+
+
+ + +
+
+ 需要迁移的源码文件 +
+ +
+ +
+
+ + + + + + + + + +
序号文件名路径文件类型需修改的代码行
+
+
+ + + + + + + + + + + + + + + +
+
+
+ 未发现需要迁移的源码文件 +
+
+
+
+ + +
+
+ 需要迁移的代码行数 +
+ +
+ +
+
+ + + + + + + + + +
文件名行号(起始行,结束行)关键字建议
+
+
+ + + + + + + + + + + + + + +
+
+
+ 无数据 +
+
+
+
+ + +
+
+ + + + \ No newline at end of file diff --git "a/ManufacturingSimulation/OpenLB-1.5-0/doc/Devkit\346\212\245\345\221\212/\350\275\257\344\273\266\350\277\201\347\247\273\350\257\204\344\274\260\346\212\245\345\221\212_20220809000240.html" "b/ManufacturingSimulation/OpenLB-1.5-0/doc/Devkit\346\212\245\345\221\212/\350\275\257\344\273\266\350\277\201\347\247\273\350\257\204\344\274\260\346\212\245\345\221\212_20220809000240.html" new file mode 100644 index 0000000000000000000000000000000000000000..c467e93631fdc8446653c3429f762bf1920acc3c --- /dev/null +++ "b/ManufacturingSimulation/OpenLB-1.5-0/doc/Devkit\346\212\245\345\221\212/\350\275\257\344\273\266\350\277\201\347\247\273\350\257\204\344\274\260\346\212\245\345\221\212_20220809000240.html" @@ -0,0 +1,499 @@ + + + + + + + + Document + + + +
+

+ 2022/08/09 00:02:40

+
+ +

+ 配置信息

+
+
+ 软件安装包存放路径或软件包名称 + /opt/portadv/portadmin/package/olb-1.5r0.tgz +
+ +
+ 目标操作系统 + openEuler 20.03 SP3 +
+
+ 目标系统内核版本 +

+ 4.19.90 +

+
+ +
+ 评估结果 +

+ + 软件迁移评估成功:您指定的分析路径/分析包中没有需要评估的内容 +

+
+ +
+
+ +
+

可兼容替换

+

0

+
+ +
+

待验证替换

+

0

+
+ +
+

依赖文件总数

+

0

+
+ +
+ +
+
+ +
+
+ 与架构相关的依赖文件 +
+
+ +
+
+ + + + + + + + + + + + + + +
序号依赖文件名文件类型软件包存放路径待下载软件包名称分析结果处理建议
+
+
+ + + + + + + + + + + + + + + + + + + +
+
+
+ 未发现与架构相关的依赖文件
+
+
+
+ + +
+
+ + + + \ No newline at end of file diff --git "a/ManufacturingSimulation/OpenLB-1.5-0/doc/OpenLB 1.5-0\345\272\224\347\224\250\346\265\213\350\257\225\346\212\245\345\221\212.docx" "b/ManufacturingSimulation/OpenLB-1.5-0/doc/OpenLB 1.5-0\345\272\224\347\224\250\346\265\213\350\257\225\346\212\245\345\221\212.docx" index f9b6d476f5a67983bd16bf803ad98235fe33e256..e6e95ad1a73c4e036ca0e894a46713c31832af1c 100644 Binary files "a/ManufacturingSimulation/OpenLB-1.5-0/doc/OpenLB 1.5-0\345\272\224\347\224\250\346\265\213\350\257\225\346\212\245\345\221\212.docx" and "b/ManufacturingSimulation/OpenLB-1.5-0/doc/OpenLB 1.5-0\345\272\224\347\224\250\346\265\213\350\257\225\346\212\245\345\221\212.docx" differ diff --git "a/ManufacturingSimulation/OpenLB-1.5-0/doc/OpenLB 1.5-0\345\272\224\347\224\250\347\247\273\346\244\215\346\214\207\345\215\227.docx" "b/ManufacturingSimulation/OpenLB-1.5-0/doc/OpenLB 1.5-0\345\272\224\347\224\250\347\247\273\346\244\215\346\214\207\345\215\227.docx" index dcd804b9b91607262ff5ad0a57e775da62306cb9..7978fcabb2c695e44cd58de21cba82c5185dbc3e 100644 Binary files "a/ManufacturingSimulation/OpenLB-1.5-0/doc/OpenLB 1.5-0\345\272\224\347\224\250\347\247\273\346\244\215\346\214\207\345\215\227.docx" and "b/ManufacturingSimulation/OpenLB-1.5-0/doc/OpenLB 1.5-0\345\272\224\347\224\250\347\247\273\346\244\215\346\214\207\345\215\227.docx" differ diff --git "a/ManufacturingSimulation/OpenLB-1.5-0/doc/\351\262\262\351\271\217\345\237\272\345\272\247\350\275\257\344\273\266\346\220\255\345\273\272\346\214\207\345\215\227.docx" "b/ManufacturingSimulation/OpenLB-1.5-0/doc/\351\262\262\351\271\217\345\237\272\345\272\247\350\275\257\344\273\266\346\220\255\345\273\272\346\214\207\345\215\227.docx" index 973e4fc9b63894758faa2f73f491d0e6cf86b1a2..670e3fe948e13fefeb13d4233f71142e7e3b562d 100644 Binary files "a/ManufacturingSimulation/OpenLB-1.5-0/doc/\351\262\262\351\271\217\345\237\272\345\272\247\350\275\257\344\273\266\346\220\255\345\273\272\346\214\207\345\215\227.docx" and "b/ManufacturingSimulation/OpenLB-1.5-0/doc/\351\262\262\351\271\217\345\237\272\345\272\247\350\275\257\344\273\266\346\220\255\345\273\272\346\214\207\345\215\227.docx" differ