[petsc-users] Difference between opt and debug
Matthew Knepley
knepley at gmail.com
Thu Mar 16 07:51:13 CDT 2023
On Thu, Mar 16, 2023 at 8:26 AM user_gong Kim <ksi2443 at gmail.com> wrote:
> Hello,
>
> I have some issues about different mode and different command.
>
> 1. Exactly the same code, but no error occurs in debug mode, but an error
> occurs in opt mode.
> In this case, what should I be suspicious of?
>
Memory overwrites, since debug and opt can have different memory layouts.
Run under valgrind, or suing address sanitizer.
> 2. When executed with ./application, no error occurs, but when executed
> with mpiexec -n 1 ./app, an error may occur. What should be suspected in
> this case?
>
Same thing.
Thanks,
Matt
> Thanks,
> Hyung Kim
>
--
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
https://www.cse.buffalo.edu/~knepley/ <http://www.cse.buffalo.edu/~knepley/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20230316/bd695611/attachment.html>
More information about the petsc-users
mailing list