Use Thrust's join_iterator