@@ -105,16 +105,6 @@ class Runtime
105105 */
106106 std::vector<std::unique_ptr<HiCR::ProcessingUnit>> _processingUnits;
107107
108- /* *
109- * Determines the maximum amount of tasks (required by the lock-free queue)
110- */
111- const size_t _maxTasks;
112-
113- /* *
114- * Determines the maximum amount of workers (required by the lock-free queue)
115- */
116- const size_t _maxWorkers;
117-
118108 /* *
119109 * This function checks whether a given task is ready to go (i.e., all its dependencies have been satisfied)
120110 *
@@ -139,18 +129,13 @@ class Runtime
139129 /* *
140130 * Constructor of the example tasking runtime.
141131 */
142- Runtime (HiCR::ComputeManager *executionStateComputeManager,
143- HiCR::ComputeManager *processingUnitComputeManager,
144- const size_t maxTasks = __TASKR_DEFAULT_MAX_TASKS,
145- const size_t maxWorkers = __TASKR_DEFAULT_MAX_WORKERS)
132+ Runtime (HiCR::ComputeManager *executionStateComputeManager, HiCR::ComputeManager *processingUnitComputeManager, const size_t maxTasks = __TASKR_DEFAULT_MAX_TASKS)
146133 : _executionStateComputeManager(executionStateComputeManager),
147- _processingUnitComputeManager (processingUnitComputeManager),
148- _maxTasks(maxTasks),
149- _maxWorkers(maxWorkers)
134+ _processingUnitComputeManager (processingUnitComputeManager)
150135 {
151136 _callbackMap = new HiCR::tasking::Task::taskCallbackMap_t ();
152137 _waitingTaskQueue = new HiCR::concurrent::Queue<HiCR::tasking::Task>(maxTasks);
153- _suspendedWorkerQueue = new HiCR::concurrent::Queue<HiCR::tasking::Worker>(maxWorkers );
138+ _suspendedWorkerQueue = new HiCR::concurrent::Queue<HiCR::tasking::Worker>(__TASKR_DEFAULT_MAX_WORKERS );
154139 }
155140
156141 // Destructor (frees previous allocations)
0 commit comments