Skip to content

Commit

Permalink
Limit execution of constraints test to PaRSEC backend
Browse files Browse the repository at this point in the history
Constraints are a no-op in the madness backend so don't try to
execute with them.

Signed-off-by: Joseph Schuchart <joseph.schuchart@stonybrook.edu>
  • Loading branch information
devreal committed Oct 24, 2024
1 parent 318ea20 commit 8f94781
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/unit/constraints.cc
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,18 @@ TEST_CASE("constraints", "") {
}, ttg::edges(), ttg::edges(e));
bcast->set_keymap([&](){ return world.rank(); });

/**
* Constraints are currently only implemented in the PaRSEC backend.
* Codes using constraints will still compile but they will not
* affect the execution order in other backends.
*/
#ifdef TTG_USE_PARSEC
make_graph_executable(bcast);
ttg::execute(ttg::default_execution_context());
bcast->invoke();

ttg::ttg_fence(ttg::default_execution_context());
#endif // TTG_USE_PARSEC

}
} // TEST_CASE("streams")

0 comments on commit 8f94781

Please sign in to comment.