10 #ifndef WRENCH_CUSTOMPARALLELMODEL_H
11 #define WRENCH_CUSTOMPARALLELMODEL_H
13 #include "wrench/workflow/parallel_model/ParallelModel.h"
31 std::vector<double>
getWorkPerThread(
double total_work,
unsigned long num_threads)
override;
45 std::function<std::vector<double>(
double,
unsigned long)> lambda;
51 #endif //WRENCH_CUSTOMPARALLELMODEL_H
std::vector< double > getWorkPerThread(double total_work, unsigned long num_threads) override
Returns the amount of work each thread much perform.
Definition: CustomParallelModel.cpp:34
A class that defines a custom parallel task performance model.
Definition: CustomParallelModel.h:23
A virtual class (with convenient static methods) to define parallel task performance models.
Definition: ParallelModel.h:23