Skip to content

[Test] Refactor test_profiler.py tests to enhance device compatibility[3/N] - #198322

Closed
can-gaa-hou wants to merge 3 commits into
gh/can-gaa-hou/53/basefrom
gh/can-gaa-hou/53/head
Closed

can-gaa-hou wants to merge 3 commits into
gh/can-gaa-hou/53/basefrom
gh/can-gaa-hou/53/head

Conversation

[ghstack-poisoned]
@pytorch-bot

pytorch-bot Bot commented Sep 23, 2026 •

Copy link
Copy Markdown

🔗 Helpful Links

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

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 5e70c64 with merge base ecc974c (image):

NEW FAILURES SUPPRESSED BY AI (non-blocking) - The following job failed, but the AI CI Advisor judged the failure not to be evidence against this change:

  • pull / dynamo-cpython-test / test (dynamo_cpython, 1, 1, mt-l-x86iavx512-8-64) (gh)
    test/cpython/v3_13/test_call.py::CFunctionCallsErrorMessages::test_varargs2min

    AI verdict: AI verdict: not related

    The suspect commit changes only test/profiler/test_profiler.py. The failing test, test_varargs2min, is an "Unexpected success" on a dynamo_expected_failures marker. The merge base ecc974c fails with exactly the same error, so the failure predates the suspect. Recent trunk commits run the job green, which points to a fix that landed on main after this PR's merge base.

    Full reasoning on HUD →

This comment was automatically generated by Dr. CI and updates every 15 minutes.

[ghstack-poisoned]
Comment thread test/profiler/test_profiler.py Outdated
with _profile(
use_kineto=True,
use_device="cuda",
use_device=torch.device(device).type,

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Restore this one, it would be more clear to use "cuda" here for cuda-specific and it can minimize the changes as well.

Comment thread test/profiler/test_profiler.py Outdated

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove onlyOn decorator here and migrate this one up to TestProfiler?

[ghstack-poisoned]

@fffrog fffrog left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SGTM

@fffrog fffrog moved this from Backlog to Ready for Merge in PyTorch Test Refactoring Sep 23, 2026
@fffrog fffrog added the module: tests/simple This label covers all the testcase that are very straightforward label Sep 23, 2026
@pytorchmergebot

Copy link
Copy Markdown
Collaborator

Starting merge as part of PR stack under #198324

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Merged module: tests/simple This label covers all the testcase that are very straightforward open source topic: not user facing topic category

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants