hw5 - 1. add the letters of your last name up, using a = 1,...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Homework 5 Using any threading programming model you want (i.e. OpenMP, Java or Pthreads) write a parallel matrix multiply. Run this for arrays of size 100 x 100, 1000 x 1000 and 10000 x 10000. You may use the nearest largest power of 2 for the array size if it makes your program easier to write. For each matrix size turn in the time it takes the program to run with 1 and 2 threads. Note: because there are a limited number of machines (qstruct01 - qustruct04 and algol01 - algol20) I suggest you pick a machine to use by hashing your surname (last name, or family name). Pick any reasonable hash function, or use the following:
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 1. add the letters of your last name up, using a = 1, b = 2, . .., z = 26. 2. H = (above sum) % 21 for the algol machine name, H = (above sum) % 5 for the qstruct machine name. 3. If possible, test and run your program on another machine you have access to, then a. login to the machine determined above. b. do a “who” command to see if anyone else is logged into that machine c. if not, run your program, if there is, wait a few minutes and/or pick another machine and check it. 4. At some point in the not-to-distant future I will assign machine to students, and you will be spared at least some of this foolishness....
View Full Document

This note was uploaded on 02/19/2012 for the course ECE 563 taught by Professor Staff during the Spring '08 term at Purdue University.

Ask a homework question - tutors are online