– Re: Global Memory - Temporary CLBuffer in device memory
In Reply To
to speed it up you might consider using events instead of finish to decouple the app thread from the queue.
you are enqueueing a writeBuffer command in the second step. This will write the contents from host memory to device memory, overwriting your temp results. (NIO -> CL). Try using finish without this command again and it should work.