Solve the issues of configuring mpich2

1. mpdboot fail

All is right,except mpdboot fail.

[root@c201 ~]# mpdboot -n 16 -f mpd.hosts
mpdboot_c201 (handle_mpd_output 420): from mpd on c203, invalid port info:
no_port

**********************

Since mpdboot start mpd on other nodes by ssh, so I do the following.

I start mpd in c201, and then execute

 

[root@c201 ~]# mpdcheck -s
server listening at INADDR_ANY on: c201 49358

 

open a new windows of c201, and then,

 

[root@c201 mysripts]# ssh -x -n -q c203  '/opt/mpich2-1.2.1p1/bin/mpd.py  -h c201 -p 49358  --ncpus=1 -e -d'
configuration file /etc/mpd.conf not found
A file named .mpd.conf file must be present in the user's home
directory (/etc/mpd.conf if root) with read and write access
only for the user, and must contain at least a line with:
MPD_SECRETWORD=<secretword>
One way to safely create this file is to do the following:
  cd $HOME
  touch .mpd.conf
  chmod 600 .mpd.conf
and then use an editor to insert a line like
  MPD_SECRETWORD=mr45-j9z
into the file.  (Of course use some other secret word than mr45-j9z.)

 

It turns out c203 missing mpd.conf file.

 

Since I specify a  dir, not the default dir, the following issues occurs 

2. can't find mpi.h

 

[root@c201 zhxuempi]# mpicc -o cpi cpi.c
cpi.c:7:17: error: mpi.h: No such file or directory 

 

ln -s /opt/mpich2-1.2.1p1/include/*  /usr/local/include/

 

 

3. /usr/bin/ld: cannot find -lmpich

 

It seems useless doing the following in the /etc/profile.

LD_LIBRARY_PATH="$MPICH2/lib:LD_LIBRARY_PATH"
export LD_LIBRARY_PATH

The following works:

ln -s /opt/mpich2-1.2.1p1/lib/*  /usr/local/lib

 

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值