[petsc-users] Two variants of PETSc, debugging on and off

Jed Brown jed at jedbrown.org
Fri Jan 23 17:41:47 CST 2015


Luc Berger-Vergiat <lb2653 at columbia.edu> writes:

> Configure once with $PETSC_ARCH=arch-dbg,  --with-debugging=1 and once 
> with $PETSC_ARCH=arch-opt, --with-debugging=0
>
> Then you can switch environment variables approprately

Note: the environment variables have to influence the way your program
is linked.  You can't just change PETSC_ARCH at run-time.  But we
provide the same binary interface (ABI) in debug and optimized mode, so
(if you know what you're doing) you can LD_PRELOAD the desired
implementation at run-time.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 818 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20150123/74c0dfdf/attachment.pgp>


More information about the petsc-users mailing list