@@ -269,15 +269,15 @@ caf_runtime_error (const char *message, ...)
269
269
/* being used, we could add something of the form "#ifdef _CMAKE" to remove the */
270
270
/* keyword only when building with CMake */
271
271
/* inline */ void locking_atomic_op (MPI_Win win , int * value , int newval ,
272
- int compare , int image_index , int index )
272
+ int compare , int image_index , size_t index )
273
273
{
274
274
CAF_Win_lock (MPI_LOCK_EXCLUSIVE , image_index - 1 , win );
275
275
MPI_Compare_and_swap (& newval ,& compare ,value , MPI_INT ,image_index - 1 ,
276
276
index * sizeof (int ), win );
277
277
CAF_Win_unlock (image_index - 1 , win );
278
278
}
279
279
280
- void mutex_lock (MPI_Win win , int image_index , int index , int * stat ,
280
+ void mutex_lock (MPI_Win win , int image_index , size_t index , int * stat ,
281
281
int * acquired_lock , char * errmsg , int errmsg_len )
282
282
{
283
283
const char msg [] = "Already locked" ;
@@ -326,7 +326,7 @@ void mutex_lock(MPI_Win win, int image_index, int index, int *stat,
326
326
#endif // MPI_VERSION
327
327
}
328
328
329
- void mutex_unlock (MPI_Win win , int image_index , int index , int * stat ,
329
+ void mutex_unlock (MPI_Win win , int image_index , size_t index , int * stat ,
330
330
char * errmsg , int errmsg_len )
331
331
{
332
332
const char msg [] = "Variable is not locked" ;
0 commit comments