Skip to content

Commit b72742d

Browse files
author
Alessandro Fanfarillo
committed
Partial patch for locks
1 parent d6a57b8 commit b72742d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/mpi/mpi_caf.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ void mutex_lock(MPI_Win win, int image_index, int index, int *stat,
288288
if(error_called == 1)
289289
{
290290
/* MPIX_Comm_agree( CAF_COMM_WORLD, &completed ); */
291-
communicator_shrink(&lock_comm);
291+
/* communicator_shrink(&lock_comm); */
292292
communicator_shrink(&CAF_COMM_WORLD);
293293
error_called = 0;
294294
}
@@ -320,7 +320,7 @@ void mutex_lock(MPI_Win win, int image_index, int index, int *stat,
320320
if(error_called == 1)
321321
{
322322
/* MPIX_Comm_agree( CAF_COMM_WORLD, &completed ); */
323-
communicator_shrink(&lock_comm);
323+
//communicator_shrink(&lock_comm);
324324
communicator_shrink(&CAF_COMM_WORLD);
325325
error_called = 0;
326326
}
@@ -591,7 +591,7 @@ int communicator_shrink(MPI_Comm *comm)
591591
/* Split does the magic: removing spare processes and reordering ranks
592592
* so that all surviving processes remain at their former place */
593593
rc = MPI_Comm_split(shrunk, crank<0?MPI_UNDEFINED:1, crank, newcomm);
594-
594+
595595
/* Split or some of the communications above may have failed if
596596
* new failures have disrupted the process: we need to
597597
* make sure we succeeded at all ranks, or retry until it works. */
@@ -650,8 +650,8 @@ void *
650650
if(error_called == 1)
651651
{
652652
/* MPIX_Comm_agree( CAF_COMM_WORLD, &completed ); */
653+
//communicator_shrink(&lock_comm);
653654
communicator_shrink(&CAF_COMM_WORLD);
654-
communicator_shrink(&lock_comm);
655655
error_called = 0;
656656
}
657657

@@ -819,8 +819,8 @@ PREFIX (sync_all) (int *stat, char *errmsg, int errmsg_len)
819819
if(error_called == 1)
820820
{
821821
/* MPIX_Comm_agree( CAF_COMM_WORLD, &completed ); */
822+
//communicator_shrink(&lock_comm);
822823
communicator_shrink(&CAF_COMM_WORLD);
823-
communicator_shrink(&lock_comm);
824824
error_called = 0;
825825
}
826826

0 commit comments

Comments
 (0)