Chapter 10. OpenCL Case Study
Mixed Particle SimulationJustin Hensley and Takahiro Harada
Advanced Micro Devices, Incorporated, Sunnyvale, California
This chapter discusses a mixed particle simulation.
Keywords Example program, OpenCL, particle simulation, zero copy (or buffer sharing)
Introduction
This case study examines leveraging both the CPU and the GPU to implement a mixed-sized particle simulation. Without a loss of generality, this example is restricted to two dimensions to keep the kernels easily understandable. In addition, this case study leverages OpenCL's ability to share data between the CPU and the GPU, which is beneficial on highly integrated devices such as AMD's APUs.
Implementing a simple simulation with uniform particle sizes on ...
Get Heterogeneous Computing with OpenCL now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.