Escolar Documentos
Profissional Documentos
Cultura Documentos
Support
Community
Ubuntu.com
Judul
Halaman Kekal
Info
Lampiran
Ubuntu Wiki
Login
Help
MpichCluster
Setting Up an MPICH2 Cluster in Ubuntu
Creator: Omid Alemi
omid.alemi@gmail.com
Here we have 4 nodes running ubuntu 7.04 with these host names: ub0,ub1,ub2,ub3;
127.0.0.1 localhost
192.168.133.100 ub0
192.168.133.101 ub1
192.168.133.102 ub2
192.168.133.103 ub3
Note that the file shouldn't be like this:
127.0.0.1 localhost
127.0.1.1 ub0
192.168.133.100 ub0
192.168.133.101 ub1
192.168.133.102 ub2
192.168.133.103 ub3
2. Installing NFS
To Install NFS just run this in terminal:
omid@ub0:~$ su - mpiu
Then we generate DSA key for mpiu:
mpiu@ub0:~$ cd .ssh
mpiu@ub0:~/.ssh$ cat id_pub.dsa >> authorized_keys
As the home directory of mpiu in all nodes is the same (/mirror/mpiu) , there is no need to run these
commands on all nodes.
8. Installing GCC
Install build-essential package:
In this step we install other compilers such as Inter Fortran, SGI compiler , ... .
Extract .tar.bz2 file in /mirror. Also make a folder for MPICH installation.
After successfully compiling and installing mpich, add these lines to "/mirror/mpiu/.bashrc/"
export PATH=/mirror/mpich2/bin:$PATH
export PATH
LD_LIBRARY_PATH="/mirror/mpich2/lib:$LD_LIBRARY_PATH"
export LD_LIBRARY_PATH
Next we run this command in order to define MPICH installation path to SSH.
ub3
ub2
ub1
ub0
and run :
mpiu@ub0:~$ mpdboot -n 4
mpiu@ub0:~$ mpdtrace
The output should be name of all nodes.