80 likes | 89 Views
This assignment covers C* programming review, speedup calculations, paper reviews, and paper presentations. It also includes instructions on setting up PVM and C*, running programs, and comparing performance.
E N D
CS 584 Lecture 15 • Assignment? (Due Friday) • Program model • Speedup calculations • Paper reviews • Friday paper presentations • Glenn Judd (SuperWeb) • Matt Probst (Unet)
C* Programming Review • Data parallel language • The parallel data structure is the shape • Use the with statement to select the current shape • Use left indexing to access the parallel variable • Use the where statement to mask out values
Using C* on our Systems • Set up PVM • Set up C* • Run your program • See the web page for • C* setup instructions • C* primer • C* compiler options
Setting up PVM • Create the directory $HOME/pvm3 • Create the directory $HOME/pvm3/bin/HPPA • Link $HOME/pvm3/lib to ~snell/pvm3/lib • Set the environment variable PVM_ROOT to $HOME/pvm3 • Do this in your login script • Set up your .rhosts file • Add $HOME/pvm3/lib/HPPA to your path
Setting up PVM • Run pvm • Using the add command, add in appropriate hosts to your virtual machine • Use quit to leave pvm console but leave the virtual machine running • Use halt to kill the virtual machine
Setting up C* • Add ~snell/cstar/install.PVM.HPPA2D to your path • Set the following environment variables • CSTAR_MODE • scalar, pvm, 2d-pvm • CSTAR_ROWS • Number of rows in virtual mesh • CSTAR_COLS • Number of columns in virtual mesh
Running your C* program • Compile your program • cs prog.cs -o prog • Copy the executable to $HOME/pvm3/bin/HPPA • Execute your program • prog args….. • To execute on a single processor either • set up a pvm virtual machine with one processor • set the CSTAR_MODE variable to scalar
Assignment • Redo lab 1 in C* • Compare your program complexity with your message passing program • Draw graphs to: • Compare your speedups with your message passing program • Compare your execution times with your message passing program