Shot in the dark: Anyone ever use CLAPACK routines?

Kevin D. Clark kevin_d_clark at comcast.net
Wed May 19 15:12:11 EDT 2010


Bruce Labitt writes:

> If anyone has a few spare moments, I'd appreciate a quick look and any 
> helpful comments you may have.  FWIW, I used valgrind and saw that even 
> when I got the correct answer, there were tons of warnings and errors 
> reported.  (These errors were DEEP inside of the CLAPACK library.)

All of your code allocates space for your matrix arrays on the stack.
There is nothing wrong with this {per se}, but Valgrind is a heap
analysis tool.  The stack is not the heap.  If you want to use
Valgrind to gain some confidence that the matricies/arrays that you
are using are not being accessed incorrectly, then you will have to
allocate space for your arrays/matricies on the *heap*.

--kevin
-- 
alumni.unh.edu!kdc / http://kdc-blog.blogspot.com/
GnuPG: D87F DAD6 0291 289C EB1E 781C 9BF8 A7D8 B280 F24E

 Wipe him down with gasoline 'til his arms are hard and mean
 From now on boys this iron boat's your home
 So heave away, boys.
   -- Tom Waits


More information about the gnhlug-discuss mailing list