Skip to content

Commit 30f7f9c

Browse files
committed
Adjusted engine definitions.
1 parent 296bbdc commit 30f7f9c

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

src/benchmark/Main.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
#include "react/propagation/TopoSortO1Engine.h"
1818
#include "react/propagation/PulseCountEngine.h"
1919
#include "react/propagation/SourceSetEngine.h"
20-
#include "react/propagation/TopoSortSTEngine.h"
2120
#include "react/propagation/PulseCountO1Engine.h"
2221
#include "react/propagation/ELMEngine.h"
2322

@@ -27,7 +26,7 @@ namespace {
2726
using namespace react;
2827

2928
REACTIVE_DOMAIN(FloodingDomain, FloodingEngine<>, EventLog);
30-
REACTIVE_DOMAIN(TopoSortDomain, TopoSortEngine<>, EventLog);
29+
REACTIVE_DOMAIN(TopoSortDomain, TopoSortEngine<parallel_queuing>, EventLog);
3130
//REACTIVE_DOMAIN(TopoSortO1Domain, TopoSortO1Engine, EventLog);
3231
REACTIVE_DOMAIN(PulseCountDomain, PulseCountEngine<>, EventLog);
3332
REACTIVE_DOMAIN(SourceSetDomain, SourceSetEngine<>, EventLog);
@@ -36,7 +35,8 @@ REACTIVE_DOMAIN(PulseCountO1Domain, PulseCountO1Engine<>, EventLog);
3635
REACTIVE_DOMAIN(ELMDomain, ELMEngine<>, EventLog);
3736

3837
REACTIVE_DOMAIN(BFloodingDomain, FloodingEngine<>);
39-
REACTIVE_DOMAIN(BTopoSortDomain, TopoSortEngine<>);
38+
REACTIVE_DOMAIN(BTopoSortDomain, TopoSortEngine<parallel_queuing>);
39+
REACTIVE_DOMAIN(BTopoSortDomainNoQ, TopoSortEngine<parallel>);
4040
//REACTIVE_DOMAIN(BTopoSortO1Domain, TopoSortO1Engine);
4141
REACTIVE_DOMAIN(BPulseCountDomain, PulseCountEngine<>);
4242
REACTIVE_DOMAIN(BSourceSetDomain, SourceSetEngine<>);
@@ -236,8 +236,8 @@ void debugBenchmarks()
236236

237237
void profileBenchmark()
238238
{
239-
RUN_BENCHMARK(std::cout, 1, Benchmark_Grid, BenchmarkParams_Grid(30, 1000),
240-
BSourceSetDomain);
239+
RUN_BENCHMARK(std::cout, 3, Benchmark_Grid, BenchmarkParams_Grid(30, 10000),
240+
BTopoSortDomain);
241241

242242
//RUN_BENCHMARK(std::cout, 1, Benchmark_Grid, BenchmarkParams_Grid(30, 10000),
243243
// BSourceSetDomain);

src/sandbox/Main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#include "react/ReactiveObject.h"
77

88
//#include "react/propagation/SourceSetEngine.h"
9-
#include "react/propagation/TopoSortSTEngine.h"
9+
#include "react/propagation/TopoSortEngine.h"
1010
#include "react/propagation/ELMEngine.h"
1111

1212
using namespace std;
@@ -15,7 +15,7 @@ using namespace react;
1515
// Defines a domain.
1616
// Each domain represents a separate dependency graph, managed by a dedicated propagation engine.
1717
// Reactives of different domains can not be combined.
18-
REACTIVE_DOMAIN(D, ELMEngine<>);
18+
REACTIVE_DOMAIN(D, TopoSortEngine<sequential>);
1919

2020
void SignalExample1()
2121
{

0 commit comments

Comments
 (0)