[petsc-users] 回复: ?????? out of date warning when petscmpiexec.

Syvshc syvshc at foxmail.com
Thu Dec 15 20:08:11 CST 2022


That's the solution, Thank you very much.


Syvshc




------------------ 原始邮件 ------------------
发件人:                                                                                                                        "petsc-users"                                                                                    <balay at mcs.anl.gov>;
发送时间: 2022年12月16日(星期五) 凌晨2:30
收件人: "Syvshc"<syvshc at foxmail.com>;
抄送: "petsc-users"<petsc-users at mcs.anl.gov>;
主题: Re: [petsc-users] ??????  out of date warning when petscmpiexec.



Ok - so for whatever reason your petsc build  were indeed out of date - and "make -f gmakefile libs" updated the library.

Wrt out-of-date executable message - I think its due to the old formatted makefile.

You can do the following:

- edit  p4pdes/c/ch1/makefile
- remove the line: '	${RM} e.o'
- run 'make e'

Now retry:

petscmpiexec -n 1 ./e

Satish

On Fri, 16 Dec 2022, Syvshc wrote:

> I got lots of build information,&nbsp;
> and after "make -f gmakefile libs", the out of date warning of petscmpiexec was gone.&nbsp;
> 
> 
> ?7?9 petscmpiexec -n 1 ./e
> Warning: ************** The executable ./e is out of date
> e is about 1.000000000000000
> rank 0 did 0 flops
> 
> 
> 
> BTW, if I want to know something of the "executable out of date" question,&nbsp;
> should I send a new mail or I can just ask under these mails?
> 
> 
> Thanks for your help sincerely.
> 
> 
> Syvshc
> 
> 
> 
> 
> ------------------&nbsp;????????&nbsp;------------------
> ??????:                                                                                                                        "petsc-users"                                                                                    <balay at mcs.anl.gov&gt;;
> ????????:&nbsp;2022??12??16??(??????) ????2:11
> ??????:&nbsp;"Syvshc"<syvshc at foxmail.com&gt;;
> ????:&nbsp;"petsc-users"<petsc-users at mcs.anl.gov&gt;;
> ????:&nbsp;Re: [petsc-users] out of date warning when petscmpiexec.
> 
> 
> 
> &gt; make -q -f gmakefile libs
> &gt; echo $?
> &gt; 1
> 
> So "make" does think the library is out-of-date. If up-to-date - you should see a '0' - not '1'. One more try:
> 
> what do you get for:
> 
> cd $PETSC_DIR
> make -f gmakefile libs&nbsp; # i.e without -q
> 
> Satish
> 
> On Fri, 16 Dec 2022, Syvshc wrote:
> 
> &gt; I still get this warning, I found that "make -q" command won't get any respond.
> &gt; 
> &gt; 
> &gt; Here is the whole output:
> &gt; 
> &gt; 
> &gt; ?7?9 cd $PETSC_DIR
> &gt; make -q -f gmakefile libs
> &gt; echo $?
> &gt; cd ~/git/p4pdes/c/ch1
> &gt; make -q e
> &gt; echo $?
> &gt; petscmpiexec -n 1 ./e
> &gt; make clean
> &gt; make e
> &gt; make -q e
> &gt; echo $?
> &gt; petscmpiexec -n 1 ./e
> &gt; 1
> &gt; 1
> &gt; Warning: ************** The PETSc libraries are out of date
> &gt; Warning: ************** The executable ./e is out of date
> &gt; e is about 1.000000000000000
> &gt; rank 0 did 0 flops
> &gt; mpicc -o e.o -c -fPIC -Wall -Wwrite-strings -Wno-unknown-pragmas -Wno-lto-type-mismatch -Wno-stringop-overflow -fstack-protector -fvisibility=hidden -g3 -O0 -pedantic -std=c99 -I/home/syvshclily/git/petsc/petsc-latest/include -I/home/syvshclily/git/petsc/petsc-latest/arch-linux-c-debug/include&amp;nbsp; &amp;nbsp; `pwd`/e.c
> &gt; mpicc -fPIC -Wall -Wwrite-strings -Wno-unknown-pragmas -Wno-lto-type-mismatch -Wno-stringop-overflow -fstack-protector -fvisibility=hidden -g3 -O0 -pedantic -std=c99 -o e e.o&amp;nbsp; -Wl,-rpath,/home/syvshclily/git/petsc/petsc-latest/arch-linux-c-debug/lib -L/home/syvshclily/git/petsc/petsc-latest/arch-linux-c-debug/lib -Wl,-rpath,/home/syvshclily/git/petsc/petsc-latest/arch-linux-c-debug/lib -L/home/syvshclily/git/petsc/petsc-latest/arch-linux-c-debug/lib -Wl,-rpath,/usr/lib/gcc/x86_64-pc-linux-gnu/12.2.0 -L/usr/lib/gcc/x86_64-pc-linux-gnu/12.2.0 -lpetsc -lsuperlu_dist -llapack -lblas -lm -lX11 -lstdc++ -ldl -lmpi_usempif08 -lmpi_usempi_ignore_tkr -lmpi_mpifh -lmpi -lgfortran -lm -lgfortran -lm -lgcc_s -lquadmath -lstdc++ -ldl
> &gt; /usr/sbin/rm -f e.o
> &gt; 1
> &gt; Warning: ************** The PETSc libraries are out of date
> &gt; Warning: ************** The executable ./e is out of date
> &gt; e is about 1.000000000000000
> &gt; rank 0 did 0 flops
> &gt; 
> &gt; 
> &gt; 
> &gt; Thanks for your reply.&amp;nbsp;
> &gt; 
> &gt; 
> &gt; Syvshc
> &gt; 
> &gt; 
> &gt; 
> &gt; 
> &gt; ------------------&amp;nbsp;Original&amp;nbsp;------------------
> &gt; From:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "petsc-users"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <balay at mcs.anl.gov&amp;gt;;
> &gt; Date:&amp;nbsp;Fri, Dec 16, 2022 01:40 AM
> &gt; To:&amp;nbsp;"Syvshc"<syvshc at foxmail.com&amp;gt;;
> &gt; Cc:&amp;nbsp;"petsc-users"<petsc-users at mcs.anl.gov&amp;gt;;
> &gt; Subject:&amp;nbsp;Re: [petsc-users] out of date warning when petscmpiexec.
> &gt; 
> &gt; 
> &gt; 
> &gt; That's strange. Do you still get this warning from petscmpiexec?
> &gt; 
> &gt; Can you run these commands - and copy/paste the *complete* session from your terminal [for these commands and their output on terminal] ?
> &gt; 
> &gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
> &gt; cd $PETSC_DIR
> &gt; make -q -f gmakefile libs
> &gt; echo $?
> &gt; cd bueler/p4pdes
> &gt; make -q e
> &gt; echo $?
> &gt; petscmpiexec -n 1 ./e
> &gt; make clean
> &gt; make e
> &gt; make -q e
> &gt; echo $?
> &gt; petscmpiexec -n 1 ./e
> &gt; <<<<
> &gt; 
> &gt; Alternatively you can just use mpiexec [ i.e not use petscmpiexec - its just a convenience wrapper over using correct mpiexec/valgrind].
> &gt; 
> &gt; Satish
> &gt; 
> &gt; On Fri, 16 Dec 2022, Syvshc wrote:
> &gt; 
> &gt; &amp;gt; I run this command in the root dir of my petsc, and didn't get any response.
> &gt; &amp;gt; 
> &gt; &amp;gt; 
> &gt; &amp;gt; 
> &gt; &amp;gt; 
> &gt; &amp;gt; ------------------&amp;amp;nbsp;Original&amp;amp;nbsp;------------------
> &gt; &amp;gt; From:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "petsc-users"&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; <balay at mcs.anl.gov&amp;amp;gt;;
> &gt; &amp;gt; Date:&amp;amp;nbsp;Thu, Dec 15, 2022 10:19 PM
> &gt; &amp;gt; To:&amp;amp;nbsp;"Syvshc"<syvshc at foxmail.com&amp;amp;gt;;
> &gt; &amp;gt; Cc:&amp;amp;nbsp;"petsc-users"<petsc-users at mcs.anl.gov&amp;amp;gt;;
> &gt; &amp;gt; Subject:&amp;amp;nbsp;Re: [petsc-users] out of date warning when petscmpiexec.
> &gt; &amp;gt; 
> &gt; &amp;gt; 
> &gt; &amp;gt; 
> &gt; &amp;gt; What do you get - if you invoke the following command in petsc source dir?
> &gt; &amp;gt; 
> &gt; &amp;gt; make -q -f gmakefile libs
> &gt; &amp;gt; 
> &gt; &amp;gt; [this is the test petscmpiexec is using to check if "libraries are out of date"]
> &gt; &amp;gt; 
> &gt; &amp;gt; Satish
> &gt; &amp;gt; 
> &gt; &amp;gt; On Thu, 15 Dec 2022, Syvshc wrote:
> &gt; &amp;gt; 
> &gt; &amp;gt; &amp;amp;gt; I'm a beginner with petsc, and I'm reading&amp;amp;amp;nbsp;PETSc for Partial Differential Equations.&amp;amp;amp;nbsp;
> &gt; &amp;gt; &amp;amp;gt; 
> &gt; &amp;gt; &amp;amp;gt; There is the newest release version (3.18.2) of PETSc's gitlab repo on my device, and openmpi in my system (/usr/sbin/).&amp;amp;amp;nbsp;
> &gt; &amp;gt; &amp;amp;gt; 
> &gt; &amp;gt; &amp;amp;gt; 
> &gt; &amp;gt; &amp;amp;gt; Here is the repo and what I tried to compiling.&amp;amp;amp;nbsp;p4pdes/e.c at master ?? bueler/p4pdes (github.com)
> &gt; &amp;gt; &amp;amp;gt; 
> &gt; &amp;gt; &amp;amp;gt; 
> &gt; &amp;gt; &amp;amp;gt; After "make e", I got an excutable file "e". "./e" or "mpiexec -n 4 ./e" can perfectly run.&amp;amp;amp;nbsp;
> &gt; &amp;gt; &amp;amp;gt; 
> &gt; &amp;gt; &amp;amp;gt; 
> &gt; &amp;gt; &amp;amp;gt; However when I use "petscmpiexec -n 4 ./e", I got some warnings:
> &gt; &amp;gt; &amp;amp;gt; 
> &gt; &amp;gt; &amp;amp;gt; 
> &gt; &amp;gt; &amp;amp;gt; Warning: ************** The PETSc libraries are out of date
> &gt; &amp;gt; &amp;amp;gt; Warning: ************** The executable ./e is out of date
> &gt; &amp;gt; &amp;amp;gt; 
> &gt; &amp;gt; &amp;amp;gt; 
> &gt; &amp;gt; &amp;amp;gt; What should I do to fix the warning?
> &gt; &amp;gt; &amp;amp;gt; 
> &gt; &amp;gt; &amp;amp;gt; 
> &gt; &amp;gt; &amp;amp;gt; Also this is the first time that I send to a mail-list, if there are some mistakes I made, please tell me.&amp;amp;amp;nbsp;
> &gt; &amp;gt; &amp;amp;gt; 
> &gt; &amp;gt; &amp;amp;gt; 
> &gt; &amp;gt; &amp;amp;gt; Kind regards,
> &gt; &amp;gt; &amp;amp;gt; 
> &gt; &amp;gt; &amp;amp;gt; 
> &gt; &amp;gt; &amp;amp;gt; Syvshc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20221216/be3c3b68/attachment-0001.html>


More information about the petsc-users mailing list