Skip to content

Reuse one implementation object graph (#4290) - #4290

Open
xgz2 wants to merge 5 commits into
meta-pytorch:mainfrom
xgz2:export-D122385730
Open

xgz2 wants to merge 5 commits into
meta-pytorch:mainfrom
xgz2:export-D122385730

Conversation

@xgz2

@xgz2 xgz2 commented Oct 1, 2026 •

Copy link
Copy Markdown

Summary:

Compile the UniFlow implementation as position-independent object targets and collect them in one reusable target graph. Both the installable library and the Python extension can consume that graph without maintaining separate source lists.

Differential Revision: D122385730

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Oct 1, 2026
@meta-codesync

meta-codesync Bot commented Oct 1, 2026

Copy link
Copy Markdown
Contributor

@xgz2 has exported this pull request. If you are a Meta employee, you can view the originating Diff in D122385730.

xgz2 added a commit to xgz2/torchcomms that referenced this pull request Oct 1, 2026
Summary:
Pull Request resolved: meta-pytorch#4290

Compile the UniFlow implementation as position-independent object targets and collect them in one reusable target graph. Both the installable library and the Python extension can consume that graph without maintaining separate source lists.

Differential Revision: D122385730
@xgz2
xgz2 force-pushed the export-D122385730 branch from ccefca2 to f8a78a4 Compare October 1, 2026 05:26
@meta-codesync meta-codesync Bot changed the title Reuse one implementation object graph Reuse one implementation object graph (#4290) Oct 1, 2026
xgz2 added a commit to xgz2/torchcomms that referenced this pull request Oct 1, 2026
Summary:
Pull Request resolved: meta-pytorch#4290

Compile the UniFlow implementation as position-independent object targets and collect them in one reusable target graph. Both the installable library and the Python extension can consume that graph without maintaining separate source lists.

Differential Revision: D122385730
@xgz2
xgz2 force-pushed the export-D122385730 branch from f8a78a4 to 4ad8bf5 Compare October 1, 2026 05:59
xgz2 added a commit to xgz2/torchcomms that referenced this pull request Oct 1, 2026
Summary:
Pull Request resolved: meta-pytorch#4290

Compile the UniFlow implementation as position-independent object targets and collect them in one reusable target graph. Both the installable library and the Python extension can consume that graph without maintaining separate source lists.

Differential Revision: D122385730
@xgz2
xgz2 force-pushed the export-D122385730 branch from 4ad8bf5 to 1d93c2e Compare October 1, 2026 06:06
xgz2 added a commit to xgz2/torchcomms that referenced this pull request Oct 1, 2026
Summary:
Pull Request resolved: meta-pytorch#4290

Compile the UniFlow implementation as position-independent object targets and collect them in one reusable target graph. Both the installable library and the Python extension can consume that graph without maintaining separate source lists.

Differential Revision: D122385730
@xgz2
xgz2 force-pushed the export-D122385730 branch from 1d93c2e to 6a48ef6 Compare October 1, 2026 07:03
xgz2 added 4 commits October 1, 2026 13:31
Summary: Define one explicit list of the headers that make up UniFlow's public C++ API. This gives installation and compile checks a single source of truth and prevents internal headers from becoming public by accident.

Differential Revision: D122385726
Summary: Make UniFlow configure from any source or build directory without a parent-tree ROOT setting. CMake creates the expected include layout in the build directory, scopes include paths to targets, uses RelWithDebInfo as the standalone default, and discovers either system fmt and spdlog packages or pinned bundled copies.

Differential Revision: D122385727
Summary: Add options that control whether CUDA, RDMA, NVLink, TCP, tests, benchmarks, and Python support are built. CUDA builds now require CUDA Toolkit 12.8 or newer. A build with CUDA disabled skips all CUDA-dependent code, while existing HIP and non-CMake behavior remains unchanged.

Differential Revision: D122385728
Summary: Read the UniFlow version from one VERSION file, then install the C++ library, reviewed public headers, fmt and spdlog dependencies when bundled, and CMake package files into standard directories. A separate project can find and link UniFlow without access to its source tree.

Differential Revision: D122385729
xgz2 added a commit to xgz2/torchcomms that referenced this pull request Oct 1, 2026
Summary:
Pull Request resolved: meta-pytorch#4290

Compile the UniFlow implementation as position-independent object targets and collect them in one reusable target graph. Both the installable library and the Python extension can consume that graph without maintaining separate source lists.

Differential Revision: D122385730
@xgz2
xgz2 force-pushed the export-D122385730 branch from 6a48ef6 to 16f5377 Compare October 1, 2026 21:04
Summary:
Pull Request resolved: meta-pytorch#4290

Compile the UniFlow implementation as position-independent object targets and collect them in one reusable target graph. Both the installable library and the Python extension can consume that graph without maintaining separate source lists.

Differential Revision: D122385730
@xgz2
xgz2 force-pushed the export-D122385730 branch from 16f5377 to 81f417b Compare October 2, 2026 01:44

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot. meta-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant