Skip to content

Commit f452a16

Browse files
committed
Always include the include directory.
1 parent 7200171 commit f452a16

17 files changed

+28
-37
lines changed

C/Savina/src/concurrency/BoundedBuffer.lf

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -48,32 +48,32 @@ preamble {=
4848
#include "PseudoRandom.h"
4949
#include <math.h>
5050
#include "deque.h"
51-
52-
double processItem(double curTerm, size_t cost) {
53-
double res = curTerm;
54-
55-
PseudoRandom random;
56-
random.mValue = cost;
57-
58-
if(cost > 0) {
59-
for(size_t i = 0; i < cost; i++) {
60-
for(size_t j = 0; j < 100; j++) {
61-
res += log(fabs(nextDouble(&random)) + 0.01);
62-
}
63-
}
64-
} else {
65-
res += log(fabs(nextDouble(&random)) + 0.01);
66-
}
67-
68-
return res;
69-
}
51+
#include "benchmark_runner.h"
52+
double processItem(double curTerm, size_t cost);
7053
=}
7154

7255

7356
reactor ManagerReactor(bufferSize: size_t(50), numProducers: size_t(40), numConsumers: size_t(40)) {
7457

7558
preamble {=
76-
#include "deque.h"
59+
double processItem(double curTerm, size_t cost) {
60+
double res = curTerm;
61+
62+
PseudoRandom random;
63+
random.mValue = cost;
64+
65+
if(cost > 0) {
66+
for(size_t i = 0; i < cost; i++) {
67+
for(size_t j = 0; j < 100; j++) {
68+
res += log(fabs(nextDouble(&random)) + 0.01);
69+
}
70+
}
71+
} else {
72+
res += log(fabs(nextDouble(&random)) + 0.01);
73+
}
74+
75+
return res;
76+
}
7777
=}
7878

7979
input start: bool;

C/Savina/src/micro/Counting.lf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ target C {
4747
else:
4848
cog.outl("threading: false,")
4949
]]] */
50-
files: ["../include/benchmark_runner.h"],
5150
threading: false,
5251
/// [[[end]]]
52+
files: ["../include/benchmark_runner.h"],
5353
fast: true
5454
}
5555

C/Savina/src/micro/PingPong.lf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ target C {
3131
else:
3232
cog.outl("threading: false,")
3333
]]] */
34-
files: ["../include/benchmark_runner.h"],
3534
threading: false,
3635
/// [[[end]]]
36+
files: ["../include/benchmark_runner.h"],
3737
fast: true
3838
};
3939

C/Savina/src/micro/ThreadRing.lf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ target C {
6060
else:
6161
cog.outl("threading: false,")
6262
]]] */
63-
files: ["../include/benchmark_runner.h"],
6463
threading: false,
6564
/// [[[end]]]
65+
files: ["../include/benchmark_runner.h"],
6666
fast: true,
6767
logging: warn,
6868
};

C/Savina/src/micro/Throughput.lf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,9 @@ target C {
6161
else:
6262
cog.outl("threading: false,")
6363
]]] */
64-
files: ["../include/benchmark_runner.h"],
6564
threading: false,
6665
/// [[[end]]]
66+
files: ["../include/benchmark_runner.h"],
6767
flags: "-lm",
6868
fast: true
6969
};

C/Savina/src/parallelism/FilterBank.lf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ target C {
3838
else:
3939
cog.outl("threading: false,")
4040
]]] */
41-
files: ["../include/benchmark_runner.h"],
4241
threading: false,
4342
/// [[[end]]]
43+
files: ["../include/benchmark_runner.h"],
4444
fast: true
4545
};
4646

runner/conf/benchmark/savina_concurrency_banking.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ targets:
3232
lf-c:
3333
copy_sources:
3434
- "${bench_path}/C/Savina/src/BenchmarkRunner.lf"
35-
- "${bench_path}/C/Savina/src/include"
3635
- "${bench_path}/C/Savina/src/concurrency"
3736
lf_file: "concurrency/Banking.lf"
3837
binary: "Banking"

runner/conf/benchmark/savina_concurrency_barber.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ targets:
3333
lf-c:
3434
copy_sources:
3535
- "${bench_path}/C/Savina/src/BenchmarkRunner.lf"
36-
- "${bench_path}/C/Savina/src/include"
3736
- "${bench_path}/C/Savina/src/concurrency"
3837
lf_file: "concurrency/SleepingBarber.lf"
3938
binary: "SleepingBarber"

runner/conf/benchmark/savina_concurrency_cigsmok.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ targets:
2727
lf-c:
2828
copy_sources:
2929
- "${bench_path}/C/Savina/src/BenchmarkRunner.lf"
30-
- "${bench_path}/C/Savina/src/include"
3130
- "${bench_path}/C/Savina/src/concurrency"
3231
lf_file: "concurrency/CigaretteSmoker.lf"
3332
binary: "CigaretteSmoker"

runner/conf/benchmark/savina_concurrency_concdict.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ targets:
3434
lf-c:
3535
copy_sources:
3636
- "${bench_path}/C/Savina/src/BenchmarkRunner.lf"
37-
- "${bench_path}/C/Savina/src/include"
3837
- "${bench_path}/C/Savina/src/concurrency"
3938
lf_file: "concurrency/Dictionary.lf"
4039
binary: "Dictionary"

0 commit comments

Comments
 (0)