Add inject-transport-session pass to emit transport session IR - #3063
Merged
Conversation
Assisted-by: Claude Opus 4.8
Assisted-by: Claude Opus 4.8
Co-authored-by: Mehrdad Malek <39844030+mehrdad2m@users.noreply.github.com>
Co-authored-by: Mehrdad Malek <39844030+mehrdad2m@users.noreply.github.com>
Co-authored-by: Mehrdad Malek <39844030+mehrdad2m@users.noreply.github.com>
Co-authored-by: Mehrdad Malek <39844030+mehrdad2m@users.noreply.github.com>
rniczh
approved these changes
Jul 30, 2026
multiphaseCFD
approved these changes
Jul 31, 2026
multiphaseCFD
left a comment
Member
There was a problem hiding this comment.
Thanks @mehrdad2m ! Nice work!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Context:
Backline places a QNode's controller and its coprocessors on separate executors that talk over a transport. The placement is serialized onto the module as the catalyst.backline attribute (controller + coprocessors + per-node backend/peer/triple/data-path info). This pass turns that declarative attribute into the concrete transport-dialect session lifecycle, wired into the setup/teardown functions the runtime already calls around every execution.
Description of the Change:
Reading
catalyst.backline,the pass injects, per session:bring-up into
@setup:transport.create→connect→exchange_keys→establish_channel→commit_work_item(controller) /set_coprocessor_fn(coprocessor) → starttear-down into
@teardown:get_session→stop→destroyTopologies handled:
connect/exchange_keysrun async so the two ends handshake concurrently.module_coproctagged with its catalyst.target triple and catalyst.dispatch address; the host launchescoproc_serve(nonblocking) /coproc_stop.setup_transport/teardown_transportand the host@setup/@teardownbecome the single orchestration point that launches every dispatched role in dependency order (serve → controller setup; coproc stop → controller teardown), and@setupis marked catalyst.backline_bringup so the object-shipping pass knows where to ship from.Benefits:
Possible Drawbacks:
Related GitHub Issues: