C++ AMP: Accelerated Massive Parallelism with Microsoft® by Kate Gregory

By Kate Gregory

Capitalize at the quicker GPU processors in modern-day desktops with the C++ AMP code library--and deliver substantial parallelism on your undertaking. With this useful publication, skilled C++ builders will examine parallel programming basics with C++ AMP via targeted examples, code snippets, and case stories. research some great benefits of parallelism and get most sensible practices for harnessing this know-how on your applications.Discover how to:Gain better code functionality utilizing pix processing devices (GPUs) decide upon accelerators that assist you to write code for GPUs follow thread tiles, tile obstacles, and tile static reminiscence Debug C++ AMP code with Microsoft visible Studio® Use profiling instruments to trace the functionality of your code Get code samples at the webReady to obtain at: ampbook.codeplex.com/For method specifications see the advent

Show description

Read Online or Download C++ AMP: Accelerated Massive Parallelism with Microsoft® Visual C++® PDF

Best c & c++ books

Mastering Asp.Net with Visual C#

ASP. internet is Microsoft's new expertise for constructing advanced, interactive net purposes. This entire consultant takes C# programmers via the entire steps of constructing net purposes that leverage the complete energy of the . web applied sciences. It comprises in-depth insurance of server-side programming with ASP.

Practical C++ Programming, Second Edition

C++ is a robust, hugely versatile, and adaptable programming language that enables software program engineers to prepare and strategy info speedy and successfully. yet this high-level language is comparatively tricky to grasp, whether you understand the c language. The 2d variation of sensible C++ Programming is a whole creation to the C++ language for programmers who're studying C++.

C++ Toolkit for Engineers and Scientists

This publication describes the layout, building, and use of a numerical research software program toolkit. it really is written in C+ +, model 2. zero, and makes crucial use of that language's Object-Oriented Programming (OOP) good points. Its improvement setting is the Borland foreign, Inc. , Borland C++ compiler, model five.

Additional resources for C++ AMP: Accelerated Massive Parallelism with Microsoft® Visual C++®

Example text

21 Running the NBody Example . . . . . . . . . . . . . . . . 22 Structure of the Example 28 CPU Calculations . . . . . . . . . . . . . . . . . . . . . 29 The CPU NBody Classes . . . . . . . . . . . . . . . . . . 34 C++ AMP Calculations . . . . . . . . . . . . . . . . . . . 36 The C++ AMP NBody Classes . . . . . . . . . . . . . . . . 40 Summary . . . . . . . . . . . . . . . . . . .

Inc ud ng amp h to use the brary 2. Because the types and funct ons are n the concurrency namespace, add ng a using statement to reduce your typ ng 3. Us ng array v ews to manage copy ng the data to or from the acce erator 4. Chang ng the anguage for to a brary parallel for each and us ng a ambda as the ast param- eter to that funct on ca 5. Us ng the restrict(amp) c ause to dent fy acce erator-compat b e code Chapter 1 Overv ew and C++ AMP Approach 17 These are the on y changes requ red There are no changes to project sett ngs or env ronment var ab es There s no code e sewhere that th s needs to ca Th s s the who e th ng What happens beh nd the scenes?

34 C++ AMP Calculations . . . . . . . . . . . . . . . . . . . 36 The C++ AMP NBody Classes . . . . . . . . . . . . . . . . 40 Summary . . . . . . . . . . . . . . . . . . . . . . . . . aspx. This blog post includes a link to an executable that works much like the sample used here—you can use either one, but the book sample includes the source code if you want to see how it works. The ut ty produces output ke th s Found 1 accelerator device(s) that are compatible with C++ AMP: 1: NVIDIA GeForce GT 420, has_display=true, is_emulated=false Hit enter to exit.

Download PDF sample

Rated 4.13 of 5 – based on 31 votes
Category: C C