allocate host memory and copy device memory content
foreach (i; 0 .. 100) { auto d = CuPtr!float([3.0]); assert(d.toHost() == [3.0]); }
See Implementation
allocate host memory and copy device memory content