adds a withDevice closure to easily run code on a given device
adds a withDevice closure to easily run code on a given device

adamlerer/cutorch,LinusU/cutorch,LinusU/cutorch,Moodstocks/cutorch,hughperkins/cutorch,wickedfoo/cutorch,Zhen-hao/cutorch,luketwitter/cutorch,yvan-sraka/cutorch,torch/cutorch,yvan-sraka/cutorch,0wu/cutorch,soumith/cutorch,torch/cutorch,Moodstocks/cutorch,luketwitter/cutorch,Schakirov/cutorch_my,wickedfoo/cutorch,fmassa/cutorch,clementfarabet/cutorch,torch/cutorch,adamlerer/cutorch,0wu/cutorch,clementfarabet/cutorch,Schakirov/cutorch_my,hughperkins/cutorch,Zhen-hao/cutorch