其他分享
首页 > 其他分享> > 基于infiniband(IB)网的MVAPICH2安装

基于infiniband(IB)网的MVAPICH2安装

作者:互联网

一、下载安装包

下载链接:http://mvapich.cse.ohio-state.edu/downloads/ 

 二、解压编译安装

mkdir /home/xujb/mvapich2
tar -xzvf mvapich2-2.3.7.tar.gz
cd mvapich2-2.3.7/
./configure --prefix=/home/xujb/mvapich2
make
make install

三、配置mvapich2环境变量

vim ~/.bashrc
在最底层添加:
export MPICH=/home/xujb/mvapich2
export PATH=$MPICH/bin:$PATH 
令环境变量生效
source ~/.bashrcs

四、检查

可以通过输入which mpicc检查mvapich2是否已经在当前系统中安装。

五、解决错误

错误1:configure: error: newly created file is older th an distributed files!
Check your system
(我的服务器上不了外网:ping www.baidu.com出错)
先查看一下系统时间和硬件时间

【按提示应该是文件时间问题,新创建的时间既然比现在的文件时间晚,系统时间问题】
解决:
hwclock --set --date="月/日/年 小时:分钟:秒钟"
hwclock --hctosys
比如:hwclock --set --date="05/25/2022 13:33:22"
hwclock --hctosys是让上面设置的硬件时间同系统 时间同步

错误2:configure: error: 'infiniband/verbs.h not found. Did you specify --with-ib-include=?'
说明infiniband驱动有问题,然后需要安装IB驱动。

(安装IB驱动请看我下一篇文章)

 

标签:MVAPICH2,mvapich2,infiniband,--,hwclock,xujb,home,IB
来源: https://www.cnblogs.com/babyclass/p/16348219.html