Exemple #1
0
def print_pt(pt):
    print(pt[1]),
    print "\t\t\t",
    (navg, nstddev) = pt[2]
    print(
        human_readable.percent(navg) + "%\t\t\t" +
        human_readable.percent(nstddev) + "%\t\t\t" +
        human_readable.speedup(pt[3]) + "\t\t\t" +
        human_readable.speedup(pt[4]))
def print_compare_normalized (experiment_id, n_procs):
  problem_name=get.problem_name_of_experiment(experiment_id)
  print ("Problem: " + problem_name)
  print ("Number of Cores: " + str(n_procs))
  ((binput, bps, bspeedup, mltspeedup, mltlbsovhd, seqpmlcvsmlton, berror, lbs_ovhd, (bavg, bstddev)), norms)=compare_normalized(experiment_id, n_procs)
  print ("Best splitting strategy: " + bps + " (Error= " + human_readable.percent(berror) + "%) (Speedup vs. SeqPMLC= " + human_readable.speedup(bspeedup) + ") (Speedup vs. mlton= " + human_readable.speedup(mltspeedup) + ")")
  print ("Overhead of LBS vs. NS (PMLC)= " + human_readable.percent(lbs_ovhd)) + '%'
  print ("Overhead of LBS vs. NS (mlton)= " + human_readable.percent(mltlbsovhd))  + '%' 
  print ("Sequential PMLC vs. mlton (both NS)= " + human_readable.percent(seqpmlcvsmlton) + "%")
  print("Splitting strategy\t\tPct. slower\t\tError\t\t\tSpeedup vs. SeqPMLC\tSpeedup vs. mlton")
  for norm in norms:
    print_pt(norm)