Re: [PyCuda] codepy

2009-02-04 Thread Andreas Klöckner
Hey Nicholas, On Freitag 30 Januar 2009, you wrote: Attached is a slightly hacky patch for pycuda to enable reading of source c files. Currently, includes must be in the same directory... I'm not sure what the best policy is for dependencies; gcc -P -xc++ seems to fail when encountering

Re: [PyCuda] codepy

2009-02-04 Thread Andreas Klöckner
On Samstag 31 Januar 2009, Nicholas Tung wrote: Sure, no problem. Also, another question: how do I pass an offset from a DeviceAllocation to a kernel? I can't seem to pass int's where it wants pointers despite being able to cast DeviceAllocation to an int. Two ways: wrap it in a numpy.intp--a