thoth.adviser.wraps package

Submodules

thoth.adviser.wraps.mkl_threads module

A wrap that notifies about adjusting environment variables when Intel’s MKL is used.

https://software.intel.com/en-us/mkl-linux-developer-guide-setting-the-number-of-openmp-threads

class thoth.adviser.wraps.mkl_threads.MKLThreadsWrap(*, configuration: Dict[str, Any] = NOTHING, name: str = None)[source]

Bases: thoth.adviser.wrap.Wrap

A wrap that notifies about Intel’s MKL thread configuration for containerized deployments.

https://software.intel.com/en-us/mkl-linux-developer-guide-setting-the-number-of-openmp-threads

run(state: thoth.adviser.state.State) → None[source]

Check for libraries using PyTorch.

classmethod should_include(builder_context: PipelineBuilderContext)[source]

Include this wrap in adviser, once.

thoth.adviser.wraps.no_onservation module

A wrap that notifies about missing observations.

class thoth.adviser.wraps.no_onservation.NoObservationWrap(*, configuration: Dict[str, Any] = NOTHING, name: str = None)[source]

Bases: thoth.adviser.wrap.Wrap

A wrap that notifies about missing observations.

run(state: thoth.adviser.state.State) → None[source]

Check for no observations made on the given state.

classmethod should_include(builder_context: PipelineBuilderContext)[source]

Include this wrap in adviser, once.

thoth.adviser.wraps.no_semantic_interposition module

A wrap that notifies about optimized Python3.8 builds on RHEL with -fno-semantic-interposition.

class thoth.adviser.wraps.no_semantic_interposition.NoSemanticInterpositionWrap(*, configuration: Dict[str, Any] = NOTHING, name: str = None)[source]

Bases: thoth.adviser.wrap.Wrap

A wrap that recommends to switch to Python 3.8 on RHEL 8.2.

https://developers.redhat.com/blog/2020/06/25/red-hat-enterprise-linux-8-2-brings-faster-python-3-8-run-speeds/

run(state: thoth.adviser.state.State) → None[source]

Recommend using Python3.8 on RHEL/UBI 8.2.

classmethod should_include(builder_context: PipelineBuilderContext) → Optional[Dict[str, Any]][source]

Include this wrap in adviser for RHEL/UBI 8.2.

Module contents

Wrap units implemented in adviser.

class thoth.adviser.wraps.MKLThreadsWrap(*, configuration: Dict[str, Any] = NOTHING, name: str = None)[source]

Bases: thoth.adviser.wrap.Wrap

A wrap that notifies about Intel’s MKL thread configuration for containerized deployments.

https://software.intel.com/en-us/mkl-linux-developer-guide-setting-the-number-of-openmp-threads

run(state: thoth.adviser.state.State) → None[source]

Check for libraries using PyTorch.

classmethod should_include(builder_context: PipelineBuilderContext)[source]

Include this wrap in adviser, once.

class thoth.adviser.wraps.NoObservationWrap(*, configuration: Dict[str, Any] = NOTHING, name: str = None)[source]

Bases: thoth.adviser.wrap.Wrap

A wrap that notifies about missing observations.

run(state: thoth.adviser.state.State) → None[source]

Check for no observations made on the given state.

classmethod should_include(builder_context: PipelineBuilderContext)[source]

Include this wrap in adviser, once.

class thoth.adviser.wraps.NoSemanticInterpositionWrap(*, configuration: Dict[str, Any] = NOTHING, name: str = None)[source]

Bases: thoth.adviser.wrap.Wrap

A wrap that recommends to switch to Python 3.8 on RHEL 8.2.

https://developers.redhat.com/blog/2020/06/25/red-hat-enterprise-linux-8-2-brings-faster-python-3-8-run-speeds/

run(state: thoth.adviser.state.State) → None[source]

Recommend using Python3.8 on RHEL/UBI 8.2.

classmethod should_include(builder_context: PipelineBuilderContext) → Optional[Dict[str, Any]][source]

Include this wrap in adviser for RHEL/UBI 8.2.