Book description
Capitalize on the faster GPU processors in today’s computers with the C++ AMP code library—and bring massive parallelism to your project. With this practical book, experienced C++ developers will learn parallel programming fundamentals with C++ AMP through detailed examples, code snippets, and case studies. Learn the advantages of parallelism and get best practices for harnessing this technology in your applications.
Discover how to:
- Gain greater code performance using graphics processing units (GPUs)
- Choose accelerators that enable you to write code for GPUs
- Apply thread tiles, tile barriers, and tile static memory
- Debug C++ AMP code with Microsoft Visual Studio®
- Use profiling tools to track the performance of your code
Publisher resources
Table of contents
- Dedication
- Foreword
- Introduction
- 1. Overview and C++ AMP Approach
- 2. NBody Case Study
- 3. C++ AMP Fundamentals
- 4. Tiling
- 5. Tiled NBody Case Study
- 6. Debugging
-
7. Optimization
- An Approach to Performance Optimization
- Analyzing Performance
- Optimizing Memory Access Patterns
- Optimizing Computation
- Summary
- 8. Performance Case Study—Reduction
- 9. Working with Multiple Accelerators
- 10. Cartoonizer Case Study
- 11. Graphics Interop
-
12. Tips, Tricks, and Best Practices
- Dealing with Tile Size Mismatches
- Initializing Arrays
- Function Objects vs. Lambdas
- Atomic Operations
- Additional C++ AMP Features on Windows 8
- Time-Out Detection and Recovery
- Double-Precision Support
- Debugging on Windows 7
- Additional Debugging Functions
- Deployment
- C++ AMP and Windows 8 Windows Store Apps
- Using C++ AMP from Managed Code
- Summary
- A. Other Resources
- Index
- About the Authors
- Copyright
Product information
- Title: C++ AMP
- Author(s):
- Release date: September 2012
- Publisher(s): Microsoft Press
- ISBN: 9780735664739
You might also like
book
Pro Android C++ with the NDK
Android is one of the major players in the mobile phone market. Android is a mobile …
book
Data Parallel C++: Mastering DPC++ for Programming of Heterogeneous Systems using C++ and SYCL
Learn how to accelerate C++ programs using data parallelism. This open access book enables C++ programmers …
book
C++20 for Lazy Programmers: Quick, Easy, and Fun C++ for Beginners
Ready to learn programming with less effort and more fun? Then do it the lazy way! …
book
Pro TBB: C++ Parallel Programming with Threading Building Blocks
This open access book is a modern guide for all C++ programmers to learn Threading Building …