wrench::ConstantEfficiencyParallelModel

class ConstantEfficiencyParallelModel : public wrench::ParallelModel

A class the implemens a constant-efficiency parallel task performance model.

Public Functions

double getEfficiency() const

Get the model’s parallel efficiency.

Returns

a parallel efficiency

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

Returns the parallel per-thread amount of work.

Parameters
  • total_work – total amount of work (in flops)

  • num_threads – number of threads

Returns

an amount of work (in flops)

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

Returns the purely sequential amount of work.

Parameters
  • total_work – total amount of work (in flops)

  • num_threads – number of threads

Returns

an amount of work (in flops)