accelforge.plotting package#

Submodules#

accelforge.plotting.mappings module#

accelforge.plotting.roofline module#

accelforge.plotting.roofline.plot_roofline(bandwidth, computational_throughput, min_computational_intensity=0, max_computational_intensity=None)[source]#

Plot a roofline model.

Parameters:
  • bandwidth (Number) – The memory bandwidth to use when generating the roofline.

  • computational_throughput (Number) – The peak computational throughput to use when generating the roofline.

  • min_computational_intensity (Number) – The minimum computational intensity to include in the x-axis.

  • max_computational_intensity (Number) – The maximum computational intensity to include in the x-axis.

accelforge.plotting.skislope module#

accelforge.plotting.skislope.generate_ski_slope(workload_fname, einsum_names=None, jinja_parse_data=None, ax=None, y_normalizer=1.0, **plot_kwargs)[source]#
accelforge.plotting.skislope.plot_step(xs, ys, ax=None, **plot_kwargs)[source]#

Plot a staircase pattern (flat then drop) from sorted (x, y) points.

Parameters:
  • points – list of (x, y) tuples, sorted by x

  • ax – optional matplotlib axis

  • plot_kwargs – passed to plt.plot()

accelforge.plotting.specs module#

accelforge.plotting.specs.plot_area(specs, labels=None, ax=None)[source]#

Plot area of one or more specs.

Parameters:
  • specs (Iterable[Spec]) – An iterable of specifications.

  • labels (Iterable[str]) – An iterable of the same length as specs to use as labels in the plot.

  • ax (Axes) – An matplotlib Axes to use. A new one is created by default.

Module contents#