Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/mpi/mpi_caf.c
Original file line number Diff line number Diff line change
Expand Up @@ -1809,14 +1809,14 @@ PREFIX (send) (caf_token_t token, size_t offset, int image_index,
check_image_health (image_index, stat);

if(!stat && ierr == STAT_FAILED_IMAGE)
error_stop (ierr);
terminate_internal (ierr, 1);

if(stat)
*stat = ierr;
#else
if (ierr != 0)
{
error_stop (ierr);
terminate_internal (ierr, 1);
return;
}
#endif
Expand Down Expand Up @@ -2112,14 +2112,14 @@ PREFIX (get) (caf_token_t token, size_t offset,
if(stat)
*stat = ierr;
else if(ierr == STAT_FAILED_IMAGE)
error_stop (ierr);
terminate_internal (STAT_FAILED_IMAGE, 1);
#else
CAF_Win_unlock (image_index - 1, *p);

if(stat)
*stat = ierr;
else if (ierr != 0)
error_stop (ierr);
terminate_internal (ierr, 1);
#endif

MPI_Type_free(&dt_s);
Expand Down Expand Up @@ -3607,7 +3607,7 @@ sync_images_internal (int count, int images[], int *stat, char *errmsg,
{
fprintf (stderr, "COARRAY ERROR: Invalid image index %d to SYNC "
"IMAGES", images[i]);
error_stop (1);
terminate_internal (1, 1);
}
}
#endif
Expand Down