Closed GoogleCodeExporter closed 9 years ago
Thanks for the report. This is an unfortunate consequence of device_reference
semantics.
This change to the end of the program fixes the compilation:
thrust::tuple<int,char> init = first[0];
thrust::reduce(first, last, init, binary_op); // returns tuple(30, 'z');
I've updated the getting started guide with the correct code.
Original comment by jaredhoberock
on 7 Oct 2010 at 4:14
Original comment by wnbell
on 6 Feb 2011 at 6:50
Original issue reported on code.google.com by
bhar...@gmail.com
on 6 Oct 2010 at 11:20