artpelling / state-space-renderer

Real-time renderer for state-space systems leveraging BLAS
BSD 3-Clause "New" or "Revised" License
2 stars 0 forks source link

XGEMM generates memory leak #13

Open metersquared opened 3 months ago

metersquared commented 3 months ago

Running valgrind gives the following summary:

==10461== 
==10461== HEAP SUMMARY:
==10461==     in use at exit: 13,664 bytes in 39 blocks
==10461==   total heap usage: 6,313 allocs, 6,274 frees, 1,386,576 bytes allocated
==10461== 
==10461== 160 bytes in 1 blocks are possibly lost in loss record 12 of 19
==10461==    at 0x4E050C5: malloc (vg_replace_malloc.c:442)
==10461==    by 0x4C22068: ??? (in /usr/lib/llvm-14/lib/libomp.so.5)
==10461==    by 0x4C2109A: ___kmp_allocate (in /usr/lib/llvm-14/lib/libomp.so.5)
==10461==    by 0x4CA1BE6: ??? (in /usr/lib/llvm-14/lib/libomp.so.5)
==10461==    by 0x4C4B522: ??? (in /usr/lib/llvm-14/lib/libomp.so.5)
==10461==    by 0x4C3985A: ??? (in /usr/lib/llvm-14/lib/libomp.so.5)
==10461==    by 0x4C47D88: ??? (in /usr/lib/llvm-14/lib/libomp.so.5)
==10461==    by 0x4C47D59: ??? (in /usr/lib/llvm-14/lib/libomp.so.5)
==10461==    by 0x4CCCEF1: omp_get_num_procs (in /usr/lib/llvm-14/lib/libomp.so.5)
==10461==    by 0xADEB31D: mkl_serv_get_num_stripes (in /usr/lib/x86_64-linux-gnu/libmkl_intel_thread.so)
==10461==    by 0xAECEA61: mkl_blas_dgemm (in /usr/lib/x86_64-linux-gnu/libmkl_intel_thread.so)
==10461==    by 0xE5B30F0: DGEMM (in /usr/lib/x86_64-linux-gnu/libmkl_intel_lp64.so)
==10461== 
==10461== 2,396 bytes in 1 blocks are possibly lost in loss record 18 of 19
==10461==    at 0x4E050C5: malloc (vg_replace_malloc.c:442)
==10461==    by 0x4C22068: ??? (in /usr/lib/llvm-14/lib/libomp.so.5)
==10461==    by 0x4C2109A: ___kmp_allocate (in /usr/lib/llvm-14/lib/libomp.so.5)
==10461==    by 0x4C4C557: ??? (in /usr/lib/llvm-14/lib/libomp.so.5)
==10461==    by 0x4C39546: ??? (in /usr/lib/llvm-14/lib/libomp.so.5)
==10461==    by 0x4C47D88: ??? (in /usr/lib/llvm-14/lib/libomp.so.5)
==10461==    by 0x4C47D59: ??? (in /usr/lib/llvm-14/lib/libomp.so.5)
==10461==    by 0x4CCCEF1: omp_get_num_procs (in /usr/lib/llvm-14/lib/libomp.so.5)
==10461==    by 0xADEB31D: mkl_serv_get_num_stripes (in /usr/lib/x86_64-linux-gnu/libmkl_intel_thread.so)
==10461==    by 0xAECEA61: mkl_blas_dgemm (in /usr/lib/x86_64-linux-gnu/libmkl_intel_thread.so)
==10461==    by 0xE5B30F0: DGEMM (in /usr/lib/x86_64-linux-gnu/libmkl_intel_lp64.so)
==10461==    by 0x538C40F: DGEMM (in /usr/lib/x86_64-linux-gnu/libmkl_rt.so)
==10461== 
==10461== LEAK SUMMARY:
==10461==    definitely lost: 0 bytes in 0 blocks
==10461==    indirectly lost: 0 bytes in 0 blocks
==10461==      possibly lost: 2,556 bytes in 2 blocks
==10461==    still reachable: 11,108 bytes in 37 blocks
==10461==         suppressed: 0 bytes in 0 blocks
==10461== Reachable blocks (those to which a pointer was found) are not shown.
==10461== To see them, rerun with: --leak-check=full --show-leak-kinds=all
==10461== 
==10461== For lists of detected and suppressed errors, rerun with: -s
==10461== ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 0 from 0)