CUDA by Example
Home > Computing and Information Technology > Computer science > Computer architecture and logic design > Parallel processing > CUDA by Example: An Introduction to General-Purpose GPU Programming
CUDA by Example: An Introduction to General-Purpose GPU Programming

CUDA by Example: An Introduction to General-Purpose GPU Programming


     0     
5
4
3
2
1



Out of Stock


Notify me when this book is in stock
X
About the Book

CUDA is a computing architecture designed to facilitate the development of parallel programs. In conjunction with a comprehensive software platform, the CUDA Architecture enables programmers to draw on the immense power of graphics processing units (GPUs) when building high-performance applications. GPUs, of course, have long been available for demanding graphics and game applications. CUDA now brings this valuable resource to programmers working on applications in other domains, including science, engineering, and finance. No knowledge of graphics programming is required—just the ability to program in a modestly extended version of C.   CUDA by Example, written by two senior members of the CUDA software platform team, shows programmers how to employ this new technology. The authors introduce each area of CUDA development through working examples. After a concise introduction to the CUDA platform and architecture, as well as a quick-start guide to CUDA C, the book details the techniques and trade-offs associated with each key CUDA feature. You’ll discover when to use each CUDA C extension and how to write CUDA software that delivers truly outstanding performance.   Major topics covered include Parallel programming Thread cooperation Constant memory and events Texture memory Graphics interoperability Atomics Streams CUDA C on multiple GPUs Advanced atomics Additional CUDA resources All the CUDA software tools you’ll need are freely available for download from NVIDIA. http://developer.nvidia.com/object/cuda-by-example.html

Table of Contents:
Foreword xiii Preface xv Acknowledgments xvii About the Authors xix Chapter 1: Why CUDA? Why Now? 1 1.1 Chapter Objectives 2 1.2 The Age of Parallel Processing 2 1.3 The Rise of GPU Computing 4 1.4 CUDA 6 1.5 Applications of CUDA 8 1.6 Chapter Review 11 Chapter 2: Getting Started 13 2.1 Chapter Objectives 14 2.2 Development Environment 14 2.3 Chapter Review 19 Chapter 3: Introduction to CUDA C 21 3.1 Chapter Objectives 22 3.2 A First Program 22 3.3 Querying Devices 27 3.4 Using Device Properties 33 3.5 Chapter Review 35 Chapter 4: Parallel Programming in CUDA C 37 4.1 Chapter Objectives 38 4.2 CUDA Parallel Programming 38 4.3 Chapter Review 57 Chapter 5: Thread Cooperation 59 5.1 Chapter Objectives 60 5.2 Splitting Parallel Blocks 60 5.3 Shared Memory and Synchronization 75 5.4 Chapter Review 94 Chapter 6: Constant Memory and Events 95 6.1 Chapter Objectives 96 6.2 Constant Memory 96 6.3 Measuring Performance with Events 108 6.4 Chapter Review 114 Chapter 7: Texture Memory 115 7.1 Chapter Objectives 116 7.2 Texture Memory Overview 116 7.3 Simulating Heat Transfer 117 7.4 Chapter Review 137 Chapter 8: Graphics Interoperability 139 8.1 Chapter Objectives 140 8.2 Graphics Interoperation 140 8.3 GPU Ripple with Graphics Interoperability 147 8.4 Heat Transfer with Graphics Interop 154 8.5 DirectX Interoperability 160 8.6 Chapter Review 161 Chapter 9: Atomics 163 9.1 Chapter Objectives 164 9.2 Compute Capability 164 9.3 Atomic Operations Overview 168 9.4 Computing Histograms 170 9.5 Chapter Review 183 Chapter 10: Streams 185 10.1 Chapter Objectives 186 10.2 Page-Locked Host Memory 186 10.3 CUDA Streams 192 10.4 Using a Single CUDA Stream 192 10.5 Using Multiple CUDA Streams 198 10.6 GPU Work Scheduling 205 10.7 Using Multiple CUDA Streams Effectively 208 10.8 Chapter Review 211 Chapter 11: CUDA C on Multiple GPUs 213 11.1 Chapter Objectives 214 11.2 Zero-Copy Host Memory 214 11.3 Using Multiple GPUs 224 11.4 Portable Pinned Memory 230 11.5 Chapter Review 235 Chapter 12: The Final Countdown 237 12.1 Chapter Objectives 238 12.2 CUDA Tools 238 12.3 Written Resources 244 12.4 Code Resources 246 12.5 Chapter Review 248 Appendix A: Advanced Atomics 249 A.1 Dot Product Revisited 250 A.2 Implementing a Hash Table 258 A.3 Appendix Review 277 Index 279

About the Author :
Jason Sanders is a senior software engineer in the CUDA Platform group at NVIDIA. While at NVIDIA, he helped develop early releases of CUDA system software and contributed to the OpenCL 1.0 Specification, an industry standard for heterogeneous computing. Jason received his master’s degree in computer science from the University of California Berkeley where he published research in GPU computing, and he holds a bachelor’s degree in electrical engineering from Princeton University. Prior to joining NVIDIA, he previously held positions at ATI Technologies, Apple, and Novell. When he’s not writing books, Jason is typically working out, playing soccer, or shooting photos.   Edward Kandrot is a senior software engineer on the CUDA Algorithms team at NVIDIA. He has more than twenty years of industry experience focused on optimizing code and improving performance, including for Photoshop and Mozilla. Kandrot has worked for Adobe, Microsoft, and Google, and he has been a consultant at many companies, including Apple and Autodesk. When not coding, he can be found playing World of Warcraft or visiting Las Vegas for the amazing food.


