I have an OpenCL context below, and I am wondering how to read and write these variables. Please help.
__global int a;
__constant int b;
__local int c;
__private int d;
Please look at a basic AMD APP SDK sample - You will get an idea of how to write an OpenCL app