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

  Calculating hit ratio for program having loops

Calculate hit ratio for program that loops 10 times from locations 0 - 64.

  Computing average net profit per sale of product

Your company bought 250,000 online advertising impressions and made average net profit per sale of product of $5.

  Write program to prints the question

Write a program that prints the question"do you want to continue?" and reads a user input. if the user input is"y", "yes", "ok", "sure", or "why not?".

  Program to read information from keyboard

Write a C++ program that reads the following information from the keyboard terminated with the sentinel -999 in the Student Number, and stores the records in arrays (3 separate arrays).

  Explaining valid advice for naming variables

Which of the following is valid advice for naming variables? To save typing, make most variable names one or two letters.

  Write functions

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

  Design a class-based solution to a problem

To design a class-based solution to a problem using multiple data structures.

  Write a vhdl code for soda vending machine

Write a VHDL code that implements the above soda machine. You have to turn in the following: A state diagram showing the implementation of your design. Clearly show all the states and the conditions on which transitions occur.

  Applying constraints in program

You will require to set up constants in program for given: number of square feet per square yard.

  Program to compute unit price of items sold

Manager of a Supermarket would like to be able to calculate the unit price of items sold there. To do this the program should input the name and the price of the item.

  Write program to display company payroll report in list box

Write a program that display a company payroll report in a list box. the program should read each employees name, hourly rate and hours worked from a file and produce a report.

  Write software application development coding practices

Use the Library and other resources to write a software application development coding practices guide. Your guide should include recommendations

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