Aviary icon indicating copy to clipboard operation
Aviary copied to clipboard

Squash MPI warnings

Open jkirk5 opened this issue 1 year ago • 3 comments

Desired capability or behavior.

When running Aviary, a warning related to importing MPI usually prints to the terminal: /usr/share/miniconda/envs/test/lib/python3.12/site-packages/pyoptsparse/pyOpt_MPI.py:68: UserWarning: mpi4py could not be imported. mpi4py is required to use the parallel gradient analysis and parallel objective analysis for non-gradient based optimizers. Continuing using a dummy MPI module from pyOptSparse. warnings.warn(warn)

This is minorly annoying for running Aviary, but is adding unnecessary and confusing clutter to embedded code cells in docs. These errors should always be suppressed in the docs, and a way to suppress it for ordinary Aviary runs should also be implemented, possibly tied to Verbosity and suppression of other common warnings and printouts

Is your feature request related to a problem? Please describe.

No response

Associated Bug Report

No response

jkirk5 avatar Dec 11 '24 18:12 jkirk5

I did see this warning before. I just tried to run aviary run_mission small_single_aisle_GwGm.csv and python test_bench_FwFm.py. I didn't see it. Can you give a case when you see this warning?

xjjiang avatar Dec 31 '24 20:12 xjjiang

I still see it in the docs (https://openmdao.github.io/Aviary/user_guide/aviary_commands.html for example), but I don't get that message when I try aviary -h on my windows machine or on a linux cluster. Maybe this is because the workflow that builds the docs is not using the latest pyopsparse from conda?

jkirk5 avatar Mar 17 '25 19:03 jkirk5

Related issue: https://github.com/OpenMDAO/Aviary/issues/140

jkirk5 avatar Jun 05 '25 18:06 jkirk5