buffer: flush opencl caches before sampling