-
Notifications
You must be signed in to change notification settings - Fork 0
/
doall_bench.h
42 lines (31 loc) · 1.76 KB
/
doall_bench.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#ifndef PPT_P4_DOALL_H
#define PPT_P4_DOALL_H
#include "commons.h"
/// @brief Benchmark for an array in combination with shared clause and parallel for separated
/// @param data the configuration for the microbenchmark
void TestDoallSeparated(const DataPoint& data);
/// @brief Benchmark for an array in combination with shared clause, with cache misses
/// @param data the configuration for the microbenchmark
void TestDoAllShared(const DataPoint& data);
/// @brief Benchmark for no array during calculation, array still is included in shared clause
/// @param data the configuration for the microbenchmark
void TestDoAll(const DataPoint& data);
/// @brief Benchmark for an array in combination with the firstprivate clause
/// @param data the configuration for the microbenchmark
void TestDoallFirstprivate(const DataPoint& data);
/// @brief Benchmark for an array in combination with the private clause
/// @param data the configuration for the microbenchmark
void TestDoallPrivate(const DataPoint& data);
/// @brief Benchmark for an array in combination with the copyin clause
/// @param data the configuration for the microbenchmark
void TestCopyin(const DataPoint& data);
/// @brief Benchmark for an array in combination with the copyprivate clause, only works in a single construct
/// @param data the configuration for the microbenchmark
void TestCopyPrivate(const DataPoint& data);
/// @brief Reference Implementation, for calculating the overhead, uses ArrayDelayFunction
/// @param data the configuration for the reference
void ReferenceWithArray(const DataPoint& data);
/// @brief Reference Implementation, for calculating the overhead, uses DelayFunction
/// @param data the configuration for the reference
void ReferenceWithoutArray(const DataPoint& data);
#endif //PPT_P4_DOALL_H