Using ZPL on UW Machines
This is a guide for how to use ZPL on a a small departmental Linux server cluster (4 nodes). Be aware that the server is shared, so there will be other processes competing for cycles. The following is set up on attu.cs.washington.edu. Command lines below are shown in italics within parantheses.
- Upload your ZPL program to attu.cs.washington.edu using scp or sftp (WinSCP, etc)
- Login to attu.cs.washington.edu with your CSE ID using a program capable of ssh (putty, ssh from Linux command line)
- Make sure that you are using bash for your shell (bash)
- Copy the following directory to your home directory (cp -r ~nkuchta/zpl/config ~)
- Add an MPI config file to your directory (echo "secretword=blah" > ~/.mpd.conf && chmod 600 ~/.mpd.conf)
- Add the path and other variables to your bash environment (source ~/config/bash.sh)
- This needs to be done each time you log in or can be placed in your .$(SHELL)rc file
- Start up the MPI daemon on all 4 of the cluster nodes (mpdboot -n 4 --file=$HOME/config/mpd.hosts)
- you may need to explicitly log in to each of the attu machines once for this to authorize you (ssh attu1, exit, ssh attu2, exit, etc)
- You can see that the daemon is running with the trace command (mpdtrace)
- Make sure that you stop the daemon when you logout (mpdallexit)
- Compile your program with the ZPL compiler (zc myprogram.z)
- Run your program on all 4 cluster nodes (./myprogram -g4x1)
- measuring in other grid configurations may lead to interesting results (-g2x2, -g1x4, etc)