initialisation and transfert to cuda