Cross-Device NBody Simulation Sample

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.

https://www.youtube.com/watch?v=QRohZmJJsD4
Para obter informações mais completas sobre otimizações do compilador, consulte nosso aviso de otimização.