OpenCL N-Body Simulation

Last Revision:
Version 3.3, 2014-10-16
(1) Xcode 6 project updates. (2) Minor 10.10 updates. (3) Linear transformations of perspective geometry now use SIMD. (4) OpenGL text utility updated. (5) HUD image class updated.
(Full Revision History)
Build Requirements:
Xcode 6.0 or later
Runtime Requirements:
Mac OS X v10.10 or later

This example performs an NBody simulation which calculates a gravity field and corresponding velocity and acceleration contributions accumulated by each body in the system from every other body. This example also shows how to mitigate computation between all available devices including CPU and GPU devices, as well as a hybrid combination of both, using separate threads for each simulator.