how to free PLASMA_desc

Open forum for general discussions relating to PLASMA.

how to free PLASMA_desc

Postby pluto1234 » Fri Nov 29, 2013 2:09 pm

Hello all,

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


Posts: 1
Joined: Fri Nov 29, 2013 1:57 pm

Return to User discussion

Who is online

Users browsing this forum: No registered users and 0 guests