Hi Andreas, Unfortunately, it does not quite work. The script from my first message gives the following error:
Traceback (most recent call last): File "t.py", line 34, in <module> get_second(dest, pair, block=(400,1,1), grid=(1,1)) File "/Users/bogdan/.pyenv/versions/3.4.0/lib/python3.4/site-packages/pycuda/driver.py", line 365, in function_call handlers, arg_buf = _build_arg_buf(args) File "/Users/bogdan/.pyenv/versions/3.4.0/lib/python3.4/site-packages/pycuda/driver.py", line 147, in _build_arg_buf return handlers, pack(format, *arg_data) struct.error: bad char in struct format On Tue, May 27, 2014 at 2:45 PM, Andreas Kloeckner <li...@informa.tiker.net> wrote: > Hi Bogdan, > > Bogdan Opanchuk <manti...@gmail.com> writes: >> Thank you for the correction. Just curious, how come in PyOpenCL it >> works with rank-0 numpy arrays (which, in my opinion, is more >> intuitive than implicitly casting a rank-1 array to a scalar)? Is it >> just a difference between PyCUDA and PyOpenCL, or a limitation of CUDA >> itself? > > I think I've patched this in git. Can you please give this a try and > report back? > > Thanks! > Andreas _______________________________________________ PyCUDA mailing list PyCUDA@tiker.net http://lists.tiker.net/listinfo/pycuda