Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Adapt tests to avoid failures when spurious ASan warnings are interlaced.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Sat, 12 Mar 2022 16:51:20 +0000 (17:51 +0100)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Sat, 12 Mar 2022 17:16:50 +0000 (18:16 +0100)
teshsuite/models/ptask_L07_usage/ptask_L07_usage.cpp
teshsuite/smpi/coll-alltoall/coll-alltoall.c
teshsuite/smpi/coll-alltoallv/coll-alltoallv.c

index 659e70b..9b69cba 100644 (file)
@@ -318,7 +318,6 @@ static void main_dispatcher()
   c1->wait();
   end_time = sg4::Engine::get_clock();
   XBT_INFO("Actual result: Sending 1B while computing 2 flops takes %.4f seconds.", end_time - start_time);
-  XBT_INFO("\n");
 }
 
 int main(int argc, char** argv)
index 2521cf4..0cbee34 100644 (file)
@@ -66,8 +66,9 @@ int main(int argc, char *argv[])
     printf("%d ", rb[i]);
   printf("]\n");
 
-  if (rank == 0 && status != MPI_SUCCESS) {
-    printf("all_to_all returned %d\n", status);
+  if (rank == 0) {
+    if (status != MPI_SUCCESS)
+      printf("all_to_all returned %d\n", status);
     fflush(stdout);
   }
   xbt_free(sb);
index bc240ae..3e4ec10 100644 (file)
@@ -141,6 +141,7 @@ int main(int argc, char **argv)
   MPI_Barrier(MPI_COMM_WORLD);
   if (0 == rank) {
     printf("Alltoallv TEST COMPLETE.\n");
+    fflush(stdout);
   }
   free(sdispls);
   free(rdispls);