✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
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);
}
...
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!