r/ComputerEngineering • Performance Architect • Jul 26 '19

Computer Architecture Highlights: Week 2

Hi all! I'm an architecture PhD student, and I wanted to start posting a brief summary of an influential research paper (either old or new) every week! Here's one from the GPU architecture community to finish your week with!

Title: Energy-efficient Mechanisms for Managing Thread Context in Throughput Processors

Conference: ISCA 2011

Paper Link: Link

 

Problem: The massively multi-threaded design of GPUs leads them to have massive register files to support all the thread contexts (GPUs do a great job at hiding long latency memory accesses by swapping in different threads that have useful work). However, accessing large structures (like these register files) can cost a significant amount of energy that could be better allocated for more useful work.

 

Solution: First, characterize the lifetime of registers in common applications. Most values are read fewer than 2 times, and often these reads are within a few instructions from the original write. This means that we have a significant amount of locality to exploit, and we are wasting energy accessing a large structure like the main register file (MRF)! Adding a register file cache (RFC) can help reduce the number of accesses to the MRF.

However, the RFC also takes up space, and if we have too many threads accessing it, we'll end up not getting any hits, or we'll require another large structure. We can therefore use a two-level scheduler that has a small set of active threads that can be scheduled to hide the small latency of arithmetic instructions and make use of the RFC, and a larger pending set of threads that can be swapped in when a long-latency memory access occurs in the active set.

 

Major Impact: Simple ideas are often some of the best ideas because they can be realistically implemented. This paper showed that you could reduce MRF accesses by 40-80% through a few small but deliberate changes to the micro-architecture. Another great thing about this paper was that the idea was actually implemented! If you look at NVIDIA GPUs, you'll see mention of something called an "operand reuse cache" that works in a similar fashion to the RFC (you can even see instructions with registers specifically marked for reuse in the assembly as well, like FFMA.FTZ R23, R26.reuse, 4.5, R37.reuse; ).

 

That's all for this week! Check out their paper linked above for more details into how they characterized the reuse of registers and explored the design space for RFC size, and number of active threads accessing the RFC! Until next time,

 

--Nick

Last Week's: Link -->

Next Week's: Link -->

My YouTube channel with similar teaching content.

My GitHub where I post all my teaching code.

41 Upvotes

14 comments sorted by

5

u/fuyukihana Jul 26 '19

Thanks! Again, super relevant to my studies and majorly appreciated. Gonna look at this one to figure out how they threaded it like this. :)

3

u/EngrToday Performance Architect Jul 26 '19

Always happy to help!

5

u/mathav Jul 26 '19

Please please please do this! It's hard to express how helpful this kind of a blog would be!

1

u/EngrToday Performance Architect Jul 26 '19

Reading research papers can be a daunting task. Hopefully my weekly posts and teaching videos where I try and make it as approachable as possible helps people past that barrier!

2

u/mathav Jul 26 '19

It definately does, and also helps undergraduates tremendously with choosing research topics!

3

u/[deleted] Jul 26 '19

This is nice, im taking computer architecture next semester.

2

u/EngrToday Performance Architect Jul 26 '19

Glad you think so! It's always nice to see what contemporary issues are being solved while learning the fundamentals! Best of luck!

2

u/[deleted] Jul 26 '19

That's how i got into mechanical engineering only to realize i'd rather learn computer engineering. I really enjoyed ths introduction to circuit design (logic gates, VHDL, mealy/moore machines and sequential logic) that i was 2 chapters ahead of the class.

3

u/PlayboySkeleton Jul 27 '19

Could you do pod casts? This is the exact kind of stuff that I want to listen to every single day.

1

u/EngrToday Performance Architect Jul 27 '19

Yeah, that'd be a fun thing to add to the videos I do. Just need to decide on the right format for episodes.

2

u/Kara-Abdelaziz Jul 26 '19

Very good work, just continue and keep going ahead. I have a question by the way, what criterias you use to estimate important research papers ?

2

u/EngrToday Performance Architect Jul 26 '19

It's something that varies from paper to paper. Citation count is a starting point (if people are citing a paper, it generally means it's had at least some sort of impact). For more recent papers, there is a thing called MICRO Top Picks where recently published papers get recognized for quality/being likely to have significant impact. For older papers, things like the MICRO Test of Time Award recognizes papers that have had a significant impact in the field. Papers that end up being implemented (either partially or fully) in silicon are also pretty impactful (companies won't bother implementing something unless they are pretty sure it's a good idea).

2

u/Kara-Abdelaziz Jul 26 '19

Didn't know about MICRO Top list, indeed it's a good way to find good papers. Thank you and good continuation.

2

u/EngrToday Performance Architect Jul 26 '19

Always happy to help!