Best Sellers


Product Details
  • ISBN-13: 9780132180139
  • Publisher: Pearson Education (US)
  • Publisher Imprint: Addison Wesley
  • Language: English
  • Sub Title: An Introduction to General-Purpose GPU Programming
  • ISBN-10: 0132180138
  • Publisher Date: 19 Jul 2010
  • Binding: Digital download
  • No of Pages: 320
  • Weight: 1 gr


Similar Products

Add Photo
Add Photo

Customer Reviews

REVIEWS      0     
Click Here To Be The First to Review this Product
CUDA by Example: An Introduction to General-Purpose GPU Programming
Pearson Education (US) -
CUDA by Example: An Introduction to General-Purpose GPU Programming
Writing guidlines
We want to publish your review, so please:
  • keep your review on the product. Review's that defame author's character will be rejected.
  • Keep your review focused on the product.
  • Avoid writing about customer service. contact us instead if you have issue requiring immediate attention.
  • Refrain from mentioning competitors or the specific price you paid for the product.
  • Do not include any personally identifiable information, such as full names.

CUDA by Example: An Introduction to General-Purpose GPU Programming

Required fields are marked with *

Review Title*
Review
    Add Photo Add up to 6 photos
    Would you recommend this product to a friend?
    Tag this Book Read more
    Does your review contain spoilers?
    What type of reader best describes you?
    I agree to the terms & conditions
    You may receive emails regarding this submission. Any emails will include the ability to opt-out of future communications.

    CUSTOMER RATINGS AND REVIEWS AND QUESTIONS AND ANSWERS TERMS OF USE

    These Terms of Use govern your conduct associated with the Customer Ratings and Reviews and/or Questions and Answers service offered by Bookswagon (the "CRR Service").


    By submitting any content to Bookswagon, you guarantee that:
    • You are the sole author and owner of the intellectual property rights in the content;
    • All "moral rights" that you may have in such content have been voluntarily waived by you;
    • All content that you post is accurate;
    • You are at least 13 years old;
    • Use of the content you supply does not violate these Terms of Use and will not cause injury to any person or entity.
    You further agree that you may not submit any content:
    • That is known by you to be false, inaccurate or misleading;
    • That infringes any third party's copyright, patent, trademark, trade secret or other proprietary rights or rights of publicity or privacy;
    • That violates any law, statute, ordinance or regulation (including, but not limited to, those governing, consumer protection, unfair competition, anti-discrimination or false advertising);
    • That is, or may reasonably be considered to be, defamatory, libelous, hateful, racially or religiously biased or offensive, unlawfully threatening or unlawfully harassing to any individual, partnership or corporation;
    • For which you were compensated or granted any consideration by any unapproved third party;
    • That includes any information that references other websites, addresses, email addresses, contact information or phone numbers;
    • That contains any computer viruses, worms or other potentially damaging computer programs or files.
    You agree to indemnify and hold Bookswagon (and its officers, directors, agents, subsidiaries, joint ventures, employees and third-party service providers, including but not limited to Bazaarvoice, Inc.), harmless from all claims, demands, and damages (actual and consequential) of every kind and nature, known and unknown including reasonable attorneys' fees, arising out of a breach of your representations and warranties set forth above, or your violation of any law or the rights of a third party.


    For any content that you submit, you grant Bookswagon a perpetual, irrevocable, royalty-free, transferable right and license to use, copy, modify, delete in its entirety, adapt, publish, translate, create derivative works from and/or sell, transfer, and/or distribute such content and/or incorporate such content into any form, medium or technology throughout the world without compensation to you. Additionally,  Bookswagon may transfer or share any personal information that you submit with its third-party service providers, including but not limited to Bazaarvoice, Inc. in accordance with  Privacy Policy


    All content that you submit may be used at Bookswagon's sole discretion. Bookswagon reserves the right to change, condense, withhold publication, remove or delete any content on Bookswagon's website that Bookswagon deems, in its sole discretion, to violate the content guidelines or any other provision of these Terms of Use.  Bookswagon does not guarantee that you will have any recourse through Bookswagon to edit or delete any content you have submitted. Ratings and written comments are generally posted within two to four business days. However, Bookswagon reserves the right to remove or to refuse to post any submission to the extent authorized by law. You acknowledge that you, not Bookswagon, are responsible for the contents of your submission. None of the content that you submit shall be subject to any obligation of confidence on the part of Bookswagon, its agents, subsidiaries, affiliates, partners or third party service providers (including but not limited to Bazaarvoice, Inc.)and their respective directors, officers and employees.

    Accept

    New Arrivals


    Inspired by your browsing history


    Your review has been submitted!

    You've already reviewed this product!