added cuda device reporting and efficient chopping of input arrays