Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Update copyright lines for 2023.
[simgrid.git] / examples / smpi / gemm / gemm.c
index 3e1580c..fd75fbd 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2019-2021. The SimGrid Team. All rights reserved.          */
+/* Copyright (c) 2019-2023. The SimGrid Team. All rights reserved.          */
 
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
@@ -51,7 +51,7 @@ int main(int argc, char* argv[])
     MPI_Init(&argc, &argv);
     MPI_Comm_size(MPI_COMM_WORLD, &nproc);
     MPI_Comm_rank(MPI_COMM_WORLD, &rank);
-    
+
     if(argc<2){
       if (rank == 0)
         printf("Usage : gemm size \"native/sampling\"\n");
@@ -73,7 +73,6 @@ int main(int argc, char* argv[])
     float *b = (float*)malloc(sizeof(float)*size*size);
     float *c = (float*)malloc(sizeof(float)*size*size);
 
-  
     MPI_Barrier(MPI_COMM_WORLD);
     start = MPI_Wtime();
 
@@ -130,7 +129,7 @@ int main(int argc, char* argv[])
                 multiply_sampled(a, b, c, (size/nproc)*nproc, size-1, size);
         }
     }
-    
+
     MPI_Barrier(MPI_COMM_WORLD);
     end = MPI_Wtime();
 
@@ -151,7 +150,6 @@ int main(int argc, char* argv[])
             sec_per_matrix_mul,
             flops_per_matrix_mul);
     }
-   
 
     return 0;
 }