Skip to content

Commit e97c6c9

Browse files
Fix possible request_cancel on MPI_REQUEST_NULL
1 parent be25dcc commit e97c6c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/fenix_process_recovery.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -819,7 +819,7 @@ void __fenix_finalize_spare()
819819
}
820820
}
821821

822-
MPI_Cancel(&recv_req);
822+
if(recv_req != MPI_REQUEST_NULL) MPI_Cancel(&recv_req);
823823

824824
MPI_Op_free(&fenix.agree_op);
825825
MPI_Comm_set_errhandler(*fenix.world, MPI_ERRORS_ARE_FATAL);

0 commit comments

Comments
 (0)