
Programming the Cell processor
1st Edition
By Matthew Scarpino
ISBN:
0136008860
Publisher:
Prentice Hall
Year:
2008
Pages:
721
About This Book
Make the Most of IBMs Breakthrough Cell Processor in Any Gaming, Graphics, or Scientific ApplicationIBMs Cell processor delivers truly stunning computational power: enough to satisfy even the most demanding gamers and graphics developers. Thats why Sony chose the Cell to drive its breakthrough PlayStation 3 and why Cell processors are at the heart of todays most powerful supercomputers. But many developers have struggled to create high-performance Cell applications: the practical, coherent information they need simply hasnt existed.Programming the Cell Processor solves that problem once and for all. Whether youre a game developer, graphics programmer, or engineer, Matthew Scarpino shows you how to create applications that leverage all the Cells extraordinary power. Scarpino covers everything from the Cells advanced architecture to its powerful tools and libraries, presenting realistic code examples that help you gain an increasingly deep and intuitive understanding of Cell development.Scarpino illuminates each of the Cells most important technical innovations, introduces the commands needed to access its power, and walks you through the entire development process, including compiling, linking, debugging, and simulating code. He also offers start-to-finish case studies for three especially important Cell applications: games, graphics, and scientific computing. The Cell platform offers unprecedented potential, and this book will help you make the most of it.Mastering the Cell SDK, including the GCC-based buildchain, ppu-gdb/spu-gdb debuggers, IBM Full System Simulator, and Cell IDEUnderstanding the Cells central processing core, the PowerPC Processor Unit (PPU): structure, programming libraries, and AltiVec instructionsProgramming the Synergistic Processor Unit (SPU): vector processing, communication, caching, assembler coding, and moreLeveraging SDK vector and matrix libraries, including the Large Matrix Library, BLAS Library, FFT libraries, Multiprecision Library, and Monte Carlo APICoding basic 2D graphics using the Linux frame bufferBuilding 3D graphics with the new Gallium OpenGL library Constructing 3D games with Ogre3D and packaging them using Collada digital content interchangeOptimizing the performance of your Cell applicationsDeveloping on standard PCs and transferring code to Cell systems such as the PlayStation 3Foreword xvPreface xviiChapter 1: Introducing the Cell Processor 1Part I: The Software Development Tools 13Chapter 2: The Cell Software Development Kit (SDK) 15Chapter 3: Building Applications for the Cell Processor 35Chapter 4: Debugging and Simulating Applications 53Chapter 5: The Cell SDK Integrated Development Environment 83Part II: The PowerPC Processor Element (PPE) 97Chapter 6: Introducing the PowerPC Processor Unit (PPU) 99Chapter 7: The SPE Runtime Management Library (libspe) 125Chapter 8: SIMD Programming on the PPU, Part 1: Vector Libraries and Functions 153Chapter 9: SIMD Programming on the PPU, P