Repository navigation
[ATen] Add torch.__config__._cxx_compiler() - #200715
Closed
georgehong wants to merge 1 commit into
Closed
georgehong wants to merge 1 commit into
georgehong wants to merge 1 commit into
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/200715
Note: Links to docs will display an error until the docs builds have been completed. ✅ You can merge normally! (1 Unrelated Failure)As of commit bf2f98a with merge base 45e85ce ( 🟡 GREEN LIGHT - PR requires human review:
reason: BROKEN TRUNK - The following job failed but were present on the merge base:👉 Rebase onto the `viable/strict` branch to avoid these failures
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
georgehong
marked this pull request as ready for review
October 13, 2026 15:56
jathu
approved these changes
Oct 13, 2026
Collaborator
|
Starting merge as part of PR stack under #200470 |
pytorchmergebot
pushed a commit
that referenced
this pull request
Oct 13, 2026
…00716) **Summary:** The test run report writer now reads the compiler from `torch.__config__._cxx_compiler()` instead of parsing `torch.__config__.show()`. `show()` calls `hasCUDA()`, which initializes the CUDA driver and poisons fork in the test process. **Test Plan:** ``` python test/torchci/test_testing.py ``` `test_compiler` mocks `torch.__config__._cxx_compiler()`, and the DNM PR on top (#200471) writes reports from a torch built with it. Authored with the help of an AI assistant (Claude). Pull Request resolved: #200716 Approved by: https://github.com/jathu ghstack dependencies: #200715
pytorchmergebot
pushed a commit
that referenced
this pull request
Oct 13, 2026
…ructure (#200470) Uploads jsonl reports in a flat directory structure: ``` s3://gha-artifacts/torchci-reports/<org>/<repo>/<run id>/<job id>/<file>-<uuid>.report.jsonl ``` This allows for us to lookup original report sources more easily, without having to unzip targets. If the ClickHouse user has a report UUID and job info, S3 lookup can be done through the above path. This means per-object writes are more frequent, but this also matches existing examples of test-jsons-while-running granularity. ROCm jobs skip S3 (`skip-s3`), so they upload their reports as a GitHub artifact, `torchci-reports-runattempt<N>-<job id>.zip`, as does any job whose junit S3 upload fails. When the attempt completes, upload-test-stats runs `tools/stats/upload_artifacts.py`, which copies each report to the same S3 path. The copy is best effort, so a failed download or upload can't skip the test stats upload. It also skips other attempts' artifacts: the run's artifact list includes them, but their own attempt already uploaded them. Authored with the help of an AI assistant (Claude). Pull Request resolved: #200470 Approved by: https://github.com/jathu ghstack dependencies: #200715, #200716
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.
Stack from ghstack (oldest at bottom):
Summary:
Adds
torch.__config__._cxx_compiler(), which returns the compiler that built PyTorch and its version, e.g.("gcc", "11.4"),("clang", "21.1.0")or("msvc", "194134120"). The values come from the same macrostorch.__config__.show()prints, withoutshow()'s device checks.The test run report writer (#200470) records the compiler, and today parses it out of
show(). However,show()callshasCUDA(), which initializes the CUDA driver and poisons fork in the test process. With this, the writer can read the compiler without touching the device.Test Plan:
test_cxx_compilerchecks the result against the compiler lineshow()prints.Authored with the help of an AI assistant (Claude).
cc @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @kadeng @chauhang @amjames @jataylo @azahed98