AnsweredAssumed Answered

can I have two cl_mem point to the same memory?

Question asked by shingoxlf on May 26, 2012
Latest reply on May 27, 2012 by nou

for example:

cl_mem a=clCreateBuffer(clGPUContext, CL_MEM_READ_WRITE, sizeof(double)*100, NULL, &errcode);

errcode = clEnqueueWriteBuffer(clCommandQue, a, CL_FALSE, 0, sizeof(double)*100, temp, 0, NULL, NULL);

cl_mem b=a;


I got error by doing this.