[petsc-users] valgrind and petsc

Michael Povolotskyi mpovolot at purdue.edu
Wed Jul 17 14:32:12 CDT 2013


Thank you!
This very helpful information.
Michael.


On 07/17/2013 03:31 PM, Barry Smith wrote:
> On Jul 17, 2013, at 2:26 PM, Michael Povolotskyi <mpovolot at purdue.edu> wrote:
>
>> Hello,
>> at some point the configuration script prints a warning that valgrind is not found in the system.
>> Is petsc going to link some valgrind related libraries if valgrind is installed?
>     PETSc does not link any valgrind libraries, but if valgrind.h is found PETSc does include it and use it to determine if valgrind is running (when PETSc is run under valgrind we turn off all the PETSc memory error detection so that valgrinds will find any problems and not get confused by our own memory checking).  For C and C++ programming valgrind is an enormously powerful tool, taking seconds to find memory bugs that manually would take hours by experts; unless you are one of the few who never put bugs into code we highly recommend installing it and learning a little about it.
>
>     Barry
>
>
>> Thank you,
>> Michael.
>>
>> -- 
>> Michael Povolotskyi, PhD
>> Research Assistant Professor
>> Network for Computational Nanotechnology
>> 207 S Martin Jischke Drive
>> Purdue University, DLR, room 441-10
>> West Lafayette, Indiana 47907
>>
>> phone: +1-765-494-9396
>> fax: +1-765-496-6026
>>



More information about the petsc-users mailing list