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

remove unused algos

parent 10334fa6
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -118,9 +118,6 @@ public: ...@@ -118,9 +118,6 @@ public:
// functions that rank mpi collectives // functions that rank mpi collectives
void rank_collective(function *fun); void rank_collective(function *fun);
void __rank_collective(basic_block bb); void __rank_collective(basic_block bb);
void better_rank_collective(function *fun);
int __better_rank_collective(
basic_block bb, mpi_collective_code mpi_code, int rank);
// function that calculate agregate a mpi collective // function that calculate agregate a mpi collective
// with the same rank in a bitmap // with the same rank in a bitmap
void get_mpi_coll_rank( void get_mpi_coll_rank(
......
...@@ -47,60 +47,6 @@ void pass_mpi_collective::__rank_collective(basic_block bb) ...@@ -47,60 +47,6 @@ void pass_mpi_collective::__rank_collective(basic_block bb)
} }
} }
void pass_mpi_collective::better_rank_collective(function *fun)
{
size_t i;
int next_rank = 0;
for (i = 0; i < LAST_AND_UNUSED_MPI_COLLECTIVE_CODE; ++i)
{
next_rank = __better_rank_collective(EXIT_BLOCK_PTR_FOR_FN(fun),
(enum mpi_collective_code) i,
next_rank);
}
reset_bb_mark(fun);
}
int pass_mpi_collective::__better_rank_collective(basic_block bb,
mpi_collective_code mpi_code, int rank)
{
edge e;
edge_iterator ei;
int next_rank;
next_rank = rank;
((bb_data *) bb->aux)->mark1 = mpi_code + 1;
FOR_EACH_EDGE(e, ei, bb->preds)
{
if (((edge_data *) e->aux)->loop)
{
continue;
}
// cache or travell
if (((bb_data *) e->src->aux)->mark1 <= mpi_code)
{
next_rank =
std::max(next_rank,
__better_rank_collective(e->src, mpi_code, rank));
}
else
{
next_rank =
std::max(next_rank,
((bb_data *) e->src->aux)->collective_rank[mpi_code]);
}
}
// set mpi code
if (((bb_data *) bb->aux)->mpi_code == mpi_code)
{
next_rank++;
}
((bb_data *) bb->aux)->collective_rank[mpi_code] = next_rank;
return next_rank;
}
void pass_mpi_collective::get_mpi_coll_rank(function *fun, void pass_mpi_collective::get_mpi_coll_rank(function *fun,
int rank, int mpi_code, bitmap mpi_coll) int rank, int mpi_code, bitmap mpi_coll)
{ {
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter