summaryrefslogtreecommitdiff
path: root/Simulator/include/simulation/workloads/Workload.h
diff options
context:
space:
mode:
authorMatthijs Bijman <matthijs@bijman.org>2017-02-27 15:19:15 +0100
committerMatthijs Bijman <matthijs@bijman.org>2017-02-27 15:19:15 +0100
commit34aaaad34e72c921ea72d7b023e5a5270e76dd40 (patch)
tree64c65d557c5323a23f4ce6f31b20da744d44badb /Simulator/include/simulation/workloads/Workload.h
parentcc5c5a7eac0ebcf97c283e1e0dd1674c855a261a (diff)
Add tasks that run on 1 machine
Diffstat (limited to 'Simulator/include/simulation/workloads/Workload.h')
-rw-r--r--Simulator/include/simulation/workloads/Workload.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/Simulator/include/simulation/workloads/Workload.h b/Simulator/include/simulation/workloads/Workload.h
index 0371deac..7e391d8d 100644
--- a/Simulator/include/simulation/workloads/Workload.h
+++ b/Simulator/include/simulation/workloads/Workload.h
@@ -12,7 +12,7 @@ namespace Simulation
/*
Initializes the TOTAL_FLOPS and the remainingFlops to the size.
*/
- Workload(int size, int startTick, int dbId, int traceId, int dependency);
+ Workload(int size, int startTick, int dbId, int traceId, int dependency, bool parallel);
/*
Decreases the remainingFlops by the given amount.
@@ -62,6 +62,11 @@ namespace Simulation
*/
uint32_t getCoresUsed();
+ /**
+ * \return Whether this workload can be spread across machines.
+ */
+ bool isParallelizable();
+
// True if the dependency of this workload has finished.
bool dependencyFinished = false;
@@ -89,5 +94,8 @@ namespace Simulation
// The number of cores that this workload is occupying
uint32_t coresUsed = 0;
+
+ // Whether this task can be parallelized across multiple machines.
+ bool isParallel = false;
};
}