I have a memory issue with the HD4000 GPU: I use a simple kernel that performs 2 simple operations, I run it over hundred of times (in a host loop), before each call I release all device and host buffers like this:
ret = clReleaseMemObject(bufin1_mem_obj);
ret = clReleaseMemObject(bufin2_mem_obj);
ret = clReleaseMemObject(bufout1_mem_obj);
ret = clReleaseMemObject(bufout2_mem_obj);
ret = clReleaseMemObject(debugbuf_mem_obj);
ret = clReleaseKernel(kernel);
ret = clReleaseProgram(program);
ret = clReleaseEvent(ev);
ret = clFlush(command_queue);
ret = clFinish(command_queue);
ret = clReleaseCommandQueue(command_queue);
ret = clReleaseContext(context);
the problem is, when I use the same code with an AMD GPU, I have no memory problem, but when I run it on the HD4000, I have a memory leakage after 22 kernel calls, it seems that the GPU doesn't freed memory.
is it a known issue ?