1. Homepage
  2. Exam
  3. [2022] COMP5426 Parallel and Distributed Computing - Final Exam Q2 Loop Unrolling

[2022] COMP5426 Parallel and Distributed Computing - Final Exam Q2 Loop Unrolling

This question has been solved
Engage in a Conversation

QUESTION 2 (20 Marks) CourseNana.COM

Modify the following three nested loops using loop unrolling techniques to improve the performance. CourseNana.COM

for (i=0; i<N; i++) CourseNana.COM

for (j=i; j<N; j++) CourseNana.COM

for (k=0; k<M; k++) CourseNana.COM

C[i,j] = C[i,j] + A[i,k] * B[j,k]; CourseNana.COM

where A and B are 2D matrices of size N by M and C is a 2D matrix of size N by N. CourseNana.COM

In your solution, (1) the value of the unrolling factor must be set to 3 and (2) you must take the computational intensity into consideration, i.e., once the data items (especially the input data items) are loaded into registers, they will be used multiple times before being replaced. CourseNana.COM

Get the Solution to This Question

WeChat (微信) WeChat (微信)
Whatsapp WhatsApp
COMP5426代写,Parallel and Distributed Computing代写,The University of Sydney代写,COMP5426代编,Parallel and Distributed Computing代编,The University of Sydney代编,COMP5426代考,Parallel and Distributed Computing代考,The University of Sydney代考,COMP5426help,Parallel and Distributed Computinghelp,The University of Sydneyhelp,COMP5426作业代写,Parallel and Distributed Computing作业代写,The University of Sydney作业代写,COMP5426编程代写,Parallel and Distributed Computing编程代写,The University of Sydney编程代写,COMP5426programming help,Parallel and Distributed Computingprogramming help,The University of Sydneyprogramming help,COMP5426assignment help,Parallel and Distributed Computingassignment help,The University of Sydneyassignment help,COMP5426solution,Parallel and Distributed Computingsolution,The University of Sydneysolution,