Docsity

Evolution of the Graphical Processing Unit, Slides of Computer Graphics and Animation

Toggle sidebar
bg1
UniversityofNevada
Reno
EvolutionoftheGraphicalProcessingUnit
Aprofessionalpapersubmittedinpartialfulfillment
oftherequirementsforthedegreeof
MasterofScience
withamajorin
ComputerScience
by
ThomasScottCrow
Dr.FrederickC.Harris,Jr.,Advisor
December2004
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b

Partial preview of the text

Download Evolution of the Graphical Processing Unit and more Slides Computer Graphics and Animation in PDF only on Docsity!

University Reno of Nevada

Evolution of the Graphical Processing Unit

A professional paper submitted in partial fulfillment of the requirements for the degree of Master of Science with a major in Computer Science

by Thomas Scott Crow Dr. Frederick C. Harris, Jr., Advisor December 2004

Dedication

To my wife Windee, thank you for all of your patience, intelligence and love.

i

Abstract

In this paper we discuss some major contributions to the field of computer graphics that have led to the implementation of the modern graphical processing unit. We also compare the performance of matrix‐matrix multiplication on the GPU to the same computation on the CPU. Although the CPU performs better in this comparison, modern GPUs have a lot of potential since their rate of growth far exceeds that of the CPU. The history of the rate of growth of the GPU shows that the transistor count doubles every 6 months where that of the CPU is only every 18 months. There is currently much research going on regarding general purpose computing on GPUs and although there has been moderate success, there are several issues that keep the commodity GPU from expanding out from pure graphics computing with limited cache bandwidth being one.

iii

Table of Contents

Dedication………………………………………………………………………………...............i Acknowledgements………………………………………………………………… .... ………ii Abstract…………………………………………………………………………………………..iii

Table of Contents…………………………………………………………………………….. ...iv List of Figures……………………………………………………………………...……………..v Chapter 1 Introduction.…………………………………………………………………………. Chapter 2 Computer Milestones……………………………………………………………….. 2.1 The Whirlwind and Sage Projects…………………………………….…………... 2.2 2.3 (^) Sutherland’sMIT’s TX‐ 0 and Sketchpad…………………………………………………….……. TX‐2………………………………………………………….……6. 2.4 Digital Equipment Corporation and the Minicomputer……………..……....... 2.5 High‐end CAD Graphics Systems……………………………………..………… 2.6 The PC Revolution………………………………………………………………… Chapter 3.1 3 The3D Graphics Modern GPU………………………………….……………………………….17Pipeline……………………………………………………………... 20 3.2 Fixed Function Pipeline vs. Programmable Pipeline………………………...... 26 3.3 The Stream Processing Model………………………………………………….... 29 Chapter 4 General Purpose GPU Computing…………………………………………..... ... 4.1 4.2 MatrixResults………………………………………………………………………………38‐Matrix Multiplication – A Test Case……………………………………

Chapter 5 Future of the GPU…………………………………………………………………. References……………………………………………………………………………………….

iv

Chapter 1 Introduction

The idea that we can get from a vacuum tube to a graphics processor, whose main purpose it is to perform graphical computations for incredible computer game graphics effects and is capable of more raw computation than a computer’s central processor would be the stuff of science fiction novels even only just 20 years ago. But yet, here we are at that point and the performance gap continues to grow with no end in sight. In 1999, the 3D graphics pipeline was first fully implemented in the hardware of a GPU. Before that, some parts of the pipeline if not all were implemented via software that was then computed by the CPU. What this all meant was that computer graphics was primitive at best and very exotic hardware and software were required to do anything other than very low‐end graphics. This all changed with the advent of the low‐ cost personal computer and the surge in computer games that drove a demand for better computer games and software which in turn demanded better hardware. Nowadays, you can buy a $399 computer graphics card for playing virtually real‐time computer games that is more than 3 times as fast as a high‐end personal computer costing nearly 10 times as much. Even though GPUs today have more computational horsepower, they are fine‐ tuned for the type of computation that is required for computer graphics which is highly parallel, numerically demanding with little to no data reuse. Although many types of computations demonstrate qualities of high parallelism and numerical intensiveness, they also require significant data reuse. CPUs have large caches with high bandwidths

