Repository navigation
refactor(sv): lower the package state modules as self-contained tasks - #4856
Conversation
Each package state module is lowered by a task that owns its module and returns its warnings, the lines of its recursion report and its result; `lower_package_states` passes them on in the order of the modules, up to the first that fails, as the loop that lowered them one after another did. The tasks still run one after another on the calling thread. The ordered task runner of the native backend (`compile_resources:: compile_tasks_with`) moves to `celox_frontend_core::tasks`, so that the frontend can use it too, with `run_owned` for tasks that own their input. Its worker threads now log through the caller's tracing dispatcher and get an 8 MiB stack, as the main thread has. No change in output. VeeR-EL2 (heliodor-dev): instructions:u 1197.11 / 1197.04 G -> 1197.10 G; its simulation executes 12740.84 M -> 12741.64 M instructions (+0.006%), the layout of the host binary after the runner moved between crates (the same with the runner's threads set up as before). Change-Id: Iba2b12367a0c9f2f5388d1dceee72b67caf56fb0
|
This pull request is part of a Mergify stack:
|
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Queue requested — the merge queue status continues in this comment ↓. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 490549f423
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
✅ Merged into
|
Each package state module is lowered by a task that owns its module and
returns its warnings, the lines of its recursion report and its result;
lower_package_statespasses them on in the order of the modules, up to thefirst that fails, as the loop that lowered them one after another did. The
tasks still run one after another on the calling thread.
The ordered task runner of the native backend (
compile_resources:: compile_tasks_with) moves tocelox_frontend_core::tasks, so that thefrontend can use it too, with
run_ownedfor tasks that own their input.Its worker threads now log through the caller's tracing dispatcher and get
an 8 MiB stack, as the main thread has. No change in output.
VeeR-EL2 (heliodor-dev): instructions:u 1197.11 / 1197.04 G -> 1197.10 G;
its simulation executes 12740.84 M -> 12741.64 M instructions (+0.006%),
the layout of the host binary after the runner moved between crates (the
same with the runner's threads set up as before).