wrench::AmdahlParallelModel

class AmdahlParallelModel : public wrench::ParallelModel

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

Public Functions

double getAlpha() const

Get the Amdahl Law’s alpha parameter.

Returns

the alpha parameter

virtual double getParallelPerThreadWork(double total_work, unsigned long num_threads) override

Get the amount of per-thread parallel work.

Parameters
  • total_work – the total work

  • num_threads – the number of threads

Returns

an amount of work in flops

virtual double getPurelySequentialWork(double total_work, unsigned long num_threads) override

Get the amount of purely sequential work.

Parameters
  • total_work – the total work

  • num_threads – the number of threads

Returns

an amount of work in flops