MPICH 源码编译 with ucx with cuda,应用示例

先基于 cuda 编译ucx

再基于 ucx 编译 mpich

mkdir mpich
mkdir ucx


1, 安装 ucx


预备环境:

sudo apt-get install valgrind
sudo apt-get install libibverbs-dev librdmacm-dev

下载ucx 源代码

git clone --recursive https://github.com/openucx/ucx.git
cd ucx/
git checkout v1.16.0

生成configure脚本:

./autogen.sh && ./autogen.sh
mkdir build
cd build/

配置:

../contrib/configure-devel --with-cuda=/usr/local/cuda  --without-rocm  --prefix=$PWD/../../local-dbg-cuda

release:
 ../contrib/configure-opt --with-cuda=/usr/local/cuda   --prefix=$PWD/../../local-cuda

debug:
../contrib/configure-devel --with-cuda=/usr/local/cuda  --without-rocm  --prefix=$PWD/../../local-dbg-cuda

编译:


make -j
make install


    
2, 安装 mpich

下载源码:

 wget https://www.mpich.org/static/downloads/4.2.2/mpich-4.2.2.tar.gz
 tar zxf mpich-4.2.2.tar.gz

cd mpich-4.2.2/
 
配置:

./configure \
--prefix=/home/hipper/ex_mpich_2/local \
--enable-f90 \
--enable-cxx \
--enable-romio \
--enable-threads=multiple \
--with-ucx=/home/hipper/ex_mpich_2/ucx/local-dbg-cuda \
--with-ucx-lib=/home/hipper/ex_mpich_2/ucx/local-dbg-cuda/lib \
--with-ucx-include=/home/hipper/ex_mpich_2/ucx/local-dbg-cuda/include

结果:

编译:


make -j
make install

make 结束后:

make install结束后:

3,配置运行环境

未完待续。。。。

4,编译运行 app

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值