

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Material Type: Assignment; Class: Parallel Computing; Subject: Computer Science; University: University of Alabama - Birmingham; Term: Fall 2006;
Typology: Assignments
1 / 2
This page cannot be seen from the preview
Don't miss anything!


Fall 2006 CS 432/632/732 Parallel Computing Homework-
Individual Work Only. 200 points. Due October 24, 2006.
Design and implement a distributed memory version of the image processing program implemented in Homework-0 using MPI for message passing.
Table 2. Time taken (in seconds) with two-dimensional data distribution Image1 Image2 Image No. of threads Mean Median HP Filter
Mean Median HP Filter
Mean Median HP Filter Sequential 1 X 1 2 X 2 3 X 3 3 X 4 4 X 3 4 X 4 4 X 6 4 X 8 6 X 4 6 X 6 6 X 8 8 X 4 8 X 6 8 X 8
General Guidelines:
Implement and test these programs on the CIS cluster – Olympus. Follow the instructions for using Olympus at: http://www.cis.uab.edu/cs632/fall2006/OlympusInstructions.html.
Follow the examples in the MPI Tutorial and execute these examples before working on the homework.
To minimize the number of job submissions, you could use a single script to submit different images and different operations. For example you can use the following SGE script for one run:
Fall 2006 CS 432/632/732 Parallel Computing Homework-
#!/bin/bash
#$ -cwd #$ -j y #$ -S /bin/bash
#$ -pe mpi 12 MPIRUN=/usr/local/topspin/mpi/mpich/bin/mpirun_ssh EXECUTABLE="./mpi_image image1 mean 3 4" $MPIRUN -np $NSLOTS -machinefile $TMPDIR/machines $EXECUTABLE EXECUTABLE="./mpi_image image2 mean 3 4" $MPIRUN -np $NSLOTS -machinefile $TMPDIR/machines $EXECUTABLE EXECUTABLE="./mpi_image image3 mean 3 4" $MPIRUN -np $NSLOTS -machinefile $TMPDIR/machines $EXECUTABLE EXECUTABLE="./mpi_image image1 median 3 4" $MPIRUN -np $NSLOTS -machinefile $TMPDIR/machines $EXECUTABLE EXECUTABLE="./mpi_image image2 median 3 4" $MPIRUN -np $NSLOTS -machinefile $TMPDIR/machines $EXECUTABLE EXECUTABLE="./mpi_image image3 median 3 4" $MPIRUN -np $NSLOTS -machinefile $TMPDIR/machines $EXECUTABLE EXECUTABLE="./mpi_image image1 hpfilter 3 4" $MPIRUN -np $NSLOTS -machinefile $TMPDIR/machines $EXECUTABLE EXECUTABLE="./mpi_image image2 hpfilter 3 4" $MPIRUN -np $NSLOTS -machinefile $TMPDIR/machines $EXECUTABLE EXECUTABLE="./mpi_image image3 hpfilter 3 4" $MPIRUN -np $NSLOTS -machinefile $TMPDIR/machines $EXECUTABLE
Submission: Email the source code along with any scripts/Makefile and typed answers to the above questions (Text, Word, PDF file) as a single tar/zip file attachment to [email protected] with the subject “CS432/632-Homework2.”
Resources: