ME 766 : HW 2 solution

$25.00

Original Work ?
Category: You will Instantly receive a download link for .ZIP solution file upon Payment

Description

5/5 - (1 vote)

1. Create two matrices, A and B, each of size (N × N). Initialise the matrices to random
floating point numbers. Write an OpenMP code for computing C = AB. Report the
times taken for the codes. Vary the size of the problem from N = 100 . . . 10000.

2. Now for the same problem, write an MPI code for computing C = AB. Report the
times taken for the codes. Vary the size of the problem from N = 100 . . . 10000. Vary
the number for MPI process from 2 to 8. Using a single desktop is okay.

3. Write a report of your results obtained. Be sure to specify the configuration of your
machine and OS.