that facilitate the reuse of data that makes them very suitable for general purpose computation whereas a GPU has much smaller caches with lower bandwidths since they are geared for the type of computations that are required for graphics. The rest of this paper is outlined as follows: in Chapter 2 we talk about some of the more important milestones that have a direct bearing on the field of computer graphics and specifically the GPU. Chapter 3 is a discussion of the modern GPU and how the 3D graphics pipeline, which is the basic principle behind 3D graphics, has moved from the CPU to GPU and thus now allows for a user to actually write custom programs that run directly on the GPU. Chapter 4 talks about general purpose, non‐ graphics computing performed on the GPU. For this paper a test case was implemented that performed matrix‐matrix multiplication on both the CPU and the GPU to see which would perform better and the results are discussed in 4.2. Chapter 5 completes this paper with a brief discussion of the future of the GPU.

2.1 The Whirlwind and Sage Projects By almost any measure—scale, expense, technical complexity, or influence on future developments—the single most important computer project of the postwar decade was MIT’s Whirlwind and its offspring, the SAGE computerized air defense system [21]. The design and implementation of the Whirlwind computer project began in 1944 by Jay Forrester and Ken Olsen of MIT. The project came out of the Navy’s Airplane Stability and Control Analyzer project (ASCA). The idea was to come up with a design for a programmable flight simulation computer which could be programmed to provide training for Navy pilots on any aircraft without having to customize a new computer for every aircraft type. Although Whirlwind was not the first digital computer, it was the first computer built specifically for interactive, real‐time control which displayed real‐time text and graphics on a video terminal [64]. Because the memory at the time was not fast enough to allow Whirlwind to be a real‐time control computer, a new type of memory was created by Jay Forrester called core memory. This was the technique of using a matrix of wires with donut shaped ferrite ceramic magnets (called a core) at each junction to produce random access memory shown in Figure 2.2. Although the focus of the Whirlwind project shown in Figure 2.3 started out as a general‐purpose flight simulator, it soon morphed into a design for a general‐purpose, real‐time digital computer with the ability to do more than flight simulation calculations. The Air Force saw a potential for this real‐time, general purpose computer, where there was none before and took over funding of the Whirlwind project to support

a project of their own termed SAGE (Semi‐Automatic Ground Environment) [37].

Figure 2.2: Core Memory layout from [15]

Figure 2.3: Whirlwind computer project from [83]

Figure 2.4: SAGE Project from [69]

Figure 2.5: SAGE with the Light Pen from [70]

Experimental Computer Zero) shown in Figure 2.6 [21]. The TX‐ 0 was basically a transistorized Whirlwind. The Whirlwind computer was so large that it filled an entire floor of a large building, but the TX‐ 0 fit in the relatively smaller area of a room and was somewhat faster [21, 29]. The TX‐ 0 was the fastest computer of its era and was the predecessor of the minicomputer and the direct ancestor of the DEC PDP‐1. The Lincoln laboratory was paid by the Air Force to build the TX‐ 0 to determine if it was feasible to build a major computing system based on only transistors instead of vacuum tubes. It was also used to test the viability of larger, complex core memory first implemented in Whirlwind [14, 21]. The TX‐ 2 project shown in Figure 2.7 was begun shortly after the successful completion of TX‐ 0 in 1956. It was much larger than the TX‐ 0 and was built using 22,000 transistors and was key to the evolution of interactive computer graphics [14]. There are many contributions that the TX‐0/TX‐ 2 projects provided for the field of computer graphics. Besides the obvious contribution of showing a much smaller, more powerful transistorized computer is possible; the project made extensive use of the CRT and light pen as an interactive graphics workstation and pushed the next level of computer graphics evolution. The TX‐0/TX‐ 2 would be used by Ivan Sutherland to create the famed interactive graphics program Sketchpad [50]. The project allowed the co‐creator, Ken Olsen, to take the knowledge he gained on the project and start a company that would go on to become one of the most influential computer companies of the 1970s and 1980s, Digital Equipment Corporation (DEC).

