Oclgrind: An Extensible OpenCL Device Simulator

James R Price, Simon N McIntosh-Smith

Research output: Contribution to conferenceConference Paperpeer-review

11 Citations (Scopus)
107 Downloads (Pure)


We describe Oclgrind, a platform designed to enable the creation of developer tools for analysis and debugging of OpenCL programs. Oclgrind simulates how OpenCL kernels execute with respect to the OpenCL standard, adhering to the execution and memory models that it defines. A simple plugin interface allows developer tools to observe the sim- ulation and collect execution information to provide useful analysis, or catch bugs that would be otherwise dicult to spot when running the application on a real device.

We give details about the implementation of the simula- tor, and describe how it can be extended with plugins that provide useful developer tools. We also present several ex- ample use-cases that have already been created using this platform, motivated by real-world problems that OpenCL developers face.
Original languageEnglish
Number of pages6
Publication statusPublished - 2015
EventIWOCL - Stanford University, Palo Alto, United States
Duration: 11 May 201513 May 2015


Country/TerritoryUnited States
CityPalo Alto


  • OpenCL
  • SPIR
  • simulation


Dive into the research topics of 'Oclgrind: An Extensible OpenCL Device Simulator'. Together they form a unique fingerprint.

Cite this