Re: [eigen] (co-)mentoring for Google Summer of Code |
[ Thread Index | Date Index | More lists.tuxfamily.org/eigen Archives ]
On Wed, Feb 11, 2015 at 12:02 PM, Schleimer, Ben <bensch128@xxxxxxxxx> wrote:Hi Gael,I believe that once a OpenCL kernel is built, it can be reused as many times as you want. I was under the impression that the device keeps the kernel on the device memory but I could be wrong.My problem was to find a way to store the generated kernels and then be able to find them. Perhaps a static variable of a function templated by the whole _expression_ type will do. Then at the first run of an _expression_, we still have to generate the kernel source code from the _expression_ tree, uniquely name the leaves (i.e., the matrices), and compile the kernel.
Also, the C++ wrapper for the OpenCL buffer object is fairly straight forward... read data to device, run the kernel, write data from device...Sure, but if you want to avoid useless device-to-host followed host-to-device copies and keep data on the GPU when possible, then you have to ask the user to manually trigger the copies.
Mail converted by MHonArc 2.6.19+ | http://listengine.tuxfamily.org/ |