2.3 Sutherland’s Sketchpad Not only did the TX‐ 2 have a 9 inch CRT display, but it also had a number of other input and output devices such as the light pen, a magnetic tape storage device, an on‐line typewriter, a bank of control switches, paper tape for program input and the first Xerox printer [75, 77]. All of these new man‐machine interfaces made for an environment that was ripe for the right person to take advantage of them and that person was Ivan Sutherland at MIT. In his 1963 Ph.D. thesis [77], using the powerful TX‐2, Ivan Sutherland created Sketchpad shown in Figure 2.8, which as time has revealed was the precursor of the direct manipulation computer graphic interface of today [75]. For his work beginning with Sketchpad, he is widely recognized as the grandfather of interactive computer graphics [75]. Sketchpad was a program written for the TX‐ 2 that allowed a user to draw and manage points, line segments, and arcs on a CRT monitor using a hand‐held light pen. These drawings were very precise and offered a scale of 2000:1 allowing for a relatively large drawing area [2]. These drawings were not merely pictures, but were more importantly computer data that was presented and manipulated by the user graphically. The user had the ability to create object relationships using the various primitives that were allowed and could build up complex drawings by combining different elements and shapes. Sketchpad was important for many reasons, but most importantly it freed the user from having to program the computer with Instructions to perform. Instead, it allowed the

Figure 2.8: Sutherland’s Sketchpad and the TX‐ 2 from [74] user to interact with the computer via the light pen and the CRT monitor thus setting the ground work for more advanced man‐machine interaction. Sketchpad is the ancestor of computer aided design (CAD) and the modern graphical user interface (GUI) [50, 67]. 2.4 Digital Equipment Corporation and the Minicomputer Shortly after starting on the design of the TX‐ 2 in 1957, Ken Olsen, one of the original designers and builders of the TX‐ 0 and the TX‐ 2 computers left MIT and became the founder of the Digital Equipment Corporation (DEC). In Ken Olsen’s own words, “ I was building the hardware, somebody else was designing the logic and they couldnʹt settle down. So after a year or two of that I got impatient and left” [1]. That would prove to be the best move of his life not to mention a necessary step in the evolution of the computer graphics industry. Shortly after in 1960, the DEC PDP‐ 1 (programmed data processor) shown in Figure 2.9 became the commercial manifestation of the Air Force funded, MIT

2.5 High‐End CAD Graphics Systems As mentioned earlier in this chapter, computer graphics and most certainly Computer Aided Design (CAD) can be traced back to Sutherland’s work with Sketchpad. The idea of having the computer do all of the graphical calculations, being able to manipulate an existing drawing, not having to manually draw, correct and redraw a drawing and all dependent drawings appealed to industries that relied on graphical representations like automotive and aerospace. General Motors took the idea of CAD and CAM (Computer Aided Manufacturing) and teamed up with IBM to begin working on one of the first CAD/CAM systems, which was the DAC‐ 1 (Design Augmented by Computer) shown in Figure 2.10 [39, 49]. The DAC‐ 1 system expanded the Sketchpad idea by creating, rotating and viewing 3D models, but the system still utilized a time‐shared model of computing [22]. In 1967, the IDIIOM (Information Displays, Inc., Input‐Output Machine) became the first stand‐alone CAD workstation [10]. Building on the demand and success of previous CAD workstations, IDI, a company that manufactured primarily custom CRT displays, began looking at combining their displays with a small third‐party, integrated circuit computer to produce a relatively inexpensive stand‐alone CAD workstation. The IDIIOM helped move the CAD and graphics industry forward by taking the computing‐ expensive, time‐sharing mainframe component out of the CAD environment by implementing their system with a much less expensive minicomputer instead of a

mainframe. They also designed and programmed their own CAD software called IDADS (Information Displays Automatic Drafting System), which greatly reduced current drafting costs and turn around time. The benefit to providing the user‐friendly CAD software application with IDIIOM was that the user was no longer required to code their own software to utilize the machine.

Figure 2.10: General Motor’s DAC‐ 1 Computer system from [13] 2.6 The PC Revolution The most important part of the computer is the central processing unit (CPU). Generically, a CPU has circuit logic for a control unit that takes instructions from memory and then decodes and executes them and also circuitry for arithmetic and