Errors in kernel fixed. Error in GPU memory allocation in driver.m remains.