Cross-Device NBody Simulation Sample

Published:05/16/2014   Last Updated:11/22/2015

Download Code Sample Download Documentation

Features / Description

The NBody Simulation Sample features a load balancing approach to compute NBody simulation across both CPU and Intel® Processor Graphics.

This sample illustrates the basic principles of how to work simultaneously with OpenCL™ devices on both CPU and Intel® Processor Graphics. Source code is accompanied with graphics visualization of the job distribution between the devices. Running OpenCL code on both CPU and Intel Processor Graphics not only results in the sum of the performance of both devices, but also largely improves application power performance on Ultrabook™.

Supported Devices: CPU, Intel® Processor Graphics
Supported OS: Windows* OS
Complexity Level: Intermediate

For more information about the sample refer to the sample documentation inside the package.

* OpenCL and the OpenCL logo are trademarks of Apple Inc. used by permission by Khronos.

Additional Resources

Intel® SDK for OpenCL™ Applications

Product and Performance Information

1

Intel's compilers may or may not optimize to the same degree for non-Intel microprocessors for optimizations that are not unique to Intel microprocessors. These optimizations include SSE2, SSE3, and SSSE3 instruction sets and other optimizations. Intel does not guarantee the availability, functionality, or effectiveness of any optimization on microprocessors not manufactured by Intel. Microprocessor-dependent optimizations in this product are intended for use with Intel microprocessors. Certain optimizations not specific to Intel microarchitecture are reserved for Intel microprocessors. Please refer to the applicable product User and Reference Guides for more information regarding the specific instruction sets covered by this notice.

Notice revision #20110804