In this assignment you will implement a parallel algorithm

Assignment Help Computer Engineering
Reference no: EM13371454

In this assignment, you will implement a parallel algorithm that calculates matrix-vector product using MPI processes, MKL BLAS routines and compare the results of two different approach.

1. Construct a Hilbert Matrix of 20.000x20.000

Hilbert Matrix is a positive definite symmetric matrix which has the formula:

1935_Construct a Hilbert Matrix.png

2. Construct a vector of length 20.000 with the rule Vector[i]=i, where 1≤i≤20.000

3. Implement two parallel programs calculating the matrix-vector product splitting the matrix in one dimension. One of the programs should divide the matrix vertically, and the other one horizontally. You should print the Euclidean norm(2norm)of the result and the time consumed.

For norm calculation you can use cblas_dnrm2() , and for time calculation MPI_Wtime () The output should have the following format:

4. Calculate the time consumed for 1,2,4,8,16,32 processes. Plot a Time vs. Number of Processors graph. Plot a Speed Improvement vs. Number of Processors graph. Comment on how the time and efficiency changes. What is the cause of this increase or decrease?

5. Compare the results of two implementations. What is the cause of the difference? What are the advantages and disadvantages of two approaches?

Reference no: EM13371454

Questions Cloud

An article that deals with sleep and shift-workers1what can : an article that deals with sleep and shift-workers.1.what can you tell us about the journal that this article was
Reflection-existing competenciespart-11 reflect on and : reflection-existing competenciespart-11. reflect on and self-assess your current achievements of engineers
1 a laboratory column is filled with soil and then : 1. a laboratory column is filled with soil and then saturated with water. the data arethe head loss through the soil
Question 1there are a number of different subway lines in : question? 1there are a number of different subway lines in london some of which run in parallel under the same streets.
In this assignment you will implement a parallel algorithm : in this assignment you will implement a parallel algorithm that calculates matrix-vector product using mpi processes
Q suppose that you hear a clap of thunder 1590 s after : q. suppose that you hear a clap of thunder 15.90 s after seeing the associated lightning stroke. the speed of sound
Question 1 harveys muffler offers a full refund to anyone : question 1. harveys muffler offers a full refund to anyone who is not satisfied with the replacement of mufflers. the
Q a small remote-control car with a mass of 17 moves at a : q. a small remote-control car with a mass of 1.7 moves at a constant speed of 12.0 in a vertical circle inside a
Q an ideal spring with a stiffness of 379nm is attached to : q. an ideal spring with a stiffness of 379nm is attached to a wall and its other end is attached to a block that has a

Reviews

Write a Review

Computer Engineering Questions & Answers

  Board of your business it network for discussion

In another year, after all projects are completed, you plan to convert back to a volunteer basis with AllTechComm, and to find out more profitable employment, preferably with a major corporation. You are doing all of the research and networking yo..

  Peer-to-peer networking

Explain the term peer-to-peer networking? Describe why is bit torrent regarded to be a more efficient protocol? In the bit torrent context, explain how seeders and the leechers work.

  Build appropriate functions for these classes

A CollegeCourse class includes fields representing department, course number, credit hours, and tuition. Its child, LabCourse, includes one more field that holds a lab fee charged in addition to the tuition.

  Do you need to set up a new case for the hospitalization

A patient has been seeing the doctor regularly for treatment of diabetes. She was hospitalized yesterday, and the doctor saw her in the hospital for treatment of her diabetes. Do you need to set up a new case for the hospitalization

  Preparing the list of tables

In the last board meeting, your supervisor has asked someone to build a list of tables for the Fernandos Skate Shop customer orders.

  Implementing the transactions using sql

Write down the complete transaction utilizing the SQL. Write down the full transaction log

  Write a program in c++ to calculate body fat and percentage

Write a program in c++ to calculate the body fat and body fat percentage of a person. It must be able to handle gender, use a char data type. Please note that the user may enter f, F, m, M.

  What are the reasons for such a recommendation

One of business' contemporary principles states that organizations must move away from few top leaders and many managers to leaders at every level and few managers.

  Write a program for creating a linked list by dynamically

Write a program for creating a linked list by dynamically allocating memory for desired number of nodes. The linked list should be populated based on file I/O.

  Does the source of information make any difference

Does the source of information make any difference to you? If so, how will you rank the reliability of each of the sources listed?

  What are the xml databases

What is data warehousing? How are databases and data warehousing related? Do you believe data warehousing is a fad or a "real" technology that would benefit organizations?

  What elements did the new world view possess

What elements did the new world view possess that were to enable it to last until the "Idea of Progress" in the eighteenth century. Is it still part of who we still think we are today Does it still define our place in the cosmos

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