Skip to content

Commit 245dc1f

Browse files
author
Alessandro Fanfarillo
committed
Fixed num_images
1 parent f4d3ce2 commit 245dc1f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/mpi/mpi_caf.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -594,6 +594,7 @@ int
594594
PREFIX (num_images)(int distance __attribute__ ((unused)),
595595
int failed __attribute__ ((unused)))
596596
{
597+
MPI_Comm_size(CAF_COMM_WORLD,&caf_num_images);
597598
return caf_num_images;
598599
}
599600

@@ -1226,7 +1227,7 @@ PREFIX (send) (caf_token_t token, size_t offset, int image_index,
12261227
if(error_called == 1)
12271228
{
12281229
communicator_shrink(&CAF_COMM_WORLD);
1229-
communicator_shrink(&lock_comm);
1230+
/* communicator_shrink(&lock_comm); */
12301231
error_called = 0;
12311232
fake_error_called = 0;
12321233
ierr = STAT_FAILED_IMAGE;

0 commit comments

Comments
 (0)