Skip to content

Added process.create_runtime method#674

Merged
bamsumit merged 4 commits intomainfrom
673-add-the-ability-to-prepare-a-process-to-run-without-running-it
May 5, 2023
Merged

Added process.create_runtime method#674
bamsumit merged 4 commits intomainfrom
673-add-the-ability-to-prepare-a-process-to-run-without-running-it

Conversation

@tim-shea
Copy link
Copy Markdown
Contributor

Issue Number: #673

Objective of pull request:
Add a method to process to create and initialize a runtime without running it.

Your PR fulfills the following requirements:

  • [Y] Issue created that explains the change and why it's needed
  • [Y] Tests are part of the PR (for bug fixes / features)
  • [Y] Docs reviewed and added / updated if needed (for bug fixes / features)
  • [Y] PR conforms to Coding Conventions
  • [Y] PR applys BSD 3-clause or LGPL2.1+ Licenses to all code files
  • [Y] Lint (flakeheaven lint src/lava tests/) and (bandit -r src/lava/.) pass locally
  • [Y] Build tests (pytest) passes locally

Pull request type

Please check your PR type:

  • Feature

What is the current behavior?

  • Process creates and initializes runtime the first time run is called.

What is the new behavior?

  • Process creates and initializes runtime when create_runtime is called, which will be automatically called from run if no runtime is already created.

Does this introduce a breaking change?

  • No

Adding a method as a convenience for pre-compiling a process, which is helpful when demonstrating code that takes a long time to compile.
Fixed error due to pickling an anonymous type which fails in Windows CI.
Copy link
Copy Markdown
Contributor

@PhilippPlank PhilippPlank left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

@bamsumit bamsumit merged commit 4d29e23 into main May 5, 2023
@tim-shea tim-shea added this to the Lava v0.7.1 milestone May 15, 2023
monkin77 pushed a commit to monkin77/thesis-lava that referenced this pull request Jul 12, 2024
* Added process.create_runtime method

Adding a method as a convenience for pre-compiling a process, which is helpful when demonstrating code that takes a long time to compile.

* Fixing windows test error

Fixed error due to pickling an anonymous type which fails in Windows CI.

* Fixing flake error
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add the ability to prepare a process to run without running it.

3 participants