Hi Igor,
On Thu, 24 May 2012 10:51:55 +1200, Igor <rychphd(a)gmail.com> wrote:
Andreas, thanks, but it currently implies Linux,
I'll see if I can
make it work on Windows. Or maybe I'll submit and someone will try it
on Windows. I just need to extract it from Sage into a plain Python
script. Give me a couple of days.
http://dev.math.canterbury.ac.nz/home/pub/14/
http://dev.math.canterbury.ac.nz/home/pub/19/
I would actually suggest you use the codepy machinery to let nvcc do the
compilation--this has the advantage that a) there is code out there that
makes this work on Windows (Bryan?) and b) you get compiler caching for
free.
All you'd need to do is build an analog of extension_from_string, say
ctypes_dll_from_string. Just imitate this code here, where
compile_from_string does all the hard work:
https://github.com/inducer/codepy/blob/master/codepy/jit.py#L146
In any case, even if you can make something that's Linux-only, it would
likely help a big bunch of people. Windows support can always be added
later.
Andreas