WRENCH  1.11
Cyberinfrastructure Simulation Workbench
Overview Installation Getting Started WRENCH 101 WRENCH 102
Public Member Functions | List of all members
wrench::AmdahlParallelModel Class Reference

A class that defines an Amdahl's Law-based parallel task performance model. More...

#include <AmdahlParallelModel.h>

Inheritance diagram for wrench::AmdahlParallelModel:
wrench::ParallelModel

Public Member Functions

double getAlpha ()
 Get the. 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< ParallelModelAMDAHL (double alpha)
 Create an instance of an "Amdahl" parallel model. More...
 
static std::shared_ptr< ParallelModelCONSTANTEFFICIENCY (double efficiency)
 Create an instance of a "Constant Efficiency" parallel model. More...
 
static std::shared_ptr< ParallelModelCUSTOM (std::function< std::vector< double >(double, long)> lambda)
 Create an instance of a "Custom" parallel model. More...
 

Detailed Description

A class that defines an Amdahl's Law-based parallel task performance model.

Member Function Documentation

◆ getAlpha()

double wrench::AmdahlParallelModel::getAlpha ( )

Get the.

Returns

◆ getWorkPerThread()

std::vector< double > wrench::AmdahlParallelModel::getWorkPerThread ( double  total_work,
unsigned long  num_threads 
)
overridevirtual

Returns the amount of work each thread much perform.

Parameters
total_worktotal amount of work
num_threadsthe number of threads
Returns
a vector of work amounts

Implements wrench::ParallelModel.


The documentation for this class was generated from the following files: