<div>I am cool with removing it. It, of course, should also be configured, so it would</div>
<div>be nice to put this in petscmpiexec in a way that reads config info.</div>
<div> </div>
<div> Matt<br><br> </div>
<div><span class="gmail_quote">On 8/22/09, <b class="gmail_sendername">Dima Karpeyev</b> <<a href="mailto:karpeev@gmail.com">karpeev@gmail.com</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">I have one comment: "valgrind" sounds like a very tool-specific option.<br>Are there other memory checking tools?<br>
Maybe there should be an option like "-memcheck [valgrind]" with an optional tool name,<br>similar to "-start_in_debugger [gdb]"?<br><br>Dmitry.
<div><span class="e" id="q_12340a41f370cbfd_1"><br><br>
<div class="gmail_quote">On Fri, Aug 21, 2009 at 4:44 PM, Barry Smith <span dir="ltr"><<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:bsmith@mcs.anl.gov" target="_blank">bsmith@mcs.anl.gov</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid"><br> I noticed valgrind commands creeping into PETSc example makefiles. I believe this is a terrible model and would like to remove them.<br>
<br> I've added support for calling valgrind correctly from linux or the Mac to $PETSC_DIR/bin/petscmpiexec as an optional first argument -valgrind.<br>Thus you can call any PETSc program with valgrind using, for example, petscmpiexec -valgrind -n 2 ./ex1 -ksp_monitor<br>
<br> Now for makefile tests one can run, for example: make runex7 MPEXEC="petscmpiexec -valgrind" and it will run the runex7 test under valgrind.<br>Is this an acceptable replacement for having all the horrible redundant use of valgrind directly in the makefiles and do I have everyones permission to remove the use of valgrind from the makefiles? If not, what support do I need to add to get rid of the use of valgrind from the makefiles?<br>
<font color="#888888"><br><br> Barry<br></font></blockquote></div><br></span></div></blockquote></div><br><br clear="all"><br>-- <br>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>
-- Norbert Wiener