# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# JB - Put the machine name in the prompt to make it easier to know which
# machine we are running on.
export PI_NODE=R1
...
if [ "$color_prompt" = yes ]; then
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@$PI_NODE\[\033[00m\] \[\033[01;34m\]\w \$\[\033[00m\] '
else
PS1='${debian_chroot:+($debian_chroot)}\u@$PI_NODE:\w\$ '
fi
...
Not only does this make the node name apparent in the prompt, it gives us a handle on each machine to use if we want to write tools:
pi@R1 ~ $ echo $PI_NODE
R1
pi@R1 ~ $
Now it's time to install the message passing software - MPI-2. I'm going to build this form the source, just to get the latest version. Thanks to Phil Leonard for the pointers to everything.
- sudo apt-get install fort77
- wget http://www.mcs.anl.gov/research/projects/mpich2/downloads/tarballs/1.4.1p1/mpich2-1.4.1p1.tar.gz
- tar zxfv mpich2-1.4.1p1.tar.gz
- cd mpich2-1.4.1p1
- sudo ./configure
- sudo make
- sudo make install
I got this to build and install properly on my first Pi node, so now I'm off to replicate this on the other machines. I can install of these machines in parallel of course, but it will still take some time.
No comments:
Post a Comment