cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

alanbirtles
Journeyman III

clBuildProgram memory leak?

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

0 Likes
2 Replies
dipak
Big Boss

Hi Alan,

Thanks for reporting the memory leak problem. I'm able to reproduce it and I've reported the same to the concerned team. As I get any update, I'll share with you.

Regards,

0 Likes
dipak
Big Boss

Update:

The issue has been resolved and the fix is already there in the latest drivers.

Regards,

0 Likes