Skip to content

Commit c1190e8

Browse files
author
Alessandro Fanfarillo
committed
Fixed few bugs on
1 parent 32e4cb4 commit c1190e8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/mpi/mpi_caf.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ void mutex_lock(MPI_Win win, int image_index, int index, int *stat,
276276
const char msg[] = "Already locked";
277277
#if MPI_VERSION >= 3
278278
int value=0, compare = 0, newval = caf_this_image, i = 1,zero=0,ret=0;
279-
int flag, it = 0, check_failure = 100;
279+
int flag, it = 0, check_failure = 100,ierr=0;
280280

281281
if(stat != NULL)
282282
*stat = 0;
@@ -370,7 +370,7 @@ void mutex_unlock(MPI_Win win, int image_index, int index, int *stat,
370370
if(stat != NULL)
371371
*stat = 0;
372372
#if MPI_VERSION >= 3
373-
int value=1, compare = 1, newval = 0;
373+
int value=1, compare = 1, newval = 0,flag,ierr=0;
374374

375375
MPI_Test(&lock_req,&flag,MPI_STATUS_IGNORE);
376376

@@ -2529,7 +2529,7 @@ PREFIX (event_post) (caf_token_t token, size_t index,
25292529
int image_index, int *stat,
25302530
char *errmsg, int errmsg_len)
25312531
{
2532-
int image, value=1, ierr=0;
2532+
int image, value=1, ierr=0,flag;
25332533
MPI_Win *p = token;
25342534
const char msg[] = "Error on event post";
25352535

0 commit comments

Comments
 (0)