Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DEBUG_LINKMPI #330

Closed
aerorahul opened this issue Dec 14, 2020 · 5 comments · Fixed by #1681
Closed

DEBUG_LINKMPI #330

aerorahul opened this issue Dec 14, 2020 · 5 comments · Fixed by #1681

Comments

@aerorahul
Copy link
Contributor

if(DEBUG_LINKMPI)

This needs to be addressed correctly.

There have been numerous discussions on an incorrect implementation of debugging with MPI.
Most recently in PR #291 and this comment specifically.

@climbfuji
Copy link
Collaborator

I would like to revive this issue. Besides all the other points raised, the implementation assumes that anyone using the Intel compiler also uses Intel MPI. That is not necessarily true. I was building the model with Intel and MPICH in debug mode, and the error I get is:

ld: library not found for -link_mpi=dbg_mt

For many good reasons mentioned in the links in the description of this PR, I would prefer this DEBUG_LINKMPI logic to be removed. At the very least, it should be OFF by default, and folks who want to use it should enable it explicitly.

@arunchawla-NOAA
Copy link

Is this still an issue that needs work @climbfuji @aerorahul @junwang-noaa ? Should this be moved to a discussion if we still do not have a path forward ?

@climbfuji
Copy link
Collaborator

Yes, it is still an issue in my opinion.

@climbfuji
Copy link
Collaborator

@arunchawla-NOAA @junwang-noaa @DusanJovic-NOAA @aerorahul Any chance that we can we get rid of this debug_linkmpi?

It's been discussed controversially since when it was added, and now I am also getting errors with Intel oneAPI MPI:

...
ld: cannot find -link_mpi=dbg_mt
...

Has anyone else run into this with the new oneAPI MPI library?

@DusanJovic-NOAA
Copy link
Collaborator

In my personal opinion we should get rid of all debug versions of all libraries (esmf, mapl, mpi). In rare cases, when it turns out that we suspect there's a bug in esmf and/or MPI, we can temporarily switch to debug versions, debug the issue, fix the code and continue to use release version of all libraries.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants