Got it from struct module documentation and http://wiki.tiker.net/PyCuda/FrequentlyAskedQuestions
Pointers (to anything - single integers/float/double, arrays) should be "P" integer is " i ", float is " f ", double is " d ", ... The example I asked about should then have "PPPi". Thanks! Ananth On Sun, Apr 19, 2015 at 12:23 PM, Andreas Kloeckner <li...@informa.tiker.net > wrote: > Ananth Sridharan <ana...@umd.edu> writes: > > > Can someone shed some light on the arguments for the "prepare" used by > > pycuda? I have been unable to find a set of examples to help understand > > what the arguments are supposed to look like. > > > > On the official website, > > http://documen.tician.de/pycuda/tutorial.html?highlight=prepare > > what does the argument "P" stand for? In another example, I found someone > > using "PiPi" - what is the prepare statement supposed to be for, say, a > > kernel that looks like this.. > > > > __global__ dosomething(float *a, double *b, float *c, int nmax) > > > > is it supposed to be func.prepare("fdfi"), or did I not understand the > > concept correctly? > > This page defines the format: > > https://docs.python.org/2/library/struct.html > > Andreas
_______________________________________________ PyCUDA mailing list PyCUDA@tiker.net http://lists.tiker.net/listinfo/pycuda