Source: tests/jobgraph/UserJobGraph.cpp
18 #include <tests/myratest.h> 22 ADD_TEST(
"UserJobGraph",
"[jobgraph]")
30 uint64_t jx = graph.
insert([&x](){ x=4; },
"x=4");
31 uint64_t jy = graph.
insert([&y](){ y=5; },
"y=5");
32 uint64_t jsum = graph.
insert([&x,&y,&z](){ z=x+y; },
"z=x+y");
33 uint64_t jprint = graph.
insert([&z](){ myra::out() <<
"z = " << z << std::endl; },
"print z");
40 graphviz(graph,
"UserJobGraph.dot");
uint64_t insert(const Functor &f)
Inserts a Job (in the form of a C++11 lambda) to this JobGraph, returns its unique JobID...
Definition: UserJobGraph.h:139
Given a JobGraph G, verifies it has valid topology.
Execute's a JobGraph.
void add_edge(uint64_t j0, uint64_t j1)
Adds a dependency, that Job j0 must execute before Job j1.
Definition: UserJobGraph.h:159
Container-like JobGraph class, can be manually populated with user-defined Job's and dependencies...
Container-like JobGraph class, can be manually populated with user-defined Job's and dependencies...
Definition: UserJobGraph.h:31
Given a JobGraph, produces a .dot file for visualization with graphviz.
Results: [PASS]
Go back to Summary of /test
programs.