I downloaded plasma 2.5.2 and compiled it. Using the example_dgesv.c file I wrote an own c++ test program that calls dgesv many times, as this is the way I want to use plasma. My matrix was of size 3000x3000. Monitoring the memory usage I saw that my program was having a memory leak.
Later I discovered that calling free(L), in which L is a PLASMA_desc pointer, was not enough to free the memory. What I did was adding
and now I got rid of my memory leak.
I was wondering if there is an error in the example code, or that I am doing something wrong ? By the way I used gnu g++ 4.6