Prepare to next step of port to cuda