Cleaning up the GPU bonded kernel