diff --git a/cmake/external_libs/ompi.cmake b/cmake/external_libs/ompi.cmake index 1ed8dfb2a63..dfe6f9ffb3e 100644 --- a/cmake/external_libs/ompi.cmake +++ b/cmake/external_libs/ompi.cmake @@ -13,6 +13,6 @@ mindspore_add_pkg(ompi URL ${REQ_URL} MD5 ${MD5} PRE_CONFIGURE_COMMAND ./autogen.pl - CONFIGURE_COMMAND ./configure) + CONFIGURE_COMMAND ./configure --disable-mpi-fortran) include_directories(${ompi_INC}) add_library(mindspore::ompi ALIAS ompi::mpi) \ No newline at end of file