Skip to content
Extraits de code Groupes Projets
Valider c1737900 rédigé par Nicolas MARIE's avatar Nicolas MARIE
Parcourir les fichiers

fixe mpi_collective detection

parent 352d6561
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -98,9 +98,9 @@ void pass_mpi_collective::print_tree(function *fun)
{
printf("\t\t\tStatement is a MPI function call (%s)\n",
fndecl_name(gimple_call_fndecl(stmt)));
if (__is_mpi_collec(stmt))
if (__is_mpi_collec(stmt) != LAST_AND_UNUSED_MPI_COLLECTIVE_CODE)
{
printf("\t\t\t\tStatement is a MPI statement (%s)\n",
printf("\t\t\t\tStatement is a MPI collective (%s)\n",
fndecl_name(gimple_call_fndecl(stmt)));
}
}
......@@ -213,10 +213,13 @@ void pass_mpi_collective::label_collec(function *fun)
{
stmt = gsi_stmt(gsi);
mpi_code = is_mpi_collec(stmt);
if (mpi_code != LAST_AND_UNUSED_MPI_COLLECTIVE_CODE)
{
((bb_data *) bb->aux)->mpi_code = mpi_code;
}
}
}
}
void pass_mpi_collective::free_bb_aux(function *fun)
{
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter