Here is the example file I'm testing from the MKL installation
Can you provide a link? I went to this site, downloaded the users guide, and searched for "Avoiding Memory Leaks in MKL" but got no results....NEVERMIND, I found it. I had to search memory leaks, pg 61. I'll read it over and follow up if need be.
Thank you Gennady. I read the section of the user guide you pointed to (quoted below), and checked this link on further usage of "mkl_free_buffers". In the end, adding "mkl_free_buffers();" to the end of program fixed the issue. Valgrind "found no problems to report".
Avoiding Memory Leaks in Intel MKLWhen running, Intel MKL allocates and deallocates internal buffers to facilitate better performance. However,in some cases this behavior may result in memory leaks.To avoid memory leaks, you can do either of the following:•Set theMKL_DISABLE_FAST_MMenvironment variable to 1 or call themkl_disable_fast_mm()function.Be aware that this change may negatively impact performance of some Intel MKL functions, especially forsmall problem sizes.•Call themkl_free_buffers()function or themkl_thread_free_buffers()function in the currentthread.For the descriptions of the memory functions, see the Intel MKL Reference Manual, available in the IntelSoftware Documentation Library.