运行Openmdao v1.7.3教程和基准

时间:2017-09-18 21:43:14

标签: openmdao

我尝试过运行Openmdao抛物面教程以及基准测试,并且我一直收到同样的错误,内容如下:

[0]PETSC ERROR: ------------------------------------------------------------------------
[0]PETSC ERROR: Caught signal number 11 SEGV: Segmentation Violation, probably memory access out of range
[0]PETSC ERROR: Try option -start_in_debugger or -on_error_attach_debugger
[0]PETSC ERROR: or see http://www.mcs.anl.gov/petsc/documentation/faq.html#valgrind
[0]PETSC ERROR: or try http://valgrind.org on GNU/linux and Apple Mac OS X to find memory corruption errors
[0]PETSC ERROR: configure using --with-debugging=yes, recompile, link, and run 
[0]PETSC ERROR: to get more information on the crash
---------------------------------------------------------------------
MPI_abort was invoked on rank 0 in communicator MPI_COMM_WORLD with errorcode 59.
NOTE: invoking MPI_ABORT causes MPI to kill all MPI processes.
you may or may not see output from other processes, depending on exactly when Open MPI kills them.

我不明白为什么会出现此错误以及如何在不收到此错误的情况下运行OpenMDAO。你能帮帮我吗?

1 个答案:

答案 0 :(得分:0)

您的PETSc安装并不顺利。但是很难从远处调试它。它可能在您的MPI安装,或您的PETSc安装,或您的petsc4py安装。我建议不要通过pip安装PETSc或PETSc4Py。我已经取得了不同程度的成功。两者都可以从源头安装而不会有太大的困难。

但是,要运行教程,您不需要安装PETSc。您可以删除这些包,教程将为您连续正确运行