Repository navigation
✴️ iz2: Add PhiloxStatelessRNG.cpp to build_variables.bzl (sync with internal) - #192615
Closed
izaitsevfb wants to merge 1 commit into
Closed
izaitsevfb wants to merge 1 commit into
izaitsevfb wants to merge 1 commit into
Conversation
PR #177692 ("CPU support for stateless RNG APIs") added aten/src/ATen/native/PhiloxStatelessRNG.cpp but did not register it in build_variables.bzl. The internal DiffTrain import of that PR added the entry to the internal copy before landing, so the two copies of this file have been out of sync since. This adds the same single line to the OSS copy, making build_variables.bzl identical on both sides. No effect on the default CMake build, which picks the file up via the file(GLOB native_cpp "native/*.cpp") branch of the BUILD_LITE_INTERPRETER if/else in aten/src/ATen/CMakeLists.txt. It does add the file to the other branch and to the buck path, which read the explicit list.
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/192615
Note: Links to docs will display an error until the docs builds have been completed. ✅ You can merge normally! (2 Unrelated Failures)As of commit 6ea0c98 with merge base 0754e4e ( CRCR (non-blocking) - The following CRCR downstream CI jobs failed but are non-blocking:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
|
PR approved to be merged without human review Whyreason: |
Skylion007
approved these changes
Aug 8, 2026
Contributor
Author
|
@pytorchbot merge |
Collaborator
Merge startedYour change will be merged once all checks pass (ETA 0-4 Hours). Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
ankitbhrdwj
pushed a commit
to ankitbhrdwj/pytorch
that referenced
this pull request
Aug 12, 2026
…internal) (pytorch#192615) ✴️ iz2: (opened by Ivan's agent on his behalf) pytorch#177692 ("CPU support for stateless RNG APIs") added `aten/src/ATen/native/PhiloxStatelessRNG.cpp` but did not register it in `build_variables.bzl`. When that PR was imported internally, the entry was added to the internal copy of `build_variables.bzl` before it landed. The two copies of the file have been out of sync since. This adds the same single line to the OSS copy, so `build_variables.bzl` matches on both sides. The entry goes into `aten_native_source_non_codegen_list`, in sorted position between `PackedSequence.cpp` and `PixelShuffle.cpp`. ### Build impact No effect on the default CMake build. `aten/src/ATen/CMakeLists.txt` has an if/else on `BUILD_LITE_INTERPRETER`: the `append_filelist("aten_native_source_non_codegen_list" ...)` call is only in the `ON` branch, while the default `OFF` branch composes `all_cpu_cpp` from `file(GLOB native_cpp "native/*.cpp")`, which already picks this file up. The two branches are mutually exclusive, so there is no double-add. The change does add the file to the source list used by the `BUILD_LITE_INTERPRETER=ON` branch and by the buck path (`aten_native_source_list` → `buckbuild.bzl`, `pt_template_srcs.bzl`), where it is currently absent. That is a real change in source composition for those configurations rather than pure metadata, so it is worth calling out — though it is the composition the file's own `native_functions.yaml` CPU dispatch entries imply. The equivalent internal buck build already compiles this file from a list containing this exact line. ### Verification - `build_variables.bzl` on this branch is byte-identical to the internal copy as of internal master `63074c69e3aa` (both 79151 bytes, matching md5). Before this change the OSS copy was 79100 bytes and the only difference between the two files was this one line, in one direction — there were no OSS-only lines. - `lintrunner` is clean. Byte-identity is stated against that named internal snapshot; it is not a claim about future drift. Pull Request resolved: pytorch#192615 Approved by: https://github.com/pytorchgreenlight, https://github.com/Skylion007
github-actions
Bot
deleted the
izaitsevfb/sync-build-variables-philox-stateless-rng
branch
November 1, 2026 01:49
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.
✴️ iz2: (opened by Ivan's agent on his behalf)
#177692 ("CPU support for stateless RNG APIs") added
aten/src/ATen/native/PhiloxStatelessRNG.cppbut did not register it inbuild_variables.bzl. When that PR was imported internally, the entry was added to the internal copy ofbuild_variables.bzlbefore it landed. The two copies of the file have been out of sync since.This adds the same single line to the OSS copy, so
build_variables.bzlmatches on both sides.The entry goes into
aten_native_source_non_codegen_list, in sorted position betweenPackedSequence.cppandPixelShuffle.cpp.Build impact
No effect on the default CMake build.
aten/src/ATen/CMakeLists.txthas an if/else onBUILD_LITE_INTERPRETER: theappend_filelist("aten_native_source_non_codegen_list" ...)call is only in theONbranch, while the defaultOFFbranch composesall_cpu_cppfromfile(GLOB native_cpp "native/*.cpp"), which already picks this file up. The two branches are mutually exclusive, so there is no double-add.The change does add the file to the source list used by the
BUILD_LITE_INTERPRETER=ONbranch and by the buck path (aten_native_source_list→buckbuild.bzl,pt_template_srcs.bzl), where it is currently absent. That is a real change in source composition for those configurations rather than pure metadata, so it is worth calling out — though it is the composition the file's ownnative_functions.yamlCPU dispatch entries imply. The equivalent internal buck build already compiles this file from a list containing this exact line.Verification
build_variables.bzlon this branch is byte-identical to the internal copy as of internal master63074c69e3aa(both 79151 bytes, matching md5). Before this change the OSS copy was 79100 bytes and the only difference between the two files was this one line, in one direction — there were no OSS-only lines.lintrunneris clean.Byte-identity is stated against that named internal snapshot; it is not a claim about future drift.