cuda: added dest keyword to toDevice()