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 (a number between 0.0 and 1.0)

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)

void setEfficiency(double efficiency)

Set the model’s parallel efficiency.

Parameters:

eff – a parallel efficiency (a number between 0.0 and 1.0)