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

  Write a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  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.

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