<#part sign=pgpmime> On Sun, 25 Mar 2012 22:01:52 -0300, Ezequiel Alfíe <[email protected]> wrote: > Hello, > > I know that pycuda currently supports 1d and 2d grids only. > > I read a previous post on that topic > http://www.mail-archive.com/[email protected]/msg02448.html > > What is the "new style launch interface"?
cuLaunchKernel http://goo.gl/fHIjM "old style" is cuLaunchGrid, cuLaunch > Any pointers on what changes should I do in order to support 3d grids? - First, expose cuLaunchKernel to Python. I'd prefer that as _launch_kernel (with the leading underscore, this will be a private interface in Python). #ifdef this to only be enabled on CUDA 4 and higher. - Then, hack pycuda/driver.py to make Function.__call__ and the .prepared*() functions target _launch_kernel when run on CUDA 4.0 or higher. Do this by setting the Function methods depending on the CUDA version. That way, the check for CUDA 4.0 happens once and does not incur extra invocation overhead. That should do the trick and keep us backward compatible as much as possible. Good luck, and let me know if you need further help. Andreas _______________________________________________ PyCUDA mailing list [email protected] http://lists.tiker.net/listinfo/pycuda
