[petsc-users] Optimized Option

Matthew Knepley knepley at gmail.com
Fri Jun 3 15:02:32 CDT 2011


On Fri, Jun 3, 2011 at 2:57 PM, Alan Wei <zhenglun.wei at gmail.com> wrote:

> Dear Sir/Madam,
>     Lately, I read there is a optimized version of PETSc by using
> '--with-debugging=0'. I have two questions here:
> 1, Do I need to use '/config/configure.py ... --with-debugging=0' when I
> configure the PETSc in order to use the non-debugging version of PETSc?
> Therefore, if I want to switch PETSc between these two versions, I have to
> keep configuring.
>

Configure makes a directory with all the information in it (including
libraries) for that particular configuration. You set the PETSC_ARCH env var
to that string (e.g. linxu-gnu-c-debug)
when you want to use a particular configuration.


> 2, I was using the '--with-debugging=0' to configure the PETSc. However, I
> tested the computational rate by executing the ex29.c. The non-debugging
> version does not improve the speed much; in the contrary, it slow down the
> speed a little bit. The comparison is attached here. Any idea on this.
>

The only way we can help on performance questions is to see the output of
-log_summary.

   Matt


> thanks in advance,
> Alan
>
>


-- 
What most experimenters take for granted before they begin their experiments
is infinitely more interesting than any results to which their experiments
lead.
-- Norbert Wiener
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20110603/acfc10ba/attachment.htm>


More information about the petsc-users mailing list