<div dir="ltr">As I said, it cannot find valgrind in your path. Remove it or install valgrind.<div><br></div><div>   Matt</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Apr 17, 2015 at 4:55 PM, Sun, Hui <span dir="ltr"><<a href="mailto:hus003@ucsd.edu" target="_blank">hus003@ucsd.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Thank you, Matt and Barry. I was trying to run the following:<br>
-@${PETSC_DIR}/bin/petscmpiexec -valgrind -n ${NP} ./test -mx ${ND} -my ${ND} -mz ${ND} -ksp_monitor_short -ksp_type fgmres -pc_type asm<br>
<br>
where NP=2, ND=32<br>
<br>
And in the makefile I have specified the following:<br>
include ${PETSC_DIR}/lib/petsc/conf/variables<br>
include ${PETSC_DIR}/lib/petsc/conf/rules<br>
include ${PETSC_DIR}/lib/petsc/conf/test<br>
<br>
Best,<br>
Hui<br>
<br>
<br>
________________________________________<br>
From: Barry Smith [<a href="mailto:bsmith@mcs.anl.gov">bsmith@mcs.anl.gov</a>]<br>
Sent: Friday, April 17, 2015 2:50 PM<br>
To: Sun, Hui<br>
Cc: <a href="mailto:petsc-users@mcs.anl.gov">petsc-users@mcs.anl.gov</a><br>
Subject: Re: [petsc-users] install petsc with valgrind<br>
<br>
  Please please please always show WHAT YOU RAN with the error message. Otherwise we just must guess<br>
<br>
<br>
> On Apr 17, 2015, at 3:58 PM, Sun, Hui <<a href="mailto:hus003@ucsd.edu">hus003@ucsd.edu</a>> wrote:<br>
><br>
> Thank you Barry. I just have it installed. And I was running a code, and got the following error message:<br>
><br>
> HYDU_create_process (utils/launch/launch.c:75): execvp error on file valgrind: (No such file or directory)<br>
><br>
> ===================================================================================<br>
> =   BAD TERMINATION OF ONE OF YOUR APPLICATION PROCESSES<br>
> =   PID 66059 RUNNING AT <a href="http://math178.ucsd.edu" target="_blank">math178.ucsd.edu</a><br>
> =   EXIT CODE: 255<br>
> =   CLEANING UP REMAINING PROCESSES<br>
> =   YOU CAN IGNORE THE BELOW CLEANUP MESSAGES<br>
> ===================================================================================<br>
><br>
> What does this mean?<br>
><br>
> Best,<br>
> Hui<br>
><br>
> ________________________________________<br>
> From: Barry Smith [<a href="mailto:bsmith@mcs.anl.gov">bsmith@mcs.anl.gov</a>]<br>
> Sent: Friday, April 17, 2015 1:08 PM<br>
> To: Sun, Hui<br>
> Cc: <a href="mailto:petsc-users@mcs.anl.gov">petsc-users@mcs.anl.gov</a><br>
> Subject: Re: [petsc-users] install petsc with valgrind<br>
><br>
>   The development copy of PETSc allows using --prefix with MPICH  <a href="http://www.mcs.anl.gov/petsc/developers/index.html" target="_blank">http://www.mcs.anl.gov/petsc/developers/index.html</a><br>
><br>
><br>
><br>
>> On Apr 17, 2015, at 2:38 PM, Sun, Hui <<a href="mailto:hus003@ucsd.edu">hus003@ucsd.edu</a>> wrote:<br>
>><br>
>> Hello,<br>
>><br>
>> I want to install petsc with valgrind. And I read some documentations, which suggests me to do<br>
>> ./configure --download-mpich --with-valgind-dir=…<br>
>><br>
>> However, I also want to specify --prefix, but petsc doesn't allow me, because --download-mpich option does not work with --prefix install.<br>
>><br>
>> Is there anyway that I can have petsc --prefix, together with valgrind?<br>
>><br>
>> Best,<br>
>> Hui<br>
><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">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</div>
</div>