devito.dse.backends package

Submodules

devito.dse.backends.advanced module

class devito.dse.backends.advanced.AdvancedRewriter(profile=True, template=None)[source]

Bases: devito.dse.backends.basic.BasicRewriter

devito.dse.backends.basic module

class devito.dse.backends.basic.BasicRewriter(profile=True, template=None)[source]

Bases: devito.dse.backends.common.AbstractRewriter

devito.dse.backends.common module

class devito.dse.backends.common.AbstractRewriter(profile=True, template=None)[source]

Bases: object

Transform a cluster of SymPy expressions into one or more clusters, overall performing fewer arithmetic operations.

run(cluster)[source]
tempname = 'r'

Bag of thresholds, used to trigger or prevent certain transformations.

thresholds = {'max-operands': 40, 'min-cost-alias': 10, 'min-cost-factorize': 100}
class devito.dse.backends.common.State(cluster, template)[source]

Bases: object

update(clusters)[source]
devito.dse.backends.common.dse_pass(func)[source]

devito.dse.backends.speculative module

class devito.dse.backends.speculative.AggressiveRewriter(profile=True, template=None)[source]

Bases: devito.dse.backends.speculative.SpeculativeRewriter

class devito.dse.backends.speculative.CustomRewriter(profile=True, template=None)[source]

Bases: devito.dse.backends.speculative.AggressiveRewriter

class devito.dse.backends.speculative.SpeculativeRewriter(profile=True, template=None)[source]

Bases: devito.dse.backends.advanced.AdvancedRewriter

Module contents