Closed GoogleCodeExporter closed 9 years ago
Thanks for submitting this patch. We've decided not to implement the proposed
functionality because it is non-standard and there exist alternatives such as
bare calls to device_malloc [1] and cusp::array1d [2] which is uninitialized.
Moreover, in a future version of the library it will become more convenient to
use wrapped device_ptrs from device_malloc with a vector-like interface [3].
[1]
http://thrust.googlecode.com/svn/tags/1.2.0/doc/html/group__allocation__function
s.html#g53081c2b134f091a080c976a1cbaf8cd
[2]
http://cusp-library.googlecode.com/svn/tags/0.1.0/doc/html/array1d_8h-source.htm
l
[3]
http://code.google.com/r/jaredhoberock-thrust-range/source/browse/thrust/range/i
terator_range.h
Original comment by jaredhoberock
on 31 Aug 2010 at 6:48
On the non-standard argument, I think it's bogus. thrust should be familiar for
programmers experienced with the STL, but it already diverges a lot in many
ways.
This is a basic functionality that most thrust programs can benefit from.
Making it available in the simplest form possible seems logical. Would the
propose vector-like interface provide automatic memory management? How would
the code using iterator_range look like?
Original comment by dkosmari
on 31 Aug 2010 at 8:23
Original comment by jaredhoberock
on 7 Oct 2010 at 4:37
Original issue reported on code.google.com by
dkosmari
on 20 Jul 2010 at 9:36Attachments: