A class the implemens a constant-efficiency parallel task performance model. More...
#include <ConstantEfficiencyParallelModel.h>
Public Member Functions | |
double | getEfficiency () |
Get the model's parallel efficiency. More... | |
std::vector< double > | getWorkPerThread (double total_work, unsigned long num_threads) override |
Returns the amount of work each thread much perform. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from wrench::ParallelModel | |
static std::shared_ptr< ParallelModel > | AMDAHL (double alpha) |
Create an instance of an "Amdahl" parallel model. More... | |
static std::shared_ptr< ParallelModel > | CONSTANTEFFICIENCY (double efficiency) |
Create an instance of a "Constant Efficiency" parallel model. More... | |
static std::shared_ptr< ParallelModel > | CUSTOM (std::function< std::vector< double >(double, long)> lambda) |
Create an instance of a "Custom" parallel model. More... | |
Detailed Description
A class the implemens a constant-efficiency parallel task performance model.
Member Function Documentation
◆ getEfficiency()
double wrench::ConstantEfficiencyParallelModel::getEfficiency | ( | ) |
Get the model's parallel efficiency.
- Returns
- a parallel efficiency
◆ getWorkPerThread()
|
overridevirtual |
Returns the amount of work each thread much perform.
- Parameters
-
total_work total amount of work num_threads the number of threads
- Returns
- a vector of work amounts
Implements wrench::ParallelModel.
The documentation for this class was generated from the following files:
- ConstantEfficiencyParallelModel.h
- ConstantEfficiencyParallelModel.cpp