Remove all cudaDeviceSynchronize() calls which were slowing down the
code terribly