Intel® oneAPI Math Kernel Library
Ask questions and share information with other developers who use Intel® Math Kernel Library.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

MKL: PARDISO: memory leak, default settings

Perpf2000
Beginner
908 Views
Hi!
Using MKL-PARDISO I experience all sorts of memory leaks; I traced these down to being calls to _mkl_pds_gepmetis_pardiso(), which in turn causes the _heap_alloc_dbg() to allocate the memory in question a few calls down. In total I have four memory leaks. I'm using mtype=6 (complex, symmetric).
On a different thread I read there were issues with memory leaks in pardiso before, but it was stated these problems should be fixed in 10.1. release...
Anything I can do to fix these leaks?

thanks,
0 Kudos
2 Replies
Perpf2000
Beginner
908 Views
Quoting - Perpf2000
Hi!
Using MKL-PARDISO I experience all sorts of memory leaks; I traced these down to being calls to _mkl_pds_gepmetis_pardiso(), which in turn causes the _heap_alloc_dbg() to allocate the memory in question a few calls down. In total I have four memory leaks. I'm using mtype=6 (complex, symmetric).
On a different thread I read there were issues with memory leaks in pardiso before, but it was stated these problems should be fixed in 10.1. release...
Anything I can do to fix these leaks?

thanks,


... found a hint on a different thread: MKL_Free_Buffers() does the trick!
Maybe it would be a good idea to place a note in the appropriate chapters of the manual (i.e. page 2512) and/or add this call to the example-code (i.e. Example C7. pardiso_sym.c)?

thanks,
0 Kudos
ArturGuzik
Valued Contributor I
908 Views
Quoting - Perpf2000
... found a hint on a different thread: MKL_Free_Buffers() does the trick!
Maybe it would be a good idea to place a note in the appropriate chapters of the manual (i.e. page 2512) and/or add this call to the example-code (i.e. Example C7. pardiso_sym.c)?

thanks,

There is a whole section Using Intel MKL Memory Management in user's Guide (page 6-17) in Managing Performance and Memory Chapter.

Call at the end..., well, the program terminates so memory is anyway deallocated. Sure it would be educational but then .... you're assumed to read .. manual before trying samples:-)

A.
0 Kudos
Reply