pytorch - 💡(How to fix) Fix DISABLED test_index_add_fallback (__main__.CudaReproTests) [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
pytorch/pytorch#178747Fetched 2026-04-08 01:52:33
View on GitHub
Comments
1
Participants
2
Timeline
83
Reactions
0
Author
Timeline (top)
mentioned ×37subscribed ×37labeled ×7added_to_project_v2 ×1

Root Cause

This test was disabled because it is failing on main branch (recent examples).

RAW_BUFFERClick to expand / collapse

Platforms: xpu

This test was disabled because it is failing on main branch (recent examples).

cc @chauhang @penguinwu @voznesenskym @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @ipiszy @kadeng @muchulee8 @amjames @aakhundov @coconutruben @jataylo @gujinghui @fengyuan14

extent analysis

Fix Plan

The fix involves re-enabling and updating the test_index_add_fallback test in test_cuda_repro.py to ensure it works correctly on the main branch.

Steps to Fix

  • Re-enable the test by removing the decorator or comment that disabled it.
  • Update the test to handle any changes in the CUDA reproducibility logic.
  • Verify the test passes on the main branch.

Example Code

# test_cuda_repro.py
import unittest
import torch

class CudaReproTests(unittest.TestCase):
    # Re-enable the test
    def test_index_add_fallback(self):
        # Update the test to handle changes in CUDA reproducibility logic
        # For example, update the tensor creation to use the latest CUDA version
        tensor = torch.randn(10, device='cuda')
        # ... rest of the test code ...

Verification

Run the test using the command python test_cuda_repro.py and verify it passes without any errors.

Extra Tips

  • Ensure the CUDA version is up-to-date and compatible with the PyTorch version.
  • Run the test on multiple platforms to ensure reproducibility.
  • Use torch.cuda.seed() and torch.cuda.manual_seed() to ensure reproducibility in CUDA operations.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

pytorch - 💡(How to fix) Fix DISABLED test_index_add_fallback (__main__.CudaReproTests) [1 comments, 2 participants]