logo

Crowdly

La mesure du temps d'exécution avec la commande " mpirun -np 16 ./myprog " du pr...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

La mesure du temps d'exécution avec la commande "mpirun -np 16 ./myprog" du programme suivant est-elle correcte ?

  1. #include <stdio.h>
  2. #include "mpi.h"
  3.  
  4. int main(int argc, int **argv) {
  5.     int myRank, nbProcs;
  6.     double start, execTime;
  7.  
  8.     MPI_init(&argc, &argv);
  9.     start = MPI_Wtime();
  10.     ……
  11.     execTime = MPI_Wtime()- start;
  12.     printf("Le temps d'execution du programme parallele est %lf\n", execTime);
  13.  
  14.     MPI_Finalize();
  15.     return 0;
  16. }
More questions like this

Want instant access to all verified answers on moodle2024.uca.fr?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!