The memory allocation for the OpenCL foldedData and the control were
inverted.