I just wanted to add Cython to the list of available options to wrap C code with Python - I've found this to work nicely in conjunction with PyCUDA.
Thanks, Ashwin On Wed, Oct 29, 2014 at 11:49 AM, Mcgibbney, Lewis J (398M) < [email protected]> wrote: > Hi Andreas, > > > It really does help. I was just not sure if it was an advised approach. > I am going to press on with a bit more confidence now and will most likely > be back here with some more cryptic context in due course. > Thank you very much for the reply. > Lewis > > > > >While I'm not sure I can speak with authority on how common this type of > >usage is, I think I can say with some confidence that Python is probably > >one of the easier language in which to pull off a coupling such as what > >you describe. In general, Python excels in the role of a 'glue' language > >coupling disparate components together. > > > >For instance, there is an existing coupling module that would let you > >talk to your IDL code and seamlessly exchange data as numpy arrays: > > > >http://www.cacr.caltech.edu/~mmckerns/pyIDL.html > > > >Python is further very easy to couple with existing C code, and perhaps > >the main 'problem' is that there are a large number of approaches > >available that you could use, ranging from 'cffi', 'swig', > >'boost.python', and many more ways of accomplishing this wrapping. > > > >Hope that helps at least a bit, > >Andreas > > > _______________________________________________ > PyCUDA mailing list > [email protected] > http://lists.tiker.net/listinfo/pycuda >
_______________________________________________ PyCUDA mailing list [email protected] http://lists.tiker.net/listinfo/pycuda
