当前位置: 首页> 娱乐> 八卦 > MPICH 源码编译 with ucx with cuda,应用示例

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

时间:2025/7/10 18:09:31来源:https://blog.csdn.net/eloudy/article/details/142291518 浏览次数:0次

先基于 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.gztar 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

关键字:MPICH 源码编译 with ucx with cuda,应用示例

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com

责任编辑: