Repository navigation
[torchci] Read the compiler with torch.__config__._cxx_compiler() - #200716
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/200716
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit 4ce6070 with merge base 45e85ce ( 🟡 GREEN LIGHT - PR requires human review:
reason: This comment was automatically generated by Dr. CI and updates every 15 minutes. |
This was referenced Oct 13, 2026
georgehong
marked this pull request as ready for review
October 13, 2026 15:57
jathu
approved these changes
Oct 13, 2026
Comment on lines
+120
to
+122
| name, version = cxx_compiler() | ||
| # MSVC's version is _MSC_FULL_VER, e.g. 194134120 for 19.41. | ||
| return name, version[:2] if name == "msvc" else version.split(".")[0] |
Contributor
There was a problem hiding this comment.
I really do think we should keep it as is. We don't really need similarity of versions between each compiler
Suggested change
| name, version = cxx_compiler() | |
| # MSVC's version is _MSC_FULL_VER, e.g. 194134120 for 19.41. | |
| return name, version[:2] if name == "msvc" else version.split(".")[0] | |
| return cxx_compiler() |
Collaborator
|
Starting merge as part of PR stack under #200470 |
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:
The test run report writer now reads the compiler from
torch.__config__._cxx_compiler()instead of parsingtorch.__config__.show().show()callshasCUDA(), which initializes the CUDA driver and poisons fork in the test process.Test Plan:
test_compilermockstorch.__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).