Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Question #1 (Memory Hierarchy) (30 points) A programmer developing image processing algorithms found that her program frequently calls transpose procedure on 20482048 double precision matrices.

image text in transcribed

Question \#1 (Memory Hierarchy) (30 points) A programmer developing image processing algorithms found that her program frequently calls transpose procedure on 20482048 double precision matrices. A sample code is illustrated below. She is using the C programming language that follows the row major order convention, that is, the elements of a matrix are placed in memory as follows IN[0,0],IN[0,1],IN[0,2],IN[0,3], etc. Her task is to improve performance of the matrix transpose operation by utilizing optimization techniques and her knowledge of the underlying architecture. The processor has a 64KB fully associative first level data cache with 64-byte cache blocks. Assume the level 1 data cache has write-allocate policy on write misses. Assume write-backs do not consume clock cycles. for(i=0;i

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Intelligent Information And Database Systems Asian Conference Aciids 2012 Kaohsiung Taiwan March 19 21 2012 Proceedings Part 3 Lnai 7198

Authors: Jeng-Shyang Pan ,Shyi-Ming Chen ,Ngoc-Thanh Nguyen

2012th Edition

3642284922, 978-3642284922

More Books

Students also viewed these Databases questions

Question

differentiate the function ( x + 1 ) / ( x ^ 3 + x - 6 )

Answered: 1 week ago