????6????c2??c3??c4????????????????
????7?????3????????????????????
??????????????У?
????#ssh c1
????#ssh c2
????#ssh c3
????#ssh c4
???????????????yes????????????????????????????κ???????????????"Last login:???????"??????????
???????????MPICH2(????root????)
????1???????
????#tar -zxvf mpich2-1.0.1.tar.gz
???????? #gunzip -c mpich2-1.0.1.tar.gz|tar xf mpich2-1.0.1.tar
????2???????????
????#mkdir /usr/MPICH-install
????3??????mpich2?????
????#cd mpich2-1.0.1
????4?????e????
????#./configure --prefix=/usr/MPICH-install
????5??????
????#make
????6?????
????#make install
????7???????root??
????#cd ..
????8???????.bashrc?????????????
????#vi .bashrc
?????????.bashrc??????£?
????# .bashrc
????# User specific aliases and functions
????PATH=$PATH:/usr/MPICH-install/bin   ???????
????#Source .bashrc
????9?????????????????
????#which mpd
????#which mpicc
????#which mpiexec
????#which mpirun
????10?????/etc/mpd.conf??????????secretword=myword
????#vi /etc/mpd.conf
????????????????????????
????#touch /etc/mpd.conf
????#chmod 600 /etc/mpd.conf
????11????????????????????/root/mpd.hosts
????#vi mpd.hosts
??????????????£?
????C1
????C2
????C3
????c4
????????????
????1?????????
????#mpd &    ???
????#mpdtrace ??????????
????#mpdallexit ???
????2?????mpd.hosts???м????
????#mpdboot -n number -f mpd.hosts        number?????????????
????#mpdtrace
????#mpdallexit
????3??????????MPICH?????????
????#mpdboot -n 4 -f mpd.hosts   ???4?????
????#mpiexec -n number /usr/MPICH-install/examples/cpi     number??????????
????#mpdallexit
????4?????????????????????е????