Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
MBI: reduce a bit the amount of supurious warnings in generated code
authorMartin Quinson <martin.quinson@ens-rennes.fr>
Sat, 19 Mar 2022 20:09:48 +0000 (21:09 +0100)
committerMartin Quinson <martin.quinson@ens-rennes.fr>
Sun, 20 Mar 2022 00:20:49 +0000 (01:20 +0100)
teshsuite/smpi/MBI/ResleakGenerator.py

index 084cdda..67fdd96 100755 (executable)
@@ -42,7 +42,7 @@ END_MBI_TESTS
 #define PARAM_PER_ITERATION 3
 #define PARAM_LOST_PER_ITERATION 1
 
-void myOp(int *invec, int *inoutvec, int *len, MPI_Datatype *dtype) {
+static void myOp(int *invec, int *inoutvec, int *len, MPI_Datatype *dtype) {
   for (int i = 0; i < *len; i++)
     inoutvec[i] += invec[i];
 }