[petsc-users] Obtaining compiling and building information from a.out

Dave May dave.mayhem23 at gmail.com
Tue Mar 27 04:22:19 CDT 2018

On 27 March 2018 at 10:16, TAY wee-beng <zonexo at gmail.com> wrote:

> Hi,
> I have been compiling and building different version of my CFD with the
> intel 2016, 2018 compilers, and also different compiling options.
> I tested a version of my a.out and it is much faster than the other a.out,
> using only 3 min instead of more than 10min to solve a certain case using
> However, I can't recall how it was compiled. I only know that I used the
> intel 2016 compiler.
> So is there any way I can find out how the a.out was compiled? Like what
> options were used?

Since you posted to the list I presume "a.out" links against petsc...
If so, run your code with

Upon calling PetscFinalize(), you will get all the options given to PETSc
configure, plus the CFLAGS, link lines, etc.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20180327/95b3d634/attachment-0001.html>

More information about the petsc-users mailing list