Instructions for Homework #3
· Complete the HPCS Questionnaires and Study Logs.
Please complete the
HPCS
background questionnaire.
Although participation in the study is voluntary, please be candid in your responses as no course staff will see your answers, nor will it have any bearing on your grade.
Also, as you do this current homework, please submit an Effort Log for approximately each day you work.
· You should already have ~/cvs if you did hw1 or hw2.
· Import the hw2 tree into your cvs with the following:
$ cd /cluster/home/cs240a/bin/hw3
$ cvs -d ~/cvs import -m "Initial import" hw3 hw3 START
$ cd ~
$ cvs -d ~/cvs co hw3
·
This will initialize your hw3 cvs tree.
Now, to compile MPI, use:
$ make mpi REASON={1-6} [WORK=n]
Likewise for OpenMP:
$ make omp REASON={1-6} [WORK=n]
·
To turnin your homework:
$ make turnin
You can do this multiple times. The last one only will be graded.
Update
·
To add visualization, get the g2 library wrapper from the class account:
$ cd /cluster/home/cs240a/bin/hw3
$ cp Makefile gol_viz.c gol_viz.h your-directory
·
This will get the updated Makefile and the graphics glue code.
To compile your code with the graphics library
For MPI, use:
$ make mpi-viz REASON={1-6} [WORK=n]
Likewise for OpenMP:
$ make omp-viz REASON={1-6} [WORK=n]
·
To learn how to use the graphics library, please read the
commented documentation in the header file (gol_viz.h)
Update
·
Get some initial test files (courtesy, course material by Prof. Sussman from UMD) and the final test file for performance measurements (max.dat):
$ cd /cluster/home/cs240a/bin/hw3
$ cp life.data.* max.dat your-directory