Hello Andreas, On Sat, Jun 25, 2011 at 2:45 AM, Andreas Kloeckner <[email protected]> wrote: > In fact, can you point me to your version of this? (Is it in pyfft?) > This would already be a good starting point that I might simply throw > into compyte once the 2011.1 releases are out of the way. (Probably > tomorrow)
Yes, one of the versions is in pyfft. First part is Cuda/CL defines which I used in kernels and they sit in the beginning of kernel.mako [1]. Second part — Python classes — is used for tests only and is located in helpers.py [2] (CLContext, CudaContext). Second version is in my beclab project (BEC simulations). As with pyfft, there are two parts — defines in header.mako [3] and context wrappers in cl.py [4] and cuda.py [5]. [1] https://github.com/Manticore/pyfft/blob/master/pyfft/kernel.mako [2] https://github.com/Manticore/pyfft/blob/master/test/helpers.py [3] https://github.com/Manticore/beclab/blob/master/beclab/helpers/header.mako [4] https://github.com/Manticore/beclab/blob/master/beclab/helpers/cl.py [5] https://github.com/Manticore/beclab/blob/master/beclab/helpers/cuda.py Best regards, Bogdan _______________________________________________ PyOpenCL mailing list [email protected] http://lists.tiker.net/listinfo/pyopencl
