Mentions légales du service

Skip to content
Snippets Groups Projects
Commit f27d835b authored by Olivier COULAUD's avatar Olivier COULAUD
Browse files

Adding dependencies to serialize communications in the L2L operator

parent 6704d053
No related branches found
No related tags found
No related merge requests found
......@@ -88,6 +88,7 @@ namespace scalfmm::algorithms::mpi::pass
int tag_data = 2201 + 10 * level;
std::vector<dep_type> dependencies_in;
//
auto ptr_tree = &tree;
auto const& distrib = tree.get_cell_distribution(child_level);
std::clog << "distrib me [" << distrib[rank][0] << "," << distrib[rank][1] << "]\n";
// Send to the right the last locals
......@@ -118,8 +119,8 @@ namespace scalfmm::algorithms::mpi::pass
// std::cout << " downward dep(in) on groupe dep_parent " << dep_parent << std::endl << std::flush;
// depend(iterator(std::size_t it = 0 dependencies.size()), inout : (dependencies[it])[0]),
// #pragma omp task default(none) firstprivate(comm, rank, tag_data, it_last_parent_group, last_child_index) \
// shared(std::cout) depend(in : dep_parent[0]) priority(prio)
#pragma omp task default(none) firstprivate(comm, rank, tag_data, it_last_parent_group, last_child_index) \
shared(std::clog) depend(in : dep_parent[0], ptr_tree[0]) priority(prio)
{
// I have to send a message from my right to update the multipoles of the first
// cells of the right ghosts.
......@@ -184,8 +185,8 @@ namespace scalfmm::algorithms::mpi::pass
auto dep_ghost_parent = &(it_last_parent_group->get()->ccomponent(0).clocals(0));
// std::cout << " downward(receive) dependencies(out): " << dep_ghost_parent << std::endl << std::flush;
// #pragma omp task default(none) firstprivate(comm, rank, tag_data, size_local, it_last_parent_group) shared(std::cout) \
// depend(out : dep_ghost_parent[0]) priority(prio)
#pragma omp task default(none) firstprivate(comm, rank, tag_data, size_local, it_last_parent_group) shared(std::clog) \
depend(out : dep_ghost_parent[0], ptr_tree[0]) priority(prio)
{
std::clog << " Same parent\n ";
// Same parent, I have to receive a message from my left
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment