-
Notifications
You must be signed in to change notification settings - Fork 0
/
reduction_bench.h
37 lines (25 loc) · 1.21 KB
/
reduction_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
#ifndef PPT_P4_REDUCTION_H
#define PPT_P4_REDUCTION_H
#include "commons.h"
/// @brief Reduction clause with a DoAll loop
/// @param data the configuration for the microbenchmark
void ReductionFor(const DataPoint& data);
/// @brief Reduction with a Taskloop
/// @param data the configuration for the microbenchmark
void ReductionTaskloop(const DataPoint& data);
/// @brief Reduction with a taskloop with a custom number of total tasks
/// @param data the configuration for the microbenchmark
void ReductionTaskloopNumTasks(const DataPoint& data);
/// @brief Reduction with a taskloop with a custom grainsize
/// @param data the configuration for the microbenchmark
void ReductionTaskloopGrainsize(const DataPoint& data);
/// @brief Reduction with multiple tasks
/// @param data the configuration for the microbenchmark
void ReductionTask(const DataPoint& data);
/// @brief Reduction with a tasks in a taskgroup
/// @param data the configuration for the microbenchmark
void ReductionTaskgroup(const DataPoint& data);
/// @brief Reference implementation of a variable aggregation, for overhead calculation
/// @param data the configuration for the reference
void Reference(const DataPoint& data);
#endif //PPT_P4_REDUCTION_H