Skip to content

Commit

Permalink
Attempt to fix remaining test failures
Browse files Browse the repository at this point in the history
  • Loading branch information
hkaiser committed Nov 20, 2020
1 parent 209877f commit 4f7a26c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
1 change: 1 addition & 0 deletions flecsi/data/hpx/data_client_handle_policy.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

#include <flecsi/execution/hpx/future.h>
#include <flecsi/runtime/types.h>
#include <flecsi/topology/mesh_types.h>

namespace flecsi {

Expand Down
8 changes: 5 additions & 3 deletions flecsi/execution/hpx/task_add_dependencies.h
Original file line number Diff line number Diff line change
Expand Up @@ -146,13 +146,15 @@ struct task_add_dependencies_t
} // handle

template<typename Ragged, typename T2>
void handle(Ragged & m1, ragged_mutator<T2> & m2) {
handle(m1, m2.handle);
void handle(Ragged & r1, ragged_mutator<T2> & r2) {
r1.future = future;
has_dependencies = true;
}

template<typename Sparse, typename T2>
void handle(Sparse & m1, sparse_mutator<T2> & m2) {
handle(m1, m2.ragged);
m1.future = future;
has_dependencies = true;
}

template<typename Client, typename T, size_t PERMISSIONS>
Expand Down
3 changes: 2 additions & 1 deletion flecsi/execution/test/ghost_access_drivers.cc
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,9 @@ driver(int argc, char ** argv) {
flecsi_execute_task_simple(
set_primary_cells_task, index, handle, test_handle, cycle);

flecsi_execute_task_simple(
auto future = flecsi_execute_task_simple(
check_all_cells_task, index, handle, test_handle, cycle);
future.get(); // make sure that next iteration doesn't start prematurely
}

} // driver
Expand Down

0 comments on commit 4f7a26c

Please sign in to comment.