MPI_Abort() 与退出()
MPI_Abort() vs exit()
有什么好的理由更喜欢
MPI_Abort(MPI_COMM_WORLD, MY_ERROR_CODE);
至
exit(MY_ERROR_CODE);
在用 C 编写的基于 MPI 的并行代码中?到目前为止,我从未使用过前者。
阅读 MPI_Abort
函数的文档:https://www.open-mpi.org/doc/v2.0/man3/MPI_Abort.3.php。 exit
函数只是终止调用进程。 MPI_Abort
另一方面
makes a "best attempt" to abort all tasks in the group of comm
不仅仅是调用过程。
有什么好的理由更喜欢
MPI_Abort(MPI_COMM_WORLD, MY_ERROR_CODE);
至
exit(MY_ERROR_CODE);
在用 C 编写的基于 MPI 的并行代码中?到目前为止,我从未使用过前者。
阅读 MPI_Abort
函数的文档:https://www.open-mpi.org/doc/v2.0/man3/MPI_Abort.3.php。 exit
函数只是终止调用进程。 MPI_Abort
另一方面
makes a "best attempt" to abort all tasks in the group of comm
不仅仅是调用过程。