Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add mx performance script #567

Merged
merged 7 commits into from
Apr 4, 2024
Merged

Add mx performance script #567

merged 7 commits into from
Apr 4, 2024

Conversation

goodlyrottenapple
Copy link
Member

No description provided.

@goodlyrottenapple goodlyrottenapple marked this pull request as ready for review April 3, 2024 13:12
git submodule update --init --recursive --depth 1 kmxwasm/k-src/mx-semantics/


feature_shell "poetry -C kmxwasm install && make -C kmxwasm kbuild-haskell"
Copy link
Contributor

@geo2a geo2a Apr 3, 2024

Choose a reason for hiding this comment

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

Do we need to execute the same command in master_shell?

Also, will the LLVM backend shared library be built by make -C kmxwasm kbuild-haskell? @virgil-serbanuta @bbyalcinkaya could you have a look at this PR and make sure the script does what you'd expect?

Copy link
Member Author

@goodlyrottenapple goodlyrottenapple Apr 3, 2024

Choose a reason for hiding this comment

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

yes, master shell is used to compare our feature branch change to the current version of booster in mx

Copy link
Member Author

Choose a reason for hiding this comment

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

these steps are copied from the CI run in the mx repo:
https://github.com/runtimeverification/mx-backend/blob/872626e6a658bdbdc7914e5c1c01d19cffc3f11c/.github/workflows/test.yml#L96-L118
so hopefully should do the same thing....

Copy link
Member

Choose a reason for hiding this comment

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

I would guess that the poetry install and make kbuild-haskell are independent of the booster version, so we wouldn't have to repeat that command (we don't at the moment).
Better to have this confirmed by @virgil-serbanuta or @bbyalcinkaya , though.

Choose a reason for hiding this comment

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

The kasmer tool builds the semantics at start (for the Haskell backend, for the LLVM backend, and, if --booster is passed to the tool, it also builds the llvm library). Tests do something similar. make -C kmxwasm kbuild-haskell should not be needed unless you need to run things outside our tool (or, perhaps, you just want to check that it compiles).

Choose a reason for hiding this comment

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

FWIW, we will probably add the option to use an already-built semantics soon, we can try to do that sooner if you need it.

Copy link
Member

Choose a reason for hiding this comment

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

image

Copy link
Member

@jberthold jberthold left a comment

Choose a reason for hiding this comment

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

LGTM. Will test this locally (Linux) but we can merge and iterate (not user-facing)

@goodlyrottenapple goodlyrottenapple merged commit 754e6ca into main Apr 4, 2024
5 checks passed
@goodlyrottenapple goodlyrottenapple deleted the sam/performance-mx branch April 4, 2024 13:55
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.

4 participants