On Thu, Mar 16, 2023 at 8:26 AM user_gong Kim <[email protected]> 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/>