当前位置: 首页 > news >正文

搭建环境 配置编译运行 mpi-test-suite

1,编译安装 ucx

下载源码:

$ git clone https://github.com/openucx/ucx.git
$ ​git checkout v1.17.0
​

运行auto工具:

$ ./autogen.sh
$ ./autogen.sh

指所以运行两次是因为有时候第一次会失败,原因未查。

配置 ucx

$ mkdir build
$ cd build
$ ../contrib/configure-devel --prefix=${PWD}/../ --enable-debug --enable-gtest --with-cuda=/usr/local/cuda --without-rocm --without-knem --without-java

编译安装:

$ make -j
$ make install

验证:


ucx 安装目录:

cd ..
pwd
        /home/hanmeimei/ex_openmpi/tmp5_runtest/tmp1/ucx

备 openmpi 配置使用。

2,编译安装 openmpi

下载源码及其子模块:

git clone https://github.com/open-mpi/ompi.git
cd ompi
git checkout v5.0.3
git submodule update --recursive --init
git submodule init
git submodule update

运行auto-tool:
 

./autogen.pl

配置项目 :

mkdir build
cd build
../configure --prefix=${PWD}/../../local_ompi --enable-debug --with-tests-examples --with-tests-examples  --with-ucx=/home/hongleili/ex_openmpi/tmp5_runtest/tmp1/ucx --without-verbs

编译安装:

make -j
make install

验证:

3,编译运行 mpi-test-suite

安装依赖包:
 

sudo apt-get install gengetopt

下载源代码:

$ git clone https://github.com/open-mpi/mpi-test-suite.git
$ cd mpi-test-suite/

运行auto-tool:

$ autogen.sh

配置环境变量:

cd ../local_ompi/bin/
$ export PATH=$PWD:$PATH
cd ../../local_ompi/lib/
export LD_LIBRARY_PATH=$PWD

配置项目:

$ mkdir build
$ cd build/
$ ../configure CC=mpicc

编译:

$ make -j

查看帮助信息:
 

$ mpirun -np 1 ./mpi_test_suite -h

查看测试case信息:
 

$ mpirun -np 1 ./mpi_test_suite -l

 

运行测试case:
 

$ mpirun -np 32 ./mpi_test_suite -t "P2P" -c COMM_SELF,INTER_COMM -d MPI_CHAR

http://www.lryc.cn/news/487651.html

相关文章:

  • 夜神模拟器启动报错:虚拟机启动失败 请进行修复 关闭hyper-v
  • 投资策略规划最优决策分析
  • 一篇保姆式虚拟机安装ubantu教程
  • 缓冲区的奥秘:解析数据交错的魔法
  • CentOS 7.9 搭建本地Yum源
  • 【Python】爬虫实战:高效爬取电影网站信息指南(涵盖了诸多学习内容)
  • MATLAB和C++及Python流式细胞术
  • Vue3 pinia使用
  • tdengine学习笔记-建库和建表
  • Django数据迁移出错,解决raise NodeNotFoundError问题
  • 景联文科技:以全面数据处理服务推动AI创新与产业智能化转型
  • MySQL学习/复习7表的内外连接
  • Spring Cloud入门笔记2(OpenFeign)
  • 小程序中模拟发信息输入框,让textarea可以设置最大宽以及根据输入的内容自动变高的方式
  • 学习HTML第二十九天
  • 汽车安全再进化 - SemiDrive X9HP 与环景影像系统 AVM 的系统整合
  • QString 转 char*问题与方法(const_cast的使用问题)
  • flink cdc 应用
  • MyBlog(三) -- APP的应用
  • docker有哪些网络模式
  • npoi 如何设置单元格为文本类型
  • Vue3、Vite5、Primevue、Oxlint、Husky9 简单快速搭建最新的Web项目模板
  • DataStream编程模型之数据源、数据转换、数据输出
  • 海康IPC接入TRTC时,从海康中获取的数据显示时色差不正确
  • 『VUE』31. 生命周期的应用(详细图文注释)
  • Mybatis框架之建造者模式 (Builder Pattern)
  • Java从入门到精通笔记篇(十三)
  • 嵌入式:STM32的启动(Startup)文件解析
  • ElasticSearch学习笔记四:基础操作(二)
  • ODA-em-application.log太大处理