Thomas Wiecki <[email protected]> writes: > As this seems to be the codepy/cgen thread I thought I'd tack this on here. > > I want to port thrust code that is a little bit more involved than the sort > example. Namely the example code for summary statistics ( > http://code.google.com/p/thrust/source/browse/examples/summary_statistics.cu > ) > > I think I would be able to port all of this using the appropriate cgens > (e.g. Struct, Template) with some tinkering. However, I wonder if it is > really necessary to port everything. Is it possible to wrap only the parts > I need access to and include the others as one big string. > > I suppose alternatively I could compute the summary stats quite easily with > gpuarray as well. Is there likely to be a performance difference? It seems > that that would be easier.
PyCUDA's gpuarray reduction can do the same thing, and will likely be much easier to get going. Currently, it seems that PyCUDA's reduction is about 3x slower on structs, but I haven't yet figured out why. I'd appreciate help with that, though. Andreas _______________________________________________ PyCUDA mailing list [email protected] http://lists.tiker.net/listinfo/pycuda
