1 / 8

CS 584 Lecture 15

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

spike
Télécharger la présentation

CS 584 Lecture 15

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. CS 584 Lecture 15 • Assignment? (Due Friday) • Program model • Speedup calculations • Paper reviews • Friday paper presentations • Glenn Judd (SuperWeb) • Matt Probst (Unet)

  2. 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

  3. 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

  4. 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

  5. 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

  6. 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

  7. 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

  8. 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

More Related