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