Added feedback from the cuda plugin and return of iteration count. Former-commit-id: 711ca3d9ec
711ca3d9ec