2 Replies Latest reply on Jul 10, 2017 2:20 AM by dipak

    clBuildProgram memory leak?

    alanbirtles

      The following loop seems to leak around 100K per iteration:

      while (true)
      {
          cl_int err;
          cl_program clprogram = clCreateProgramWithSource(clContext, 1, sources, lengths, &err);
          err = clBuildProgram(clprogram, 1, &clDevice(), "", 0, 0);
          clReleaseProgram(clprogram);
      }

       

      I'm using a R9 390 with driver 16.5.3