The Gaudi Framework  master (37c0b60a)
plotSpeedupsPyRoot Namespace Reference

Functions

def scaleCores (n_threads)
 
def getText (x, y, text, scale, angle, colour, font)
 
def formatGraphs (graph, graphc)
 
def createFname (neif, nt, cFlag)
 
def xtractTiming (neif, nt, cFlag)
 

Variables

 fname_template
 
 neif_l
 
 nts
 
 cFlags
 
 ScalarTime
 
 LegendDrawOpts
 
 LineColours
 
 MarkerStyles
 
 MarkerSize
 
 LineWidth
 
 LineStyle
 
 graph_counter
 
 PhCores
 
 TotalCores
 
 HtCoreWeight
 
 LabelsFont
 
 LabelsSize
 
 scaleThreads
 
 len_nt
 
 idealSpeedup
 
 scaled_s
 
 neif_graphs
 
 graph
 
 graphc
 
 counter
 
 scaled_tn
 
 time
 
 timec
 
 canvas
 
 line
 
 legend
 
 ph_cores
 
 ht_cores
 
 is_text
 
 ht_weight
 

Function Documentation

◆ createFname()

def plotSpeedupsPyRoot.createFname (   neif,
  nt,
  cFlag 
)

Definition at line 110 of file plotSpeedupsPyRoot.py.

110 def createFname(neif, nt, cFlag):
111  return fname_template % (neif, nt, cFlag)
112 
113 
114 # --------------------
115 
116 

◆ formatGraphs()

def plotSpeedupsPyRoot.formatGraphs (   graph,
  graphc 
)

Definition at line 94 of file plotSpeedupsPyRoot.py.

94 def formatGraphs(graph, graphc):
95  global graph_counter
96  graphc.SetLineStyle(LineStyle)
97  graphs = (graph, graphc)
98  for g in graphs:
99  g.SetLineWidth(LineWidth)
100  g.SetMarkerSize(MarkerSize)
101  g.SetMarkerStyle(MarkerStyles[graph_counter])
102  g.SetLineColor(LineColours[graph_counter])
103  g.SetMarkerColor(LineColours[graph_counter])
104  graph_counter += 1
105 
106 
107 # --------------------
108 
109 

◆ getText()

def plotSpeedupsPyRoot.getText (   x,
  y,
  text,
  scale,
  angle,
  colour,
  font 
)

Definition at line 82 of file plotSpeedupsPyRoot.py.

82 def getText(x, y, text, scale, angle, colour, font):
83  lat = ROOT.TLatex(
84  x, y, "#scale[%s]{#color[%s]{#font[%s]{%s}}}" % (scale, colour, font, text)
85  )
86  if angle != 0.0:
87  lat.SetTextAngle(angle)
88  return lat
89 
90 
91 # --------------------
92 
93 

◆ scaleCores()

def plotSpeedupsPyRoot.scaleCores (   n_threads)

Definition at line 71 of file plotSpeedupsPyRoot.py.

71 def scaleCores(n_threads):
72  effective_n_threads = n_threads
73  if effective_n_threads > PhCores:
74  ht_cores = n_threads - PhCores
75  effective_n_threads = PhCores + ht_cores * HtCoreWeight
76  return effective_n_threads
77 
78 
79 # --------------------
80 
81 

◆ xtractTiming()

def plotSpeedupsPyRoot.xtractTiming (   neif,
  nt,
  cFlag 
)

Definition at line 117 of file plotSpeedupsPyRoot.py.

117 def xtractTiming(neif, nt, cFlag):
118  filename = createFname(neif, nt, cFlag)
119  ifile = open(filename, "r")
120  seconds = -1
121  for line in ifile:
122  if "seconds" in line:
123  line = line[:-1]
124  seconds = float(line.split(" ")[-1])
125  break
126  ifile.close()
127  if seconds == -1:
128  seconds = xtractTiming(neif, nts[nts.index(nt) - 1], cFlag)
129  return seconds
130 
131 
132 # --------------------
133 

Variable Documentation

◆ canvas

plotSpeedupsPyRoot.canvas

Definition at line 191 of file plotSpeedupsPyRoot.py.

◆ cFlags

plotSpeedupsPyRoot.cFlags

Definition at line 34 of file plotSpeedupsPyRoot.py.

◆ counter

plotSpeedupsPyRoot.counter

Definition at line 175 of file plotSpeedupsPyRoot.py.

◆ fname_template

plotSpeedupsPyRoot.fname_template

Definition at line 26 of file plotSpeedupsPyRoot.py.

◆ graph

plotSpeedupsPyRoot.graph

Definition at line 168 of file plotSpeedupsPyRoot.py.

◆ graph_counter

plotSpeedupsPyRoot.graph_counter

Definition at line 59 of file plotSpeedupsPyRoot.py.

◆ graphc

plotSpeedupsPyRoot.graphc

Definition at line 172 of file plotSpeedupsPyRoot.py.

◆ ht_cores

plotSpeedupsPyRoot.ht_cores

Definition at line 220 of file plotSpeedupsPyRoot.py.

◆ ht_weight

plotSpeedupsPyRoot.ht_weight

Definition at line 224 of file plotSpeedupsPyRoot.py.

◆ HtCoreWeight

plotSpeedupsPyRoot.HtCoreWeight

Definition at line 63 of file plotSpeedupsPyRoot.py.

◆ idealSpeedup

plotSpeedupsPyRoot.idealSpeedup

Definition at line 151 of file plotSpeedupsPyRoot.py.

◆ is_text

plotSpeedupsPyRoot.is_text

Definition at line 222 of file plotSpeedupsPyRoot.py.

◆ LabelsFont

plotSpeedupsPyRoot.LabelsFont

Definition at line 65 of file plotSpeedupsPyRoot.py.

◆ LabelsSize

plotSpeedupsPyRoot.LabelsSize

Definition at line 66 of file plotSpeedupsPyRoot.py.

◆ legend

plotSpeedupsPyRoot.legend

Definition at line 209 of file plotSpeedupsPyRoot.py.

◆ LegendDrawOpts

plotSpeedupsPyRoot.LegendDrawOpts

Definition at line 39 of file plotSpeedupsPyRoot.py.

◆ len_nt

plotSpeedupsPyRoot.len_nt

Definition at line 149 of file plotSpeedupsPyRoot.py.

◆ line

plotSpeedupsPyRoot.line

Definition at line 198 of file plotSpeedupsPyRoot.py.

◆ LineColours

plotSpeedupsPyRoot.LineColours

Definition at line 40 of file plotSpeedupsPyRoot.py.

◆ LineStyle

plotSpeedupsPyRoot.LineStyle

Definition at line 58 of file plotSpeedupsPyRoot.py.

◆ LineWidth

plotSpeedupsPyRoot.LineWidth

Definition at line 57 of file plotSpeedupsPyRoot.py.

◆ MarkerSize

plotSpeedupsPyRoot.MarkerSize

Definition at line 56 of file plotSpeedupsPyRoot.py.

◆ MarkerStyles

plotSpeedupsPyRoot.MarkerStyles

Definition at line 48 of file plotSpeedupsPyRoot.py.

◆ neif_graphs

plotSpeedupsPyRoot.neif_graphs

Definition at line 166 of file plotSpeedupsPyRoot.py.

◆ neif_l

plotSpeedupsPyRoot.neif_l

Definition at line 30 of file plotSpeedupsPyRoot.py.

◆ nts

plotSpeedupsPyRoot.nts

Definition at line 32 of file plotSpeedupsPyRoot.py.

◆ ph_cores

plotSpeedupsPyRoot.ph_cores

Definition at line 218 of file plotSpeedupsPyRoot.py.

◆ PhCores

plotSpeedupsPyRoot.PhCores

Definition at line 61 of file plotSpeedupsPyRoot.py.

◆ ScalarTime

plotSpeedupsPyRoot.ScalarTime

Definition at line 36 of file plotSpeedupsPyRoot.py.

◆ scaled_s

plotSpeedupsPyRoot.scaled_s

Definition at line 154 of file plotSpeedupsPyRoot.py.

◆ scaled_tn

plotSpeedupsPyRoot.scaled_tn

Definition at line 177 of file plotSpeedupsPyRoot.py.

◆ scaleThreads

plotSpeedupsPyRoot.scaleThreads

Definition at line 136 of file plotSpeedupsPyRoot.py.

◆ time

plotSpeedupsPyRoot.time

Definition at line 180 of file plotSpeedupsPyRoot.py.

◆ timec

plotSpeedupsPyRoot.timec

Definition at line 182 of file plotSpeedupsPyRoot.py.

◆ TotalCores

plotSpeedupsPyRoot.TotalCores

Definition at line 62 of file plotSpeedupsPyRoot.py.

plotSpeedupsPyRoot.getText
def getText(x, y, text, scale, angle, colour, font)
Definition: plotSpeedupsPyRoot.py:82
plotSpeedupsPyRoot.formatGraphs
def formatGraphs(graph, graphc)
Definition: plotSpeedupsPyRoot.py:94
plotSpeedupsPyRoot.xtractTiming
def xtractTiming(neif, nt, cFlag)
Definition: plotSpeedupsPyRoot.py:117
plotSpeedupsPyRoot.scaleCores
def scaleCores(n_threads)
Definition: plotSpeedupsPyRoot.py:71
plotSpeedupsPyRoot.createFname
def createFname(neif, nt, cFlag)
Definition: plotSpeedupsPyRoot.py:110