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

ENG-302: Remove and feature-gate parallel block execution #11

Draft
wants to merge 3 commits into
base: monza
Choose a base branch
from

Conversation

mzabaluev
Copy link
Collaborator

Description

Cut out or conditionally disable parallel block execution from aptos-vm and aptos-block-executor crates, removing the rayon dependency for the RISC0 build. Conditional compilation with feature-gating should be used when the APIs are also used in the host build.

Test Plan

  • Existing aptos-core test suite (except test code specifically exercising the parallel execution) must pass.
  • Integration PR on the movement SDK showing progress of the dependency cutdown.

This allows us to drop the rayon dependency from the
aptos-block-executor crate.
@mzabaluev mzabaluev force-pushed the mikhail/feature-gate-parallelism branch from 6aa5f7e to 1434fc3 Compare May 4, 2024 00:18
Put sharded block execution code and its associated rayon dependency
behind the "sharded" feature.
To avoid conditionally defined methods in the VMExecutor trait,
factor out the SerialVMExecutor trait that is a supertrait of
VMExecutor, gate VMExecutor with the "sharded" feature, and move the
non-sharded methods to the unconditional supertrait.
@mzabaluev
Copy link
Collaborator Author

The error I'm getting in unit tests after replacing parallel execution with sequential:

thread 'unit_tests::delta_counters' panicked at aptos-move/block-executor/src/executor.rs:270:21:
assertion left == right failed: Sequential execution must materialize deltas

@mzabaluev mzabaluev force-pushed the mikhail/feature-gate-parallelism branch from 1434fc3 to c11a9a2 Compare May 13, 2024 15:31
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.

1 participant