Skip to content

Conversation

@srinathb-meta
Copy link
Contributor

Summary: This diff implements a pre-extracted sources snapshot system for rcclx that eliminates ABI mismatch issues by building rcclx from source at build time instead of using pre-compiled bundled dependencies. The key change replaces the previous Manifold-based snapshot approach with a simpler file-based approach where rcclx sources from specific commits are extracted and committed to the repository under comms/rcclx/snapshots/{stable,last-stable}/. The create_snapshot.py script uses sl archive to extract sources from specified commits, then automatically fixes absolute Buck load paths (e.g., fbcode//comms/rcclx/develop:def_build.bzl) to point within the snapshot directory, ensuring each snapshot is self-contained. Additionally, the script adds compiler flags (-Wno-deprecated-this-capture, -Wno-unused-exception-parameter) to suppress warnings that weren't errors when the snapshot code was written but are now treated as errors with current compiler settings. The BUCK file defines rcclx-stable and rcclx-last-stable aliases that point to the snapshot's rcclx-dev target, allowing downstream consumers to build against stable rcclx versions with guaranteed ABI compatibility. Obsolete Manifold-related scripts have been removed as they are no longer needed.

Reviewed By: dmwu

Differential Revision: D91904438

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

meta-codesync bot commented Feb 1, 2026

@srinathb-meta has exported this pull request. If you are a Meta employee, you can view the originating Diff in D91904438.

srinathb-meta added a commit to srinathb-meta/torchcomms that referenced this pull request Feb 1, 2026
…ontained build (meta-pytorch#520)

Summary:
Pull Request resolved: meta-pytorch#520

This diff implements a pre-extracted sources snapshot system for rcclx that eliminates ABI mismatch issues by building rcclx from source at build time instead of using pre-compiled bundled dependencies. The key change replaces the previous Manifold-based snapshot approach with a simpler file-based approach where rcclx sources from specific commits are extracted and committed to the repository under comms/rcclx/snapshots/{stable,last-stable}/. The create_snapshot.py script uses sl archive to extract sources from specified commits, then automatically fixes absolute Buck load paths (e.g., fbcode//comms/rcclx/develop:def_build.bzl) to point within the snapshot directory, ensuring each snapshot is self-contained. Additionally, the script adds compiler flags (-Wno-deprecated-this-capture, -Wno-unused-exception-parameter) to suppress warnings that weren't errors when the snapshot code was written but are now treated as errors with current compiler settings. The BUCK file defines rcclx-stable and rcclx-last-stable aliases that point to the snapshot's rcclx-dev target, allowing downstream consumers to build against stable rcclx versions with guaranteed ABI compatibility. Obsolete Manifold-related scripts have been removed as they are no longer needed.

Reviewed By: dmwu

Differential Revision: D91904438
srinathb-meta added a commit to srinathb-meta/torchcomms that referenced this pull request Feb 1, 2026
…ontained build (meta-pytorch#520)

Summary:
Pull Request resolved: meta-pytorch#520

This diff implements a pre-extracted sources snapshot system for rcclx that eliminates ABI mismatch issues by building rcclx from source at build time instead of using pre-compiled bundled dependencies. The key change replaces the previous Manifold-based snapshot approach with a simpler file-based approach where rcclx sources from specific commits are extracted and committed to the repository under comms/rcclx/snapshots/{stable,last-stable}/. The create_snapshot.py script uses sl archive to extract sources from specified commits, then automatically fixes absolute Buck load paths (e.g., fbcode//comms/rcclx/develop:def_build.bzl) to point within the snapshot directory, ensuring each snapshot is self-contained. Additionally, the script adds compiler flags (-Wno-deprecated-this-capture, -Wno-unused-exception-parameter) to suppress warnings that weren't errors when the snapshot code was written but are now treated as errors with current compiler settings. The BUCK file defines rcclx-stable and rcclx-last-stable aliases that point to the snapshot's rcclx-dev target, allowing downstream consumers to build against stable rcclx versions with guaranteed ABI compatibility. Obsolete Manifold-related scripts have been removed as they are no longer needed.

Reviewed By: dmwu

Differential Revision: D91904438
…ontained build

Summary: This diff implements a pre-extracted sources snapshot system for rcclx that eliminates ABI mismatch issues by building rcclx from source at build time instead of using pre-compiled bundled dependencies. The key change replaces the previous Manifold-based snapshot approach with a simpler file-based approach where rcclx sources from specific commits are extracted and committed to the repository under comms/rcclx/snapshots/{stable,last-stable}/. The create_snapshot.py script uses sl archive to extract sources from specified commits, then automatically fixes absolute Buck load paths (e.g., fbcode//comms/rcclx/develop:def_build.bzl) to point within the snapshot directory, ensuring each snapshot is self-contained. Additionally, the script adds compiler flags (-Wno-deprecated-this-capture, -Wno-unused-exception-parameter) to suppress warnings that weren't errors when the snapshot code was written but are now treated as errors with current compiler settings. The BUCK file defines rcclx-stable and rcclx-last-stable aliases that point to the snapshot's rcclx-dev target, allowing downstream consumers to build against stable rcclx versions with guaranteed ABI compatibility. Obsolete Manifold-related scripts have been removed as they are no longer needed.

Reviewed By: dmwu

Differential Revision: D91904438
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. fb-exported meta-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant