From: John V. S. <js...@gm...> - 2010-03-23 07:23:22
|
Riyadh wrote: > Now I'll need to transform all data to an array of tuples, After reading > about the design of TupleData and TupleDatum, my question is : > - in ReshapeExecStream::Execute() > I have a pInAccessor > object of type ExecStreamBufAccessor > I need to tranform this pInAccessor to a big array of all the tuples and > then send this big array to GPU so that the kernel can start working, > since I'll use one big array then all tuples should be contigoues, > I need to read tuples one by one and marshall each tuple and store it in > the array, > is there a function that reads and returns a tuple from the pInAcessor ? > (to avoid problem I'll work initially on fixed size tuples and then i'll > generalize) Well, ExecStreamBufAccessor is already accessing a contiguous array of tuples, so if you want to deal with them in their original format, you can just call the pInAccessor->spanWholeTuples method and then copy out a chunk of tuples to the GPU (then call consumeData to advance). > - What is the main file of the second XO (FennelAggRel) ? I don't find > it, is it AggComputer.cpp ? SortedAggExecStream (which does use AggComputer as a helper). JVS |