thrust issue with cuda managed memory