On Thu, 17 Nov 2011 17:19:17 -0500, Andreas Kloeckner <li...@informa.tiker.net> 
wrote:
> On Thu, 17 Nov 2011 22:44:47 +1300, Igor <rych...@gmail.com> wrote:
> > Andreas,
> > Ryan,
> > 
> > How did you decide about the Modified Reduction.py that Ryan published
> > here: http://lists.tiker.net/pipermail/pycuda/2011-June/003196.html
> > 
> > It promises to do exactly what I want, yet I'm not sure it was
> > committed or can still be applied as a patch to the more recent
> > release of PyCUDA ReductionKernel. I tried anyway and got compilation
> > problems from nvcc, identifier "x" is undefined,
> > 
> > maxloc = ReductionKernel(dtype_out=numpy.int32, neutral="0",
> > reduce_expr="(x[(int)a] > x[(int)b]) ? (int)a : (int)b", map_expr="i",
> > arguments="float *x")
> 
> What I'd like to do is to allow registration of custom dtypes so that
> dtype_to_ctype knows what C type names to spit out. This shouldn't be
> much work and will have the benefit of working across all PyCUDA
> routines. I'll try to give it a shot tonight.

There's now also this:

http://documen.tician.de/pycuda/array.html#pycuda.scan.pycuda.tools.register_dtype

which makes this here possible:

https://github.com/inducer/pycuda/blob/master/test/test_gpuarray.py#L764

Andreas

Attachment: pgpjWhFgNdRib.pgp
Description: PGP signature

_______________________________________________
PyCUDA mailing list
PyCUDA@tiker.net
http://lists.tiker.net/listinfo/pycuda

Reply via email to