buffer in cuda

Hi everyone,

    can anyone tell me how to use buffer in cuda? I am have an array of length 1024*768*4. I have to detect the local extream points in every 27 elemets. These points may overlap. So I need to store them in to a buffer. Can anyone help me? thanks.