Host program (main.c)
Kernel (kernel.cl)
Host CPU running main.c
CPU
Host memory
PCIe
context
OpenCL device
Objects
Queue
Global memory
Scheduler