Skip to content

Commit 11ca200

Browse files
committed
Errorhandler: don't fallback to COMM_WORLD, pass NULL instead
MPI 4.0, page 27 says > some errors may not have a communicator, window, or file on which > an error may be raised. In such cases, > these errors will be raised on the communicator MPI_COMM_SELF when > using the World Model (see Section 11.2) [...] By passing NULL (instead of MPI_COMM_WORLD), to ompi_errhandler_invoke we trigger the right selection of the object to invoke the error on. Signed-off-by: Joseph Schuchart <schuchart@icl.utk.edu>
1 parent fe92fbe commit 11ca200

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ompi/errhandler/errhandler_invoke.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -200,9 +200,9 @@ int ompi_errhandler_request_invoke(int count,
200200
break;
201201
default:
202202
/* Covers REQUEST_GEN, REQUEST_NULL, REQUEST_MAX */
203-
return ompi_errhandler_invoke(MPI_COMM_WORLD->error_handler,
204-
MPI_COMM_WORLD,
205-
MPI_COMM_WORLD->errhandler_type,
203+
return ompi_errhandler_invoke(NULL,
204+
NULL,
205+
0,
206206
ec, message);
207207
break;
208208
}

0 commit comments

Comments
 (0)