gpu / JOCL

Java bindings for OpenCL
http://www.jocl.org
Other
187 stars 33 forks source link

Please provide an example on how to correctly call a kernel multiple times so memory is not copied all the time #11

Open stepan-romankov opened 8 years ago

gpu commented 8 years ago

Can you elaborate this?

You can call clEnqueueNDRangeKernel multiple times, of course. (It will always do the same thing, unless you set different kernel arguments, or unless you read or write memory between the calls, but that should be clear).

Which memory are you referring to here?