Hi Calle,

Calle Snickare <[email protected]> writes:
> Is my question too hard or too trivial? I can't find any examples or info
> on the web on this. I'll try to reformulate:
>
> I want to run two different kernel functions in succession, with the same
> variables/input. They are both written in the same c-file. This is what I
> run in the host-code:
>
> kernel_1 = prg.function_1
> kernelObj_1= kernel_1(queue, globalSize, localSize, ins.data, ranluxcltab)
> kernelObj_1.wait()
>
> kernel_2 = prg.function_2
> kernelObj_2 = kernel_2(queue, globalSize, localSize, ins.data, ranluxcltab)
> kernelObj_2.wait()
>
> Is this correct? If so - I'm running out of memory faster than I expect. Is
> the same data really being used in this way, or is it duplicated?

Sorry for the long delay in responding. Yes, these arrays should share
memory. In general, it helps people help you if you pass along the error
message and the hardware and software versions (CL implementation, OS,
etc.) that you're running on.

HTH,
Andreas


_______________________________________________
PyOpenCL mailing list
[email protected]
http://lists.tiker.net/listinfo/pyopencl

Reply via email to