瀏覽代碼

avoid crashes when running smpi with shared libraries

Samuel Thibault 8 年之前
父節點
當前提交
789b098faa
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      configure.ac

+ 3 - 0
configure.ac

@@ -488,6 +488,9 @@ if test ! -x $mpiexec_path; then
 fi
 
 AM_CONDITIONAL(STARPU_MPI_CHECK, test x$running_mpi_check = xyes)
+if test x$running_mpi_check = xyes -a x$enable_simgrid = xyes -a x$enable_shared = xyes ; then
+    AC_MSG_ERROR([MPI with simgrid can not work with shared libraries, use --disable-shared to fix this])
+fi
 if test x$use_mpi = xyes ; then
     AC_MSG_CHECKING(whether MPI tests should be run)
     AC_MSG_RESULT($running_mpi_check)