Skip to content

Commit be8d98f

Browse files
author
Alessandro Fanfarillo
committed
Fixed bug in sync_all
1 parent 5448ec5 commit be8d98f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/mpi/mpi_caf.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,8 +292,11 @@ void mutex_lock(MPI_Win win, int image_index, int index, int *stat,
292292
locking_atomic_op(win, &value, newval, compare, image_index, index);
293293

294294
if(value == caf_this_image && image_index == caf_this_image)
295-
goto stat_error;
296-
295+
{
296+
printf("Lock already taken %d\n",caf_this_image);
297+
goto stat_error;
298+
}
299+
297300
if(acquired_lock != NULL)
298301
{
299302
if(value == 0)

0 commit comments

Comments
 (0)