Fixing codes cuda