Version 2 (modified by chris, 17 years ago) (diff) |
---|
Intall mpich2
1. Testbed Introduction
- VMware Workstation 5.0
- Create three nodes, client-01 ~ client-03, all with 5GB HD and 128MB memory.
- The OS on these 3 nodes is Ubuntu-7.10-server
- hostname and IP are:
- client-01 192.168.180.131
- client-02 192.168.180.132
- client-03 192.168.180.133
2. Getting Start to intall mpich2
- Step 1 : Modify /etc/hosts
- Assume that we got 3 machines in our testbed, now we have to edit /etc/hosts on each node.
Here is the example of client-01. So does the other two nodes.root@client-01:~# cat > /etc/hosts << "EOF" > 127.0.0.1 localhost > 192.168.180.131 client-01 > 192.168.180.132 client-02 > 192.168.180.133 client-03 > EOF
- Check the /etc/hosts contents, it should be like this.
root@client-01:~# cat /etc/hosts 127.0.0.1 localhost 192.168.180.131 client-01 192.168.180.132 client-02 192.168.180.133 client-03
- Notice that if there is 127.0.0.1 client-01 in /etc/hosts, it must be deleted.
- Assume that we got 3 machines in our testbed, now we have to edit /etc/hosts on each node.
- Step 2 : Download and Install mpich2
- We use mpcich2-1.0.7rc1 for example.
root@client-01:~# wget http://www.mcs.anl.gov/research/projects/mpich2/downloads/tarballs/mpich2-1.0.7rc1.tar.gz root@client-01:~# tar -zxvf mpich2-1.0.7rc1.tar.gz cd mpich2-1.0.7rc1/
- You could choose the install location as you wish, but all the nodes must have the same install location!!
We use /opt/mpich2 here for example.root@client-01:~/mpich2-1.0.7rc1# ./configure preifx=/opt/mpich2
- If there are errors when configuring mpich2, you may need some packages or libraries such as c/c++ compiler.
Try this :root@client-01:~/mpich2-1.0.7rc1# apt-get install build-essential
- If there are errors when configuring mpich2, you may need some packages or libraries such as c/c++ compiler.
- compile and install
root@client-01:~/mpich2-1.0.7rc1# make root@client-01:~/mpich2-1.0.7rc1# make install
- We use mpcich2-1.0.7rc1 for example.