3 Replies Latest reply on May 27, 2012 4:28 PM by nou

    can I have two cl_mem point to the same memory?

    shingoxlf

      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.