Re: [PyCUDA] Sum along axis of GPUarray?

2015-05-21 Thread Andreas Kloeckner
Luke Pfister lpfis...@illinois.edu writes: Is there a suggested way to do the equivalent of np.sum along a particular axis for a high-dimensional GPUarray? I saw that this was discussed in 2009, before GPUarrays carried stride information. Hand-writing a kernel is probably still your best

Re: [PyCUDA] Sum along axis of GPUarray?

2015-05-21 Thread Jerome Kieffer
On Thu, 21 May 2015 07:59:35 -0400 Andreas Kloeckner li...@weasel.tiker.net wrote: Luke Pfister lpfis...@illinois.edu writes: Is there a suggested way to do the equivalent of np.sum along a particular axis for a high-dimensional GPUarray? I saw that this was discussed in 2009, before

Re: [PyCUDA] Sum along axis of GPUarray?

2015-05-21 Thread Andreas Kloeckner
Jerome Kieffer jerome.kief...@esrf.fr writes: On Thu, 21 May 2015 07:59:35 -0400 Andreas Kloeckner li...@weasel.tiker.net wrote: Luke Pfister lpfis...@illinois.edu writes: Is there a suggested way to do the equivalent of np.sum along a particular axis for a high-dimensional GPUarray?