Skip to content

Commit 23d2f47

Browse files
author
Alessandro Fanfarillo
committed
Minor changes
1 parent b72742d commit 23d2f47

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/mpi/mpi_caf.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,6 @@ void mutex_lock(MPI_Win win, int image_index, int index, int *stat,
287287

288288
if(error_called == 1)
289289
{
290-
/* MPIX_Comm_agree( CAF_COMM_WORLD, &completed ); */
291290
/* communicator_shrink(&lock_comm); */
292291
communicator_shrink(&CAF_COMM_WORLD);
293292
error_called = 0;
@@ -319,7 +318,6 @@ void mutex_lock(MPI_Win win, int image_index, int index, int *stat,
319318

320319
if(error_called == 1)
321320
{
322-
/* MPIX_Comm_agree( CAF_COMM_WORLD, &completed ); */
323321
//communicator_shrink(&lock_comm);
324322
communicator_shrink(&CAF_COMM_WORLD);
325323
error_called = 0;
@@ -518,6 +516,10 @@ PREFIX (finalize) (void)
518516

519517
completed = 1;
520518

519+
printf("finalizing\n");
520+
521+
MPI_Cancel(&lock_req);
522+
MPI_Request_free(&lock_req);
521523
MPI_Barrier(CAF_COMM_WORLD);
522524

523525
while (caf_static_list != NULL)
@@ -649,8 +651,7 @@ void *
649651

650652
if(error_called == 1)
651653
{
652-
/* MPIX_Comm_agree( CAF_COMM_WORLD, &completed ); */
653-
//communicator_shrink(&lock_comm);
654+
/* communicator_shrink(&lock_comm); */
654655
communicator_shrink(&CAF_COMM_WORLD);
655656
error_called = 0;
656657
}
@@ -818,8 +819,7 @@ PREFIX (sync_all) (int *stat, char *errmsg, int errmsg_len)
818819

819820
if(error_called == 1)
820821
{
821-
/* MPIX_Comm_agree( CAF_COMM_WORLD, &completed ); */
822-
//communicator_shrink(&lock_comm);
822+
/* communicator_shrink(&lock_comm); */
823823
communicator_shrink(&CAF_COMM_WORLD);
824824
error_called = 0;
825825
}

0 commit comments

Comments
 (0)