[PyCUDA] non-contiguous array support

2018-02-23 Thread Syam Gadde
Sorry if this comes through multiple times, I've been having problems posting from an email alias. Andreas suggested I mail the mailing list and solicit comments here. I submitted a pull request that adapts the element-wise kernels to support non-contiguous arrays (including negative-strided

Re: [PyCUDA] How can I emulated numpy-style index arrays?

2018-07-24 Thread Syam Gadde
Could you use gpuarray.take()? There is also apparently an undocumented multi_take(), but I don't know how it works. If you absolutely need the slicing syntax, it probably wouldn't be hard to modify __getitem__ to use take/multi_take. -syam From: PyCUDA

Re: [PyCUDA] PyCUDA PyPy compatibility

2018-02-26 Thread Syam Gadde
Speaking only to the last patch, I think it would make the tests Cython-compatible too. I experienced that same issue where 'import py.test.cmdline' failed, maybe because cmdline was not a module? -syam From: PyCUDA on behalf of