Re: [PyCUDA] ElementWise kernel only operates on half of the array: Bug?

2011-06-30 Thread Andrew Stromme
Hi, I'm new here but I'd like to weigh in a bit. My suggestion would be to make the connection between python types and numpy types and cuda types very clear in the documentation. There is some good information on there but I think it's kind of hidden. I would definitely appreciate some best

Re: [PyCUDA] ElementWise kernel only operates on half of the array: Bug?

2011-06-30 Thread Thomas Wiecki
On Thu, Jun 30, 2011 at 12:02 AM, Andreas Kloeckner li...@informa.tiker.net wrote: On Wed, 29 Jun 2011 15:21:13 -0400, Thomas Wiecki thomas_wie...@brown.edu wrote: As regards to parameter input checking, would it be possible to have a switch for type-checking as an argument to ElementWise?

[PyCUDA] ElementWise kernel only operates on half of the array: Bug?

2011-06-29 Thread Thomas Wiecki
This is with the version from the trunk (7804dc6d1b40b506b02a5f7a0b7bde8771f1446c). import pycuda.driver as cuda import pycuda.compiler import pycuda.autoinit import pycuda.gpuarray as gpuarray from pycuda.elementwise import ElementwiseKernel zero_kernel = ElementwiseKernel( float *out,

Re: [PyCUDA] ElementWise kernel only operates on half of the array: Bug?

2011-06-29 Thread Andreas Kloeckner
On Wed, 29 Jun 2011 12:56:09 -0400, Thomas Wiecki thomas_wie...@brown.edu wrote: This is with the version from the trunk (7804dc6d1b40b506b02a5f7a0b7bde8771f1446c). import pycuda.driver as cuda import pycuda.compiler import pycuda.autoinit import pycuda.gpuarray as gpuarray from

Re: [PyCUDA] ElementWise kernel only operates on half of the array: Bug?

2011-06-29 Thread Thomas Wiecki
Yes, that was indeed the problem. Works really nice now, getting speed ups of up to ~5x. As regards to parameter input checking, would it be possible to have a switch for type-checking as an argument to ElementWise? Thanks, Thomas On Wed, Jun 29, 2011 at 3:13 PM, Andreas Kloeckner

Re: [PyCUDA] ElementWise kernel only operates on half of the array: Bug?

2011-06-29 Thread Andreas Kloeckner
On Wed, 29 Jun 2011 15:21:13 -0400, Thomas Wiecki thomas_wie...@brown.edu wrote: Yes, that was indeed the problem. Works really nice now, getting speed ups of up to ~5x. As regards to parameter input checking, would it be possible to have a switch for type-checking as an argument to