1. Homepage
  2. Coding
  3. CITS3402 High Performance Computing - Assignment - Sparse matrix-matrix multiplication using MPI and OpenMP

CITS3402 High Performance Computing - Assignment - Sparse matrix-matrix multiplication using MPI and OpenMP

Get in Touch with Our Experts
UWACITS3402High Performance ComputingMPISparse matrix-matrix multiplicationOpenMPC

Faculty banner CITS3402 High Performance Computing Assignment 3 Assignment Writing Service

Sparse matrix-matrix multiplication using MPI and OpenMP Assignment Writing Service

The total marks for this assignment is 20, the assignment can be done in groups of two, or individually. Assignment Writing Service

The matrix-matrix multiplication algorithm using MPI has been discussed thoroughly in the lecture slides. The task in this project is to implement the same algorithm using a two-level parallelization, MPI at the higher level and OpenMP at a lower level. Hence you have to introduce OpenMP directives for execution at each node. Assignment Writing Service

Sparse matrices are common in many scientific applications. A sparse matrix is usually a very large matrix with only a small fraction of its entries non-zero, and most entries are zero. For example, let us assume we have a 1000X1000 (a matrix with one thousand rows and one thousand columns) matrix. In a sparse matrix, the typical percentage of non-zero elements is about 10% or less. Hence the number of non-zero elements in our example matrix could be 100,000 out of 10,000,000 possible entries. Assignment Writing Service

As can be easily seen, storing a sparse matrix as a regular matrix is very wasteful, and also will incur a huge communication cost if such sparse matrices are sent between nodes in a MPI program. Hence the input to our program will be sparse matrices. Assignment Writing Service

There are many different formats for representing sparse matrices, one of the simplest is the matrix market format. Every line of a file in this format has three entries, the row number, the column number and the entry at that row and column position. For example: Assignment Writing Service

0 0 0
0 34 0
0 0 0
0 0 0

This matrix can be stored as just one line in the matrix market format, namely: 2, 2, 34 There is no need to store all the other entries as they are all zero. Assignment Writing Service

Tasks: Assignment Writing Service

  1. Your task is to implement the matrix-matrix multiplication algorithm using MPI and OpenMP taking two sparse matrices in the matrix market representation as the input.
  2. Implement a correct matrix-matrix multiplication algorithm using MPI and OpenMP. The master node should distribute the matrices to the other nodes. - 10 marks
  3. Thorough performance analysis with different number of nodes and different number of cores in each node (at least three configurations for number of nodes and three choices of number of cores for each of the three configurations, in total 9 experiments). - 5 marks
  4. A report presenting your algorithms and performance analysis. The report must have your UWA official name and number as recorded in Calista. I will not record marks for wrong names and student numbers. The report must be in pdf format. - 5 marks

Data: Assignment Writing Service

  1. a small 10X10 sparse matrix that you can use to test your code. You should write a sequential program to verify that your code is correct.
  2. an 1138X1138 large sparse matrix and another 1138X1138 large sparse matrix. You should use these two matrices for performance evaluation of your parallel code.

Some hints: You can sort the matrix files according to the first column by using this shell command in linux: Assignment Writing Service

sort -k1 -n 1138_bus.mtx > out

k1 means sort based on the first column, n means according to numerical values (not lexicographic order), >out will store the output in a file called out. One can sort according to the second column by changing k1 to k2. Assignment Writing Service

Deadline: The submission deadline is 11:59 pm on November 2, through cssubmit. This project carries 15% of the total marks for this unit. Assignment Writing Service

Amitava Datta October 2018 Assignment Writing Service

Visit the UWA Computer Science Assignment Writing Service

School of Computer Science & Software Engineering Assignment Writing Service

联系辅导老师!
私密保护
WeChat 微信
UWA代写,CITS3402代写,High Performance Computing代写,MPI代写,Sparse matrix-matrix multiplication代写,OpenMP代写,C代写,UWA代编,CITS3402代编,High Performance Computing代编,MPI代编,Sparse matrix-matrix multiplication代编,OpenMP代编,C代编,UWA代考,CITS3402代考,High Performance Computing代考,MPI代考,Sparse matrix-matrix multiplication代考,OpenMP代考,C代考,UWA代做,CITS3402代做,High Performance Computing代做,MPI代做,Sparse matrix-matrix multiplication代做,OpenMP代做,C代做,UWAhelp,CITS3402help,High Performance Computinghelp,MPIhelp,Sparse matrix-matrix multiplicationhelp,OpenMPhelp,Chelp,UWA作业代写,CITS3402作业代写,High Performance Computing作业代写,MPI作业代写,Sparse matrix-matrix multiplication作业代写,OpenMP作业代写,C作业代写,UWA编程代写,CITS3402编程代写,High Performance Computing编程代写,MPI编程代写,Sparse matrix-matrix multiplication编程代写,OpenMP编程代写,C编程代写,UWA作业答案,CITS3402作业答案,High Performance Computing作业答案,MPI作业答案,Sparse matrix-matrix multiplication作业答案,OpenMP作业答案,C作业答案,