logo

Crowdly

Browser

Add to Chrome

Questions Bank (1396597 total)

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. }
13%
88%
View this question

Vaata tabelit PERSONAL

Millised kirjed väljastab käsk SELECT Nimi, Amet FROM PERSONAL WHERE Amet like '%sisestaja%';

0%
0%
0%
0%
View this question

Milline käsk kustutab tabeli PERSONAL?

0%
0%
0%
0%
View this question

Quel est le nombre de processus du communicateur "comm" après les lignes de code suivantes:

// on suppose toutes les variables déclarées

dim[0] = 4; dim[1] = 3;

period[0] = 1; period[1] = 0;

reorder = 1;

MPI_Cart_create(MPI_COMM_WORLD,2,dim,period,reorder, &comm); 

0%
0%
100%
0%
View this question

Quelle est la topologie MPI après les lignes de code suivantes:

dim[0] = 4; dim[1] = 4;

period[0] = 1; period[1] = 0;

reorder = 1;

MPI_Cart_create(MPI_COMM_WORLD, 2, dim, period, reorder, &comm);

0%
0%
100%
0%
View this question

Vaata tabelit TELLIMUS.

Milline on järgneva käsu tulemus? 

SELECT lower(upper(Nimetus)) AS Nimetus FROM TELLIMUS;

0%
0%
0%
View this question

Andmeväljas "Muudetud" hoitakse kuupäeva ja kellaaega, mis näitab kirje viimase muutmise aega. Milline järgnevatest on sobivaim andmetüüp?

0%
0%
0%
0%
View this question

Dans le bout de code MPI suivant, le schéma de communication s'exécute correctement pour 4 processus, vrai ou faux ?

// on suppose toutes las variables correctement déclarées

MPI_init(&argc, &argv);

MPI_Comm_rank(MPI_COMM_WORLD, &myRank);

...

if (myRank == 0){

    scanf("%d",&n);

   MPI_Bcast(&n,1,MPI_INT,0,MPI_COMM_WORLD);

}

else {

MPI_Recv(&n,1,MPI_INT,0,tag,MPI_COMM_WORLD,&status);

}

...

0%
0%
View this question

Milline järgnevatest käskudest väljastab kirjete arvu tabelis TELLIMUS?

0%
0%
0%
View this question

Andmebaas on …

0%
0%
View this question