-
Notifications
You must be signed in to change notification settings - Fork 26
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
Warning on nested MPI #1025
Warning on nested MPI #1025
Conversation
…ntime and MPI Executor use
Is it feasible to do this when we have detected OpenMPI, which we already do. That said there could be other OpenMPI based implementations, but usually I've found everything else works okay. Comment could say MPICH/MPICH-derived as many implementations like Intel MPI are based on MPICH. Better probably, turn it around and say nesting will not work if using Open MPI. |
libensemble/libE.py
Outdated
@@ -386,6 +387,13 @@ def libE_mpi_manager(mpi_comm, sim_specs, gen_specs, exit_criteria, persis_info, | |||
"""Manager routine runs on rank 0.""" | |||
from libensemble.comms.mpi import MainMPIComm | |||
|
|||
if Executor.executor is not None: | |||
if isinstance(Executor.executor, MPIExecutor) and libE_specs["comms"] == "mpi": |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As inside libE_mpi_manager - I don't think need to test for comms being "mpi" here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also move below logger set up (which is just below).
…ibensemble into feature/warn_on_nested_mpi
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have updated to only give the message when using Open MPI. We should squash merge this. And make sure commit message is simplified.
Addresses #1015 .