Skip to Content
The CUDA Handbook: A Comprehensive Guide to GPU Programming
book

The CUDA Handbook: A Comprehensive Guide to GPU Programming

by Nicholas Wilt
June 2013
Intermediate to advanced
528 pages
13h 11m
English
Addison-Wesley Professional
Content preview from The CUDA Handbook: A Comprehensive Guide to GPU Programming

Chapter 14. N-Body

N-Body computations are a family of computation that models a set of particles (known as bodies), each of which must consider all the other bodies during the computation. Example applications of N-Body include (but are not limited to) the following.

• Gravitational simulation in which stars exert gravitational forces

• Molecular modeling in which ions exert electrostatic forces

• Particle systems in computer graphics to simulate water and fire

• “Boids,” a technique for computer animation designed to simulate flocking behavior

Typically the paths of the bodies are being simulated per timestep, and computing each timestep costs O(N2) operations for N bodies. In most formulations, the forces quickly decrease with distance, leading ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

CUDA Programming

CUDA Programming

Shane Cook
Professional CUDA C Programming

Professional CUDA C Programming

John Cheng, Max Grossman, Ty McKercher

Publisher Resources

ISBN: 9780133261516Purchase book