Chapter 10. OpenCL Case Study
Mixed Particle Simulation
Justin 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)
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 ...