Contact Us

GPU Compute Demo

The BDT NBody Demo. An N-Body simulation models the motion of particles subject to a force due to the particle-particle interactions between all particles in the system. A typical example is the simulation of stars in a galaxy subject to the gravitational force. Brown Deer has developed an N-Body simulation code accelerated with GPUs using OpenCL™.

Download. A precompiled binary package is available here. (64-bit Linux)

Instructions. The precompiled demo is self-contained and requires no additional software installation. The only requirement is a working AMD or Nvidia OpenCL implementation.

Running the demo using an AMD GPU (bash shell):

 export LD_LIBRARY_PATH=./$LD_LIBRARY_PATH; \
 ./bdt_nbody.x

Running the demo using an Nvidia GPU (bash shell):

 export LD_LIBRARY_PATH=./$LD_LIBRARY_PATH; \
 export STDGPU="platform_name=nvidia"; \
 ./bdt_nbody.x

The demo uses the STDCL interface provided by the libstdcl library that is distributed as part of the COPRTHR SDK v1.1, which also includes the source code for the demo under the examples/ directory.

OpenCL is a trademark of Apple Inc. used by permission by The Khronus Group
The Khronus Group develops and maintains the OpenCL standard.

Copyright © 2011-2012 Brown Deer Technology, LLC.