rgpycrumbs.surrogate.plt_components

Draw where the wall of one layout goes, per cell, with the Amdahl bound.

Added in version 1.13.0.

TABLE is a tidy CSV with one row per run and component (columns cell, ranks, threads, repetition, component, seconds); the component named by --total is the whole wall and the others are non-nesting parts of it. The figure stacks the median seconds of each component at --layout for every cell (the rest of the total as unattributed) and, beside it, the bound 1/(1 - f) on the whole-run speedup if a component with share f took no time. The file is <prefix>-<layout>-components:

rgpycrumbs surrogate plt-components components.csv -o figs/where --layout 4x2 --cell 16_oxirane --cell 11_grignard

Attributes

Functions

main(*, table, prefix, layout, cells, total, title, ...)

Draw the component breakdown of LAYOUT for the cells of TABLE.

Module Contents

rgpycrumbs.surrogate.plt_components.warn_on_direct_script_import = None[source]
rgpycrumbs.surrogate.plt_components.main(*, table, prefix, layout, cells, total, title, fmt, dpi, font_dirs, font, legend_fontsize)[source]

Draw the component breakdown of LAYOUT for the cells of TABLE.