hw6 - 2. Write a version using send/recv or send/irecv....

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

View Full Document Right Arrow Icon
Homework 6 -- Due Wednesday, Feb. 16, 2011 Write and run an MPI program to compute the following recurrence: for (int i = 0; i<n; i++) { t = t + a[i]; } print(t); Write two versions of the program: 1. Write a version using MPI collective communication.
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 2. Write a version using send/recv or send/irecv. Time the two versions using arrays of size 10000, 100000 and 1000000. Do several timings. Turn in program listings, output, and times for the six runs....
View Full Document

Ask a homework question - tutors are online