Skip to content

Update third_party/kineto submodule to 185fe9c - #178918

Closed
scotts wants to merge 2 commits into
pytorch:mainfrom
scotts:2026-03-31
Closed

scotts wants to merge 2 commits into
pytorch:mainfrom
scotts:2026-03-31

Conversation

@scotts

@scotts scotts commented Mar 31, 2026 •

Copy link
Copy Markdown
Contributor

Includes the following commits:

Authored with Claude.

8b42d4c..185fe9c includes the following commits:

185fe9c Expose occupany limiting factors (pytorch#1330)
0c8ede0 remove the rocprofiler early exit hack (pytorch#1329)
4826a43 Remove duplicate test ignore (pytorch#1328)
37fada9 Ensure that async doesn't loop while sync is active (pytorch#1327)
628e1d0 Add host_name to OSS Kineto trace metadata via gethostname() (pytorch#1323)
9d7373b Revert D97166802 (pytorch#1326)
3a61657 Fix Lingering INT32 Overflow (pytorch#1324)
50a0085 Re-enabled some hardcoded tests (pytorch#1321)
e19dd92 Expose occupany limiting factors (pytorch#1322)

Authored with Claude.
@pytorch-bot

pytorch-bot Bot commented Mar 31, 2026 •

Copy link
Copy Markdown

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/178918

Note: Links to docs will display an error until the docs builds have been completed.

❌ 9 New Failures, 6 Unrelated Failures

As of commit 9a4b776 with merge base ae81c14 (image):

NEW FAILURES - The following jobs have failed:

FLAKY - The following jobs failed but were likely due to flakiness present on trunk:

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.

@pytorch-bot pytorch-bot Bot added the topic: not user facing topic category label Mar 31, 2026
@scotts
scotts requested a review from divyanshk March 31, 2026 19:50
@scotts
scotts marked this pull request as ready for review March 31, 2026 19:50
@scotts

scotts commented Apr 1, 2026

Copy link
Copy Markdown
Contributor Author

The test still marked as a new failure is in the same testing harness as the one marked flakey and the one marked disabled. I'm assuming they're all unrelated and merging.

@scotts

scotts commented Apr 1, 2026

Copy link
Copy Markdown
Contributor Author

@pytorchbot merge

@pytorch-bot pytorch-bot Bot added the ciflow/trunk Trigger trunk jobs on your pull request label Apr 1, 2026
@pytorchmergebot

Copy link
Copy Markdown
Collaborator

Merge started

Your 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

Advanced Debugging
Check the merge workflow status
here

@pytorchmergebot

Copy link
Copy Markdown
Collaborator

Merge failed

Reason: 2 mandatory check(s) failed. The first few are:

Dig deeper by viewing the failures on hud

Details for Dev Infra team Raised by workflow job

Failing merge rule: Core Maintainers

@scotts

scotts commented Apr 2, 2026

Copy link
Copy Markdown
Contributor Author

I've retried a bunch of the past few days, and each set of failures is different. None of these seem to involve the profiler. I'm going to force a merge.

@scotts

scotts commented Apr 2, 2026

Copy link
Copy Markdown
Contributor Author

@pytorchbot merge -i

@izaitsevfb

Copy link
Copy Markdown
Contributor

@pytorchbot revert -m "Reverted automatically by pytorch's autorevert, to avoid this behaviour add the tag autorevert: disable" -c autorevert

This PR is attributed to have caused regression in:

Note: This revert was accelerated by the AI advisor: AI advisor: revert (confidence=0.90)

Please investigate and fix the issues.
@claude Can you please read this revert comment, follow the links and read the errors, to then give a brief diagnostics on the cause of the error? If you judge the error to be legitimate reason for a revert, please provide brief guidance on how the author could fix it.

@claude

claude Bot commented Apr 2, 2026 •

Copy link
Copy Markdown

Claude finished @izaitsevfb's task in 19m 39s —— View job


Diagnosing Kineto Submodule Revert

  • Read the CI failure logs from the linked job
  • Identify the root cause of the regression
  • Assess whether the revert is justified
  • Provide guidance on fixing the issue

Failure Summary

The sole consistently failing test is:

test/distributed/test_symmetric_memory.py::SymmetricMemoryTest::test_set_signal_pad_size_with_allocation
  • Platform: linux-jammy-rocm-py3.10-mi355 (ROCm / AMD GPU)
  • Error: RuntimeError: Exited with -11 (SIGSEGV — segfault in the worker process)
  • Behavior: The test was retried 3 times and crashed identically each time (all with exit code -11, each taking ~150s to timeout), confirming it is a consistent failure, not a flake.

What the Test Does

The failing test (test_set_signal_pad_size_with_allocation at test/distributed/test_symmetric_memory.py:142) does the following:

  1. Sets a custom signal pad size (2x the default) via symm_mem.set_signal_pad_size()
  2. Allocates symmetric memory with symm_mem.empty(64, device="cuda")
  3. Calls symm_mem.rendezvous(t, group=dist.group.WORLD) — this is where rank 0 segfaults
  4. Verifies signal pad sizes and operations

The crash at rendezvous with a modified signal pad size suggests a memory corruption or out-of-bounds access in the underlying C++ symmetric memory / IPC code.

Is This Related to the Kineto Submodule Update?

Likely not directly. The test has nothing to do with the profiler/kineto — it's a pure distributed symmetric memory test. However, the kineto update includes "remove the rocprofiler early exit hack" (kineto PR #1329), which changes ROCm profiler initialization behavior. On ROCm, the profiler and the GPU runtime share state; removing the early-exit hack could change the timing or initialization order of ROCm subsystems, which might expose a latent bug in the symmetric memory rendezvous path.

That said, looking at the original PR's CI results, the "NEW FAILURES" listed by Dr. CI were all on linux-jammy-rocm-py3.10-mi355 but were in different test files (test_cuda_expandable_segments, test_compiled_autograd, test_higher_order_ops, test_inplace_padding, test_flex_attention). The test_symmetric_memory failure that triggered the revert appeared only in the post-merge trunk run, not in the pre-merge PR CI. This makes it harder to definitively attribute to the kineto change — it could also be a pre-existing flaky test on the mi355 hardware or a coincidental trunk regression.

Revert Assessment

The revert is reasonable as a precautionary measure, given:

However, the causal link is weak — the failing test doesn't involve profiling at all, and the error is a segfault in symmetric memory rendezvous.

Guidance for Re-landing

  1. Isolate the ROCm profiler change: Re-land the kineto update but temporarily revert the "remove the rocprofiler early exit hack" change (kineto PR [proposed feature] Eve: Improving Stochastic Gradient Descent with Feedback #1329) to confirm whether that specific commit is the culprit.

  2. Reproduce locally on ROCm/mi355: Run test_set_signal_pad_size_with_allocation with and without the kineto update on the same hardware to confirm the regression.

  3. Check if the test was already failing on trunk before the kineto merge by looking at the HUD history for this test on mi355. If the test was already intermittently segfaulting before, the kineto change may not be the root cause.

  4. If kineto PR [proposed feature] Eve: Improving Stochastic Gradient Descent with Feedback #1329 is confirmed as the cause: The fix would need to ensure that removing the rocprofiler early-exit hack doesn't change GPU memory management state that affects IPC-based symmetric memory rendezvous on mi355.


@pytorchmergebot

Copy link
Copy Markdown
Collaborator

@pytorchbot successfully started a revert job. Check the current status here.
Questions? Feedback? Please reach out to the PyTorch DevX Team

pytorchmergebot added a commit that referenced this pull request Apr 2, 2026
This reverts commit 98a4204.

Reverted #178918 on behalf of https://github.com/izaitsevfb due to Reverted automatically by pytorch's autorevert, to avoid this behaviour add the tag autorevert: disable ([comment](#178918 (comment)))
@pytorchmergebot

Copy link
Copy Markdown
Collaborator

@scotts your PR has been successfully reverted.

@pytorchmergebot pytorchmergebot added Reverted ci-no-td Do not run TD on this PR labels Apr 2, 2026
@scotts

scotts commented Apr 3, 2026 •

Copy link
Copy Markdown
Contributor Author

Closing. I don't think the early exit hack is actually causing a problem, but let's try a release without it: #179244.

@scotts scotts closed this Apr 3, 2026
weifengpy pushed a commit that referenced this pull request Apr 7, 2026
Includes the following commits:

* Expose occupany limiting factors (pytorch/kineto#1330)
* remove the rocprofiler early exit hack (pytorch/kineto#1329)
* Remove duplicate test ignore (pytorch/kineto#1328)
* Ensure that async doesn't loop while sync is active (pytorch/kineto#1327)
* Add host_name to OSS Kineto trace metadata via gethostname() (pytorch/kineto#1323)
* Revert D97166802 (pytorch/kineto#1326)
* Fix Lingering INT32 Overflow (pytorch/kineto#1324)
* Re-enabled some hardcoded tests (pytorch/kineto#1321)
* Expose occupany limiting factors (pytorch/kineto#1322)

Authored with Claude.
Pull Request resolved: #178918
Approved by: https://github.com/divyanshk
weifengpy pushed a commit that referenced this pull request Apr 7, 2026
This reverts commit 98a4204.

Reverted #178918 on behalf of https://github.com/izaitsevfb due to Reverted automatically by pytorch's autorevert, to avoid this behaviour add the tag autorevert: disable ([comment](#178918 (comment)))
nklshy-aws pushed a commit to nklshy-aws/pytorch that referenced this pull request Apr 7, 2026
Includes the following commits:

* Expose occupany limiting factors (pytorch/kineto#1330)
* remove the rocprofiler early exit hack (pytorch/kineto#1329)
* Remove duplicate test ignore (pytorch/kineto#1328)
* Ensure that async doesn't loop while sync is active (pytorch/kineto#1327)
* Add host_name to OSS Kineto trace metadata via gethostname() (pytorch/kineto#1323)
* Revert D97166802 (pytorch/kineto#1326)
* Fix Lingering INT32 Overflow (pytorch/kineto#1324)
* Re-enabled some hardcoded tests (pytorch/kineto#1321)
* Expose occupany limiting factors (pytorch/kineto#1322)

Authored with Claude.
Pull Request resolved: pytorch#178918
Approved by: https://github.com/divyanshk
nklshy-aws pushed a commit to nklshy-aws/pytorch that referenced this pull request Apr 7, 2026
This reverts commit 98a4204.

Reverted pytorch#178918 on behalf of https://github.com/izaitsevfb due to Reverted automatically by pytorch's autorevert, to avoid this behaviour add the tag autorevert: disable ([comment](pytorch#178918 (comment)))
pytorch-bot Bot pushed a commit that referenced this pull request Apr 10, 2026
Includes the following commits:

* Expose occupany limiting factors (pytorch/kineto#1330)
* remove the rocprofiler early exit hack (pytorch/kineto#1329)
* Remove duplicate test ignore (pytorch/kineto#1328)
* Ensure that async doesn't loop while sync is active (pytorch/kineto#1327)
* Add host_name to OSS Kineto trace metadata via gethostname() (pytorch/kineto#1323)
* Revert D97166802 (pytorch/kineto#1326)
* Fix Lingering INT32 Overflow (pytorch/kineto#1324)
* Re-enabled some hardcoded tests (pytorch/kineto#1321)
* Expose occupany limiting factors (pytorch/kineto#1322)

Authored with Claude.
Pull Request resolved: #178918
Approved by: https://github.com/divyanshk
pytorch-bot Bot pushed a commit that referenced this pull request Apr 10, 2026
This reverts commit 98a4204.

Reverted #178918 on behalf of https://github.com/izaitsevfb due to Reverted automatically by pytorch's autorevert, to avoid this behaviour add the tag autorevert: disable ([comment](#178918 (comment)))
gplutop7 pushed a commit to gplutop7/pytorch that referenced this pull request Jul 15, 2026
Includes the following commits:

* Expose occupany limiting factors (pytorch/kineto#1330)
* remove the rocprofiler early exit hack (pytorch/kineto#1329)
* Remove duplicate test ignore (pytorch/kineto#1328)
* Ensure that async doesn't loop while sync is active (pytorch/kineto#1327)
* Add host_name to OSS Kineto trace metadata via gethostname() (pytorch/kineto#1323)
* Revert D97166802 (pytorch/kineto#1326)
* Fix Lingering INT32 Overflow (pytorch/kineto#1324)
* Re-enabled some hardcoded tests (pytorch/kineto#1321)
* Expose occupany limiting factors (pytorch/kineto#1322)

Authored with Claude.
Pull Request resolved: pytorch#178918
Approved by: https://github.com/divyanshk
gplutop7 pushed a commit to gplutop7/pytorch that referenced this pull request Jul 15, 2026
This reverts commit 98a4204.

Reverted pytorch#178918 on behalf of https://github.com/izaitsevfb due to Reverted automatically by pytorch's autorevert, to avoid this behaviour add the tag autorevert: disable ([comment](pytorch#178918 (comment)))
aws-kingrj pushed a commit to amazon-contributing/upstream-to-pytorch that referenced this pull request Jul 29, 2026
Includes the following commits:

* Expose occupany limiting factors (pytorch/kineto#1330)
* remove the rocprofiler early exit hack (pytorch/kineto#1329)
* Remove duplicate test ignore (pytorch/kineto#1328)
* Ensure that async doesn't loop while sync is active (pytorch/kineto#1327)
* Add host_name to OSS Kineto trace metadata via gethostname() (pytorch/kineto#1323)
* Revert D97166802 (pytorch/kineto#1326)
* Fix Lingering INT32 Overflow (pytorch/kineto#1324)
* Re-enabled some hardcoded tests (pytorch/kineto#1321)
* Expose occupany limiting factors (pytorch/kineto#1322)

Authored with Claude.
Pull Request resolved: pytorch#178918
Approved by: https://github.com/divyanshk
aws-kingrj pushed a commit to amazon-contributing/upstream-to-pytorch that referenced this pull request Jul 29, 2026
This reverts commit 98a4204.

Reverted pytorch#178918 on behalf of https://github.com/izaitsevfb due to Reverted automatically by pytorch's autorevert, to avoid this behaviour add the tag autorevert: disable ([comment](pytorch#178918 (comment)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci-no-td Do not run TD on this PR ciflow/trunk Trigger trunk jobs on your pull request Merged Reverted topic: not user facing topic category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants