O'Reilly logo

Heterogeneous Computing with OpenCL by Dana Schaa, Perhaad Mistry, David R. Kaeli, Lee Howes, Benedict Gaster

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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)

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required