Add gpu memory and pipeline