diff --git "a/doc/qmcpack/3.13.0/\343\200\212\345\237\272\344\272\216openEuler\347\232\204QMCPACK\350\275\257\344\273\266\347\247\273\346\244\215\346\214\207\345\215\227\343\200\213.md" "b/doc/qmcpack/3.13.0/\343\200\212\345\237\272\344\272\216openEuler\347\232\204QMCPACK\350\275\257\344\273\266\347\247\273\346\244\215\346\214\207\345\215\227\343\200\213.md" index 15b2c4ed04fe5abd860b070701313989ead22ebc..ee76c87a7180d9b5fbd92035692d4219e0ebd050 100644 --- "a/doc/qmcpack/3.13.0/\343\200\212\345\237\272\344\272\216openEuler\347\232\204QMCPACK\350\275\257\344\273\266\347\247\273\346\244\215\346\214\207\345\215\227\343\200\213.md" +++ "b/doc/qmcpack/3.13.0/\343\200\212\345\237\272\344\272\216openEuler\347\232\204QMCPACK\350\275\257\344\273\266\347\247\273\346\244\215\346\214\207\345\215\227\343\200\213.md" @@ -89,7 +89,7 @@ tar -xf $DEP_DOWNLOAD_DIR/gcc-9.3.0.tar.gz -C $DEP_INSTALL_DIR sed -i "35s/ftp/http/g" ./contrib/download_prerequisites ./contrib/download_prerequisites ./configure --disable-multilib --enable-languages="c,c++,fortran" --prefix=$1 --disable-static --enable-shared -make -j && make install +make -j && make installl #设置环境变量 echo "export PATH=$DEP_INSTALL_DIR/gcc-9.3.0/bin:$PATH" >> ~/.bashrc && source ~/.bashrc export CC=`which clang` @@ -119,7 +119,7 @@ cd $DEP_BUILD_DIR/hucx-1.1.1-huawei 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 -make install +make installl yum -y install flex #编译hmpi @@ -127,7 +127,7 @@ cd $DEP_BUILD_DIR/hmpi-1.1.1-huawei ./autogen.pl ./configure --prefix=$DEP_INSTALL_DIR/hmpi --with-platform=contrib/platform/mellanox/optimized --enable-mpi1-compatibility --with-ucx=$DEP_INSTALL_DIR/hmpi/hucx make -j -make install +make installl echo "export PATH=$DEP_INSTALL_DIR/hmpi/bin:$PATH" >> ~/.bashrc && source ~/.bashrc export CC=mpicc CXX=mpicxx FC=mpifort F77=mpifort @@ -156,7 +156,7 @@ cd $DEP_BUILD_DIR/hdf5-1.10.1 #CC=mpicc CXX=mpicxx FC=mpifort F77=mpifort -Wno-incompatible-pointer-types-discards-qualifiers ./configure --prefix=$DEP_INSTALL_DIR/hdf5 --enable-fortran --enable-static=yes --enable-parallel --enable-shared make -j -make install +make installl echo "export LD_LIBRARY_PATH=$DEP_INSTALL_DIR/hdf5/lib:$LD_LIBRARY_PATH" >> ~/.bashrc && source ~/.bashrc # 下载并编译BOOST @@ -185,7 +185,7 @@ tar -zxvf $DEP_DOWNLOAD_DIR/Python-3.7.10.tgz -C $DEP_BUILD_DIR cd $DEP_BUILD_DIR/Python-3.7.10 ./configure --prefix=$DEP_INSTALL_DIR/python3 make -j -make install +make installl echo "export PATH=$DEP_INSTALL_DIR/python3/bin:$PATH" >> ~/.bashrc && source ~/.bashrc echo "export LD_LIBRARY_PATH=$DEP_INSTALL_DIR/python3/lib:$LD_LIBRARY_PATH" >> ~/.bashrc && source ~/.bashrc @@ -196,7 +196,7 @@ cd $DEP_BUILD_DIR/libxml2-2.10.1 ./autogen.sh ./configure --prefix=$DEP_INSTALL_DIR/libxml2 CFLAGS='-O2 -fno-semantic-interposition' make -j -make install +make installl ``` @@ -220,7 +220,7 @@ cmake \ -DLIBXML2_LIBRARY=$DEP_INSTALL_DIR/libxml2/lib/libxml2.so \ .. make -j -make instal +make install ``` ### 4.2. 运行测试文件 diff --git a/examples/mpi/devkitdemo-main/Hyper_tuner/testdemo/Know-how/utils.h b/examples/mpi/devkitdemo-main/Hyper_tuner/testdemo/Know-how/utils.h index 723522df3cbffe4ff01dbdedda958a4990c68a68..44835d4c87ae4f2b202c870d581d4d7d15cb4c91 100644 --- a/examples/mpi/devkitdemo-main/Hyper_tuner/testdemo/Know-how/utils.h +++ b/examples/mpi/devkitdemo-main/Hyper_tuner/testdemo/Know-how/utils.h @@ -77,7 +77,7 @@ static inline double ComputPointDistance(Point *pointA, Point *pointB) double horizontal, vertical, pointDis; horizontal = pointA->x - pointB->x; vertical = pointA->y - pointB->y; - pointDis = sqrt((horizontal * horizontal) + (vertical + vertical)); + pointDis = sqrt((horizontal * horizontal) + (vertical * vertical)); return pointDis; } diff --git a/examples/mpi/devkitdemo-main/Hyper_tuner/testdemo/omp-mpi/utils.h b/examples/mpi/devkitdemo-main/Hyper_tuner/testdemo/omp-mpi/utils.h index 453f21ff0ec001b598f9d64a835e4c308585df11..9838a3cb992d4fa3dec6c3d1d60e1e721e6100f3 100644 --- a/examples/mpi/devkitdemo-main/Hyper_tuner/testdemo/omp-mpi/utils.h +++ b/examples/mpi/devkitdemo-main/Hyper_tuner/testdemo/omp-mpi/utils.h @@ -91,13 +91,13 @@ void set_thread_affinity(uint16_t core_id) if(sched_setaffinity(0, sizeof(cpu_mask), &cpu_mask)==-1) { - printf("set cpu affinity faild ...\n"); + printf("set cpu affinity failed ...\n"); exit(1); } if(sched_getaffinity(0, sizeof(get), &get)==-1) { - printf("get affinity faild...\n"); + printf("get affinity failed...\n"); exit(1); } }