benchbuild.extensions.run module

class benchbuild.extensions.run.Rerun(*extensions, config=None, **kwargs)[source]

Bases: benchbuild.extensions.base.Extension

class benchbuild.extensions.run.RuntimeExtension(project, experiment, *extensions, config=None)[source]

Bases: benchbuild.extensions.base.Extension

Default extension to execute and track a binary.

This can be used for runtime experiments to have a controlled, tracked execution of a wrapped binary.

class benchbuild.extensions.run.SetThreadLimit(*extensions, config=None, **kwargs)[source]

Bases: benchbuild.extensions.base.Extension

Sets the OpenMP thread limit, based on your settings.

This extension uses the ‘jobs’ settings and controls the environment variable OMP_NUM_THREADS.

class benchbuild.extensions.run.WithTimeout(*extensions, limit='10m', **kwargs)[source]

Bases: benchbuild.extensions.base.Extension

Guard a binary with a timeout.

This wraps a any binary with a call to timeout and sets the limit to a given value on extension construction.