• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 4 out of 187 pages
Exam (elaborations)

Program Transformations for Cache Locality Enhancement – Computer Science (PDF)

Document preview thumbnail
Preview 4 out of 187 pages

Explore Program Transformations for Cache Locality Enhancement with an educational resource covering compiler optimization, memory hierarchy, and techniques for improving computer program performance. Understand how program transformations enhance cache utilization, reduce memory access delays, and improve execution efficiency in modern computing systems. Discover essential concepts including cache memory organization, data locality, temporal and spatial locality, loop transformations, loop interchange, loop tiling, loop fusion, loop unrolling, memory access optimization, and compiler-based performance enhancement. Learn how code restructuring techniques improve cache efficiency and optimize data processing in high-performance computing applications. Ideal for computer science students, software engineers, compiler researchers, and computer architecture learners. This resource supports university coursework, programming studies, independent research, and examination preparation in compiler design, computer architecture, and performance optimization.Cache Locality Optimization

Content preview

Program Transformations for Cache Locality Enhancement
on Shared-memory Multiprocessors




by




Naraig Manjikian




A thesis submitted in conformity with the requirements
for the degree of Doctor of Philosophy
Graduate Department of Electrical and Computer Engineering
University of Toronto




c Copyright by Naraig Manjikian 1997

, Abstract
Program Transformations for Cache Locality Enhancement
on Shared-memory Multiprocessors

Naraig Manjikian
Doctor of Philosophy
Graduate Department of Electrical and Computer Engineering
University of Toronto
1997

This dissertation proposes and evaluates compiler techniques that enhance cache locality

and consequently improve the performance of parallel applications on shared-memory multi-

processors. These techniques target applications with loop-level parallelism that can be detected

and exploited automatically by a compiler. Novel program transformations are combined with

appropriate loop scheduling in order to exploit data reuse while maintaining parallelism and

avoiding cache conflicts.

First, this dissertation proposes the shift-and-peel transformation for enabling loop fusion

and exploiting reuse across parallel loops. The shift-and-peel transformation overcomes depen-

dence limitations that have previously prevented loops from being fused legally, or prevented

legally-fused loops from being parallelized. Therefore, this transformation exploits all reuse

across loops without loss of parallelism.

Second, this dissertation describes and evaluates adaptations of static loop scheduling

strategies to exploit wavefront parallelism while ensuring locality in tiled loops. Wavefront

parallelism results when tiling is enabled by combining the shift-and-peel transformation with

loop skewing. Proper scheduling exploits both intratile and intertile data reuse when indepen-

dent tiles are executed in parallel on a large number of processors.


ii

, Third, this dissertation proposes cache partitioning for preventing cache conflicts between

data from different arrays, especially when exploiting reuse across loops. Specifically, cache

partitioning prevents frequently-recurring conflicts in loops with compatible data access pat-

terns. Cache partitioning transforms the data layout such that there are no conflicts for reused

data from different arrays during loop execution.

An analytical model is also presented to assess the potential benefit of locality enhancement.

This model estimates the expected reduction in execution time by parameterizing the reduction

in the number of memory accesses with locality enhancement and the contribution of memory

accesses towards execution time.

Experimental results show that the proposed techniques improve parallel performance

by 20%-60% for representative applications on contemporary multiprocessors. The results

also show that significant improvements are obtained in conjunction with other performance-

enhancing techniques such as prefetching. The importance of the techniques described in this

dissertation will continue to increase as processor performance continues to increase more

rapidly than memory performance.




iii

, Acknowledgements

First and foremost, I would like to thank my supervisor, Dr. Tarek S. Abdelrahman. For
five years, he has maintained the right balance between providing close supervision and giving
me the freedom to pursue my ideas, and he has given me much-appreciated encouragement and
advice along the path of graduate studies. His attention to my work ultimately helped ensure
its final quality.
I would also like to thank the members of my examination committee, Dr. David A. Padua,
Dr. Zvonko G. Vranesic, Dr. Kenneth C. Sevcik, Dr. Todd C. Mowry, and Dr. Stephen D.
Brown, for their careful reading and critical evaluation of my dissertation.
Access to the multiprocessor systems used in this research was provided by the University
of Michigan Center for Parallel Computing. In particular, I would like to acknowledge the
assistance of Andrew Caird of the Center of Parallel Computing.
I am grateful for the financial support that I have received during the course of my doctoral
studies. I have been supported by a Postgraduate Scholarship from the Natural Sciences and
Engineering Research Council of Canada, a University of Toronto Open Doctoral Fellowship,
and a V. L. Henderson Memorial Fellowship. Additional financial support for this research was
provided by the Natural Sciences and Engineering Research Council, and by the Information
Technology Research Centre of Ontario.
I am also grateful for the opportunity to have participated in the NUMAchine Multiprocessor
Project at the University of Toronto. I would like to thank the faculty, staff, and students involved
in the NUMAchine Project for providing me with a rewarding experience.
I would like to thank the members of my extended family for their kindness and support,
and for always providing me with a home away from home during the entire course of my
university education.
To my parents, Hagop and Dirouhie, my brother, Sevak, and my sister, Lalai, words alone
cannot convey my heartfelt gratitude. Despite my long absences, you supported all of my
scholarly endeavors. You accepted the importance of my education, and you respected my
decisions, although you gave me advice so that my direction was always clear. Let us always
celebrate our successes together.



iv

Document information

Uploaded on
November 21, 2026
Number of pages
187
Written in
2026/2027
Type
Exam (elaborations)
Contains
Questions & answers
$19.99

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
Maliah
3.6
(18)
Sold
93
Followers
39
Items
2106
Last sold
14 hours ago



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions