| | 54 | |
| | 55 | * '''Step 3''' : Check if the Installation is Successful |
| | 56 | * Try these commands to see if the mpich2 have been installed correctly. |
| | 57 | {{{ |
| | 58 | root@client-01:~/mpich2-1.0.7rc1# which mpd |
| | 59 | /usr/local/bin/mpd |
| | 60 | root@client-01:~/mpich2-1.0.7rc1# which mpicc |
| | 61 | /usr/local/bin/mpicc |
| | 62 | root@client-01:~/mpich2-1.0.7rc1# which mpiexec |
| | 63 | /usr/local/bin/mpiexec |
| | 64 | root@client-01:~/mpich2-1.0.7rc1# which mpirun |
| | 65 | /usr/local/bin/mpirun |
| | 66 | }}} |
| | 67 | * If there is nothing showed on the screen when enter ''which xxxx'', you probably need to set your environment variables. |
| | 68 | {{{ |
| | 69 | root@client-01:~/mpich2-1.0.7rc1# export PATH="$PATH:/opt/mpich2/bin" |
| | 70 | }}} |
| | 71 | |
| | 72 | * '''Step 4''' : Add New Configuration Files |
| | 73 | * Add ''mpd.host file'', you could put it anywhere in your system. |
| | 74 | {{{ |
| | 75 | root@client-01:~/mpich2-1.0.7rc1# touch mpd.hosts |
| | 76 | root@client-01:~/mpich2-1.0.7rc1# cat > mpd.hosts << "EOF" |
| | 77 | > client-01 |
| | 78 | > client-02 |
| | 79 | > client-03 |
| | 80 | > EOF |
| | 81 | }}} |
| | 82 | * Check if the content in mpd.hosts is correct. |
| | 83 | {{{ |
| | 84 | root@client-01:~/mpich2-1.0.7rc1# cat mpd.hosts |
| | 85 | client-01 |
| | 86 | client-02 |
| | 87 | client-03 |
| | 88 | }}} |
| | 89 | * Add ''/etc/mpd.conf'', there is only one line in it. |
| | 90 | Notice that all the nodes must have the same password. |
| | 91 | We use "this_is_password" for example here. |
| | 92 | {{{ |
| | 93 | root@client-01:~/mpich2-1.0.7rc1# touch /etc/mpd.conf |
| | 94 | root@client-01:~/mpich2-1.0.7rc1# cat > /etc/mpd.conf << "EOF" |
| | 95 | > secretword=this_is_password |
| | 96 | > EOF |
| | 97 | }}} |
| | 98 | * Change the file properties to 600 for security consideration. |
| | 99 | {{{ |
| | 100 | root@client-01:~/mpich2-1.0.7rc1# chmod 600 /etc/mpd.conf |
| | 101 | }}} |
| | 102 | |
| | 103 | |