Implement to do a matrix-matrix product

Assignment Help Programming Languages
Reference no: EM1360615

For each question, parallelize the program using OpenMP. Present the results for each processor type (dual or quad) as a table of run time and scalability (wrt sequential and OpenMP on 1 thread). Comment on the results.

1. Use OpenMP to parallelize the algorithm described in the lectures for calculating pi by integration 4/1+x*x from 0 to 1. Use 10,000,000 slices.
A. Run the code sequentially and using OpenMP on both both dual core and quad core nodes using 1, 2, 3, 4, and 8 threads and time the results.
B. Modify the code to run similar tests using dynamic and guided scheduling.
C. List the various run times and scalibility in seperate tables for each type of scheduling and comment on the scalability of each scheduling type and draw conclusions as to which is preferable (and in what circumstances).

Note: when timing the output remember not to print anything while timing.

2. Write code to use the Monte Carlo method to compute pi, and parallelize it using OpenMP. Use 1,000,000 tests. Run it sequentially and using OpenMP on 1, 2, 3, 4, and 8 threads and time the results, on dual core and quad core nodes.
Recall the discussion about thread safe libraries and the need to ensure that the pseudo-random sequences used by different threads are in fact different. Comment on the results.

3. Implement and check the time to do a matrix-matrix product of a 1000x500 matrix with a 500x800 matrix of floats sequentially and using 1,2,3,4, and 8 threads on dual and quad core processors.
Present a table of the run times and scalability and comment on the results.

Reference no: EM1360615

Questions Cloud

Explain what are the benefits of a strong work team : What indicators would warn you that the team that is planning this transition to an electronic health information management system is not functioning well?
What is the normal force of the seat on the passengers butt : A baseball (m = 148 g) approaches a bat horizontally at a speed of 41.5 m/s (93 mi/h) and is hit straight back at a speed of 45.9 m/s (103 mi/h).
Make journal entries without explanations : Tobias Company has 40,000 shares of $10 par value common stock outstanding. Make journal entries without explanations for the following transactions.
Leadership theory of a historical figure : Find a historical figure (living or dead) who has been a leader and use one theory to explain the successes and failures of the leader you selected.
Implement to do a matrix-matrix product : Implement and check the time to do a matrix-matrix product of a 1000x500 matrix with a 500x800 matrix of floats sequentially and using 1,2,3,4, and 8 threads on dual and quad core processors.
Illustrate what is great reception profit : Illustrate what is GreatReception's profit when producing at the profit-maximizing output. calculator will refresh to its initial values.
Explain depreciation is an example of a source of financial : Explain Depreciation is an example of a source of financial leverage and A firm with a high level of operating leverage must also have a high level of financial leverage.
Unemployment benefits and taxation : When the government tries to cut the economic pie into more equal slices, the pie gets smaller and thorough background checks must be done on individuals availing unemployment benefits
Field of input-output psychology : The field of I/O Psychology has left its imprint on many significant aspects of society. In examining the field of I/O, it is important to acknowledge the paths that have been taken.

Reviews

Write a Review

Programming Languages Questions & Answers

  Use switch statement to display roman numeral version

Use a switch statement to display the Roman numeral version of that number. Input Validation: Do not accept a number less than 1 or greater than 10.

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

  Deisgn class contains data fields for height and surfacearea

Deisgn a class named Rectangle that contains data fields for height width and surfaceArea and a method named computeSurfaceArea?

  Program to overload the addition assignment operator

Overload the addition assignment operator (+=), the subtraction assignment operator (-=), and the multiplication assignment operator (*=).

  Identify some array used in organization

Identify some array used in your organization or an organization for which you know, the business applications; and share the information.

  Create logic for application for user for order information

Create the logic for an application that continuously prompts a user for order information until the user enters "ZZZ" for the customer name or 10 orders.

  Create logic for program to count readers by genders

Create the logic for a program that would produce a count of readers by gender within age group - that is, under 20 females, under 20 males, etc.

  Write program to read file having student'' test scores

Write a C++ program that reads a file named "grades.txt" consisting of students' test scores in the range 0-200 (all integer values). (The first number in the file specifies the number of grades it contains.

  Determining smallest possible number people in parade

Group of people are arranging themselves for parade. Determine the smallest possible number people?

  Definition of function quadratic receives double parameters

Write down definition of function named quadratic which receives 3 double parameters a , b , c . If value of a is 0 then function prints the message "no solution for a=0"

  Questions on programing problem with the process of analysis

Questions on Programing Problem with the process of analysis and reflection that went on as you developed the project.

  Program to keep track of the seat availability of flight

A small airline company needs a program to keep track of the seat availability of its flights. Design the structure type FLIGHT to store a four-digit flight number.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd