How to transfer cl_mem from a kernel to another

Discussion created by spectral on Jul 22, 2011
Latest reply on Jul 25, 2011 by spectral


I have a first kernel that use and modify the values in a cl_mem and I would like to use this 'modified' buffer in another kernel.

1 - Must I resend the cl_mem ?

2 - If yes, how ?

In fact, for now I have try to only reference the same buffer but It failed !