From 34aaaad34e72c921ea72d7b023e5a5270e76dd40 Mon Sep 17 00:00:00 2001 From: Matthijs Bijman Date: Mon, 27 Feb 2017 15:19:15 +0100 Subject: Add tasks that run on 1 machine --- Simulator/include/simulation/workloads/Workload.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'Simulator/include/simulation/workloads/Workload.h') 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; }; } -- cgit v1.2.3