removed return/exit statements from CG loop for easier OpenACC implementation