OpenMDAOv1.x:警告:并行派生未在MPI下运行 [英] OpenMDAOv1.x: warning: parallel derivs not running under MPI

查看:135
本文介绍了OpenMDAOv1.x:警告:并行派生未在MPI下运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚在超级计算机上完成了OpenMDAOv1.3的安装.安装成功,所有测试都通过或跳过.但是,当我运行测试时,收到以下警告:

I just finished installing OpenMDAOv1.3 on our super computer. The installation was successful and all tests either passed or skipped. However, when I ran the tests I got the following warning:

*path/OpenMDAO/openmdao/core/driver.py:228: UserWarning: parallel derivs %s specified but not running under MPI
  warnings.warn("parallel derivs %s specified but not running under MPI")

我不确定该怎么做(如果有的话),因此我正在寻找有关警告消息含义的信息.我们计划与OpenMDAO的内置MPI功能并行运行.我目前在系统上加载了openmpi-1.8.4.

I'm not sure what to do about this (if anything) and so I am looking for information about the implications of the warning message. We are planning on running in parallel with the built in MPI functionality of OpenMDAO. I currently have openmpi-1.8.4 loaded on the system.

推荐答案

您可以忽略该警告...这仅仅是因为测试未在MPI下运行. (将修复测试以消除警告.)

You can ignore that warning... it's just because the test is not running under MPI. (The test will be fixed to suppress the warning).

要并行运行,还需要执行其他步骤.尚未对此进行记录,但是在anaconda环境中工作时,我们中的一些人一直在使用以下步骤:

There are additional steps you need to take to run in parallel. This has not yet been documented, but some of us have been using the following steps when working in an anaconda environment:

sudo apt-get install openmpi-bin openmpi-doc libopenmpi-dev
pip install mpi4py # do not use conda install, this causes an mpich conflict
sudo apt-get install liblapack-dev gfortran
pip install --no-deps git+https://bitbucket.org/petsc/petsc@v3.5 
conda install cython
pip install --no-deps  git+https://bitbucket.org/petsc/petsc4py@3.5

要验证您的状态,可以在mpitests目录中运行测试,如下所示:

To verify you are good to go, you can run the tests in the mpitests directory as follows:

cd mpitests
find . -name "*.py" -exec python {} \;

或者,您可以从以下位置使用testflo包:

Alternatively you can use the testflo package from

pip install git+https://github.com/naylor-b/testflo.git

,然后从OpenMDAO目录发出以下命令:

and from the OpenMDAO directory, issue the following command:

testflo .  -i

请注意,这是在Linux类型的操作系统上进行的.当前不支持Windows上的并行执行

Note that this assumes a Linux type operating system.. Parallel execution on Windows is not currently supported

这篇关于OpenMDAOv1.x:警告:并行派生未在MPI下运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