-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtask_bench.h
42 lines (31 loc) · 1.55 KB
/
task_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_TASK_H
#define PPT_P4_TASK_H
#include "commons.h"
/// @brief Tasks created by a task loop inside the master thread
/// @param data the configuration for the microbenchmark
void TestTaskLoopMaster(const DataPoint& data);
/// @brief Tasks created by all threads at once
/// @param data the configuration for the microbenchmark
void TestTaskThreads(const DataPoint& data);
/// @brief Tasks created by all threads, barrier after each task creation
/// @param data the configuration for the microbenchmark
void TestTaskBarrier(const DataPoint& data);
/// @brief Tasks created by just the master thread
/// @param data the configuration for the microbenchmark
void TestTaskMaster(const DataPoint& data);
/// @brief Tasks created by all tasks using a for loop
/// @param data the configuration for the microbenchmark
void TestTaskForLoop(const DataPoint& data);
/// @brief Tasks created by a task loop inside the master thread
/// @param data the configuration for the microbenchmark
void TestTaskWait(const DataPoint& data);
/// @brief Tasks are getting created, after a conditional function call
/// @param data the configuration for the microbenchmark
void TestTaskConditionalTrue(const DataPoint& data);
/// @brief Tasks are not getting created, after a conditional function call
/// @param data the configuration for the microbenchmark
void TestTaskConditionalFalse(const DataPoint& data);
/// @brief Reference implementation for task creation overhead
/// @param data the configuration for the reference
void Reference(const DataPoint& data);
#endif //PPT_P4_TASK_H