Skip to content

[dynamo] Build the compile sync group on the fake backend over a fake world - #202253

Closed
bobrenjc93 wants to merge 6 commits into
gh/bobrenjc93/1638/basefrom
gh/bobrenjc93/1638/head
Closed

bobrenjc93 wants to merge 6 commits into
gh/bobrenjc93/1638/basefrom
gh/bobrenjc93/1638/head

Conversation

@bobrenjc93

@bobrenjc93 bobrenjc93 commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Stack from ghstack (oldest at bottom):

A fake default process group lets one real rank trace a model sized for the real world (for example 1 rank standing in for 64), but get_compile_sync_pg still builds a gloo group over that world, so the trace hangs or segfaults in gloo::transport::tcp::Rank::Rank waiting for ranks that do not exist.

Why precompile needs this

Capturing a multi-host training job with torch.compiler.precompile runs in a single process under a fake default group sized like the real world. Partitioner and AOTAutograd cache decisions sync across ranks through the compile sync group, which must not rendezvous with peers that are not there.

What changes

  • When every device backend of the default group is fake, the compile sync group is fake as well. Its collectives return the local value, so each sync decision is this rank's own. No gloo is needed.
  • The group's timeout is read from a backend that is not fake and has options, the object-collective device first. This fixes the AttributeError on "cpu:fake,cuda:nccl", where the CPU backend is fake.
  • sync_cache_decision_cross_ranks primes the group whenever it can be built rather than only when gloo is available.
  • Real worlds are unchanged: they still sync over gloo and still raise without it.

Test plan

New tests in test/distributed/test_fake_pg.py: all-fake and cpu:fake worlds get a fake group without gloo; the backend choice per device-backend config; the timeout comes from the real backend in cpu:fake,cuda:gloo; the cache sync primes the fake group without gloo; sync decisions stay local.

python test/distributed/test_fake_pg.py
python test/distributed/test_inductor_collectives.py -k compile_sync

Written with an AI assistant (Claude Code) and reviewed by me.

Co-Authored-By: Claude Opus 5.5 [email protected]

cc @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @kadeng @chauhang @amjames @jataylo @azahed98

[ghstack-poisoned]
@pytorch-bot

pytorch-bot Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

PR Status: Approved 🚀

Please fix all CI failures and trigger merge by commenting "@pytorchbot merge".

✅ AUTOMATED REVIEW - Ready for human review:

When every device backend of the default process group is fake, this PR builds
the compile sync group on the fake backend so it no longer attempts a gloo
rendezvous with nonexistent ranks, reads the sync group's timeout from a
non-fake backend, and primes the group in sync_cache_decision_cross_ranks
whenever it can be built; the review found no issues. Recommendation: Approve.

Reviewed commit: 5d0883f

Review run

🔗 Helpful Links

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

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

❌ 1 Unclassified Failure

As of commit 5d0883f with merge base 25298e6 (image):

🟡 GREEN LIGHT - OUTDATED (earlier commit) - PR requires human review:

  • Triviality
    • Production behavior change in get_compile_sync_pg: an all-fake default group now gets a fake sync group instead of gloo, so cross-rank decisions become rank-local
    • Bundles more than one root cause: the fake-world gloo hang, the cpu:fake,cuda:nccl timeout AttributeError, and the new _compile_sync_pg_available priming gate in autograd_cache.py
  • Failure mode
    • The timeout loop leaves timeout = None when no non-fake backend has options, so _new_group_with_tag silently falls back to its default timeout instead of using the configured one
    • A missing-options case that used to raise now ends in a substituted value, and how that should fail is a human's call
  • Design questions a reviewer would ask
    • Whether rank-local compile decisions are right for every fake-world user, and whether mixed configs like cpu:fake,cuda:nccl should sync over gloo, not just in the precompile flow
    • This is one PR in an eight-PR ghstack that touches compile-time distributed sync semantics in torch/_dynamo/distributed.py

reason: not_trivial
Reviewed commit: 2b82e08 (NOT the current head 5d0883f)

Inference job

🐛 Report a wrong verdict

UNCLASSIFIED FAILURE - DrCI could not classify the following job because the workflow did not run on the merge base. The failure may be pre-existing on trunk or introduced by this PR:

  • .github/workflows/docs-build.yml (gh) (this job did not run on the merge base, so DrCI cannot tell whether the failure is pre-existing)

    AI verdict: AI verdict: infra issue

    The docs-build run at the suspect never started any jobs. GitHub flagged it as "likely failed because of a workflow file issue". The PR changes no workflow or CI files compared with its merge base, and several unrelated PRs (the gh/slayton58 stack) hit the same workflow-file failure in the same time window.

    Full reasoning on HUD →

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

@bobrenjc93

Copy link
Copy Markdown
Contributor Author

@claude review

@claude

claude Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

Claude finished @bobrenjc93's task in 1m 9s —— View job


One small test-style fix needed; the logic looks correct and I'd approve once that's done.

Details

PR Review: #202253

Summary

When every device backend of the default group is fake, get_compile_sync_pg now builds a fake compile sync group, so no gloo rendezvous happens. It reads the timeout from a backend that isn't fake. sync_cache_decision_cross_ranks now primes the group whenever it can be built, not only when gloo is available. No REVIEW.md files apply.

I checked these points and found no problems:

  • Fake backend detection: BackendConfig maps "fake" to cpu/cuda/hpu/xpu, so "all fake" detection works.
  • Timeout device: coll_device is always a key of the backend map, so the reordered timeout lookup still prefers the object-collective device.
  • Local decisions: _sync_decision_cross_ranks uses all_gather_object and all_reduce(MAX), and the cache sync uses all_reduce(MIN). With a fake group all three return the local values, and test_compile_sync_decisions_stay_local covers this.
  • Real worlds: they still use gloo and still raise without it.

Testing

  • test/distributed/test_fake_pg.py, test_compile_sync_backend_needs_every_device_backend_fake: the test loops over a cases dict with self.subTest. CLAUDE.md asks for @parametrize when a test covers multiple inputs, and the file already uses @parametrize with instantiate_parametrized_tests. Parametrize over (config, gloo_available, expected) instead, so each case shows up as its own test ID and can be selected or skipped on its own.

Recommendation

Approve after the test change above. It is minor and does not affect correctness.

[ghstack-poisoned]
@bobrenjc93

Copy link
Copy Markdown
Contributor Author

Review replies:

  • subTest loop -> @parametrize over (config, gloo_available, expected): Fixed in 4d5f9eb.

@bobrenjc93

Copy link
Copy Markdown
Contributor Author

@claude review

@claude

claude Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

Claude finished @bobrenjc93's task in 27s —— View job


I found no remaining issues on re-review: the @parametrize change from the last review is in, and nothing new needs fixing.

Details

PR Review: #202253

Summary

When every device backend of the default group is fake, get_compile_sync_pg now builds a fake compile sync group instead of a gloo one. It reads the group's timeout from a backend that isn't fake. sync_cache_decision_cross_ranks primes the group whenever _compile_sync_pg_available() says it can be built. No REVIEW.md files apply.

The earlier finding, the subTest loop in test_compile_sync_backend_needs_every_device_backend_fake, is fixed at HEAD. The test is now @parametrized over (config, gloo_available, expected), and TestFakePG is registered with instantiate_parametrized_tests. I found no new issues in the 3 changed files, and the change is backward compatible: real worlds still sync over gloo and still raise without it.

Recommendation

Approve: there are no blocking issues. The tests cover the all-fake world, the cpu:fake world, a fake CPU backend paired with a real one, priming the cache sync group without gloo, and sync decisions staying local.

[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
@bobrenjc93
bobrenjc93 marked this pull request as ready for review October 28, 2026 17:51
@bobrenjc93
bobrenjc93 requested a review from bdhirsh as a code owner October 28, 2026 17:51
@pytorchgreenlight pytorchgreenlight Bot added the GL/human GreenLight marked as needing human review label Oct 28, 2026
@pytorchbot pytorchbot added the in progress PR is being worked on by the author, until the automated review accepts it label Oct 28, 2026
[ghstack-poisoned]
@pytorchgreenlight pytorchgreenlight Bot added GL/superseded GreenLight review is superseded by changes and removed GL/human GreenLight marked as needing human review labels Oct 28, 2026

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Automated review of 5d0883f: nothing blocking; ready for human review.

When every device backend of the default process group is fake, this PR builds the compile sync group on the fake backend so it no longer attempts a gloo rendezvous with nonexistent ranks, reads the sync group's timeout from a non-fake backend, and primes the group in sync_cache_decision_cross_ranks whenever it can be built; the review found no issues. Recommendation: Approve.

This review is AI-generated and advisory. Each new automated review replaces the previous one.

@pytorchmergebot

Copy link
Copy Markdown
Collaborator

Starting merge as part of PR stack under #202258

@bobrenjc93

Copy link
Copy Markdown
Contributor Author

@pytorchbot merge -i

@pytorchmergebot

Copy link
Copy Markdown
Collaborator

Merge started

Your change will be merged while ignoring the following 1 checks: docs-build

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 pushed a commit that referenced this pull request Oct 29, 2026
`torch.library.triton_op` now wraps the user's function with `functools.wraps`, so the op's `_init_fn.__module__` is the module that defined it, not `torch._library.triton`.

## Why precompile needs this

A precompile artifact runs on every rank in a fresh process, where nothing has imported the modules that register the custom ops its graphs call. The next commits have the artifact import those modules, found through `torch._library.custom_ops.OPDEFS[name]._init_fn.__module__`. For a `custom_op` that is already the user's module. For a `triton_op` it was `torch._library.triton`, which is importable but registers nothing, so the artifact would import the wrong module and still fail.

## What changes

- `triton_op`'s inner `backend_fn` is decorated with `functools.wraps(fn, updated=())`. This copies `__module__`, `__name__`, `__qualname__`, `__doc__` and `__wrapped__`, but not `__dict__`.
- Calling the op is unchanged.

## Test plan

New test `test_triton_op_function_is_the_users` in `test/test_custom_ops.py`.

```
python test/test_custom_ops.py -k triton_op_function_is_the_users
```

*Written with an AI assistant (Claude Code) and reviewed by me.*

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Pull Request resolved: #202256
Approved by: https://github.com/pytorchgreenlight
ghstack dependencies: #202253
d4l3k added a commit that referenced this pull request Oct 29, 2026
twthighd added a commit to twthighd/pytorch that referenced this pull request Oct 30, 2026
…label classes

Summary:
- Split the mixed TestFakePG class: the fake-PG mechanism tests
  (copy semantics, requires_grad propagation, validation errors,
  dispatch tracing) stay in TestFakePG labeled GENERIC, while the
  nine accelerator-path tests (FSDP/TP e2e, functional-collectives
  tracing, split_group) move to a new TestFakePGDevice labeled
  ACCELERATOR.
- TestFakePGDevice is instantiated via instantiate_device_type_tests
  with allow_xpu=True, and the moved methods take the injected device
  parameter instead of the module-level device_type = get_devtype().type
  (deleted).
- Gate the nine methods with the variant-aware @onlyAccelerator instead
  of excluding the CPU variant: the CPU variant is collected and skips
  cleanly on every host (the guard reads the running variant's
  device_type), so CPU-only machines report explicit skips instead of
  the class being invisible, while accelerator variants run unchanged.
  Same gating form as the landed pytorch#192712 and pytorch#191905. @skipIfHpu
  blacklist guards are kept.
- Rebase absorption: keep pytorch#202253's six compile-sync methods in the
  GENERIC TestFakePG (14 expanded cases, parametrizations and gloo
  availability guards intact; their config strings naming cuda/nccl do
  not exercise device-tensor paths) and pytorch#202141's whole-file adjustments
  (fake backend moved to a Python PyBackend, new GENERIC
  debug-wrapper/alias/split-options tests, updated assertion patterns);
  the unittest/unittest.mock imports the new tests use are kept.

This allows the accelerator-path tests to run on any out-of-tree
accelerator variant instead of being skipped wherever HAS_ACCELERATOR
is False, while the device-agnostic fake-PG mechanics stay in a
GENERIC class that runs everywhere.

Verified on an old-snapshot verify host (its C++ fake backend predates
the Python PyBackend move):
- The generated CPU class collects 15 cases, all skipped with the exact
  reason "onlyAccelerator: doesn't run on CPU or meta devices" (OK,
  0 errors).
- A whole-file run is not obtainable there: a newly absorbed GENERIC
  test crashes the old C++ fake backend.
- The PrivateUse1 variant fails there at the fake backend's
  device-type lookup (observed error).

Full-file validation on the rebased stack remains pending. GENERIC/CPU
and accelerator coverage will be checked in the corresponding CI jobs
where selected. PrivateUse1 execution additionally requires pytorch#202363 at
the new registration site, with the backend plugin loaded before fake
registration, and a compatible verification environment; ordinary
CPU/CUDA CI does not cover it.
dominikjastrzebskix pushed a commit to dominikjastrzebskix/pytorch that referenced this pull request Nov 5, 2026
… world (pytorch#202253)

A fake default process group lets one real rank trace a model sized for the real world (for example 1 rank standing in for 64), but `get_compile_sync_pg` still builds a gloo group over that world, so the trace hangs or segfaults in `gloo::transport::tcp::Rank::Rank` waiting for ranks that do not exist.

## Why precompile needs this

Capturing a multi-host training job with `torch.compiler.precompile` runs in a single process under a fake default group sized like the real world. Partitioner and AOTAutograd cache decisions sync across ranks through the compile sync group, which must not rendezvous with peers that are not there.

## What changes

- When every device backend of the default group is fake, the compile sync group is fake as well. Its collectives return the local value, so each sync decision is this rank's own. No gloo is needed.
- The group's timeout is read from a backend that is not fake and has options, the object-collective device first. This fixes the `AttributeError` on `"cpu:fake,cuda:nccl"`, where the CPU backend is fake.
- `sync_cache_decision_cross_ranks` primes the group whenever it can be built rather than only when gloo is available.
- Real worlds are unchanged: they still sync over gloo and still raise without it.

## Test plan

New tests in `test/distributed/test_fake_pg.py`: all-fake and `cpu:fake` worlds get a fake group without gloo; the backend choice per device-backend config; the timeout comes from the real backend in `cpu:fake,cuda:gloo`; the cache sync primes the fake group without gloo; sync decisions stay local.

```
python test/distributed/test_fake_pg.py
python test/distributed/test_inductor_collectives.py -k compile_sync
```

*Written with an AI assistant (Claude Code) and reviewed by me.*

Co-Authored-By: Claude Opus 5.5 <[email protected]>

Pull Request resolved: pytorch#202253
Approved by: https://github.com/Mingming-Ding
dominikjastrzebskix pushed a commit to dominikjastrzebskix/pytorch that referenced this pull request Nov 5, 2026
…02256)

`torch.library.triton_op` now wraps the user's function with `functools.wraps`, so the op's `_init_fn.__module__` is the module that defined it, not `torch._library.triton`.

## Why precompile needs this

A precompile artifact runs on every rank in a fresh process, where nothing has imported the modules that register the custom ops its graphs call. The next commits have the artifact import those modules, found through `torch._library.custom_ops.OPDEFS[name]._init_fn.__module__`. For a `custom_op` that is already the user's module. For a `triton_op` it was `torch._library.triton`, which is importable but registers nothing, so the artifact would import the wrong module and still fail.

## What changes

- `triton_op`'s inner `backend_fn` is decorated with `functools.wraps(fn, updated=())`. This copies `__module__`, `__name__`, `__qualname__`, `__doc__` and `__wrapped__`, but not `__dict__`.
- Calling the op is unchanged.

## Test plan

New test `test_triton_op_function_is_the_users` in `test/test_custom_ops.py`.

```
python test/test_custom_ops.py -k triton_op_function_is_the_users
```

*Written with an AI assistant (Claude Code) and reviewed by me.*

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Pull Request resolved: pytorch#202256
Approved by: https://github.com/pytorchgreenlight
ghstack dependencies: pytorch#202253
dominikjastrzebskix pushed a commit to dominikjastrzebskix/pytorch that referenced this pull request Nov 9, 2026
… world (pytorch#202253)

A fake default process group lets one real rank trace a model sized for the real world (for example 1 rank standing in for 64), but `get_compile_sync_pg` still builds a gloo group over that world, so the trace hangs or segfaults in `gloo::transport::tcp::Rank::Rank` waiting for ranks that do not exist.

## Why precompile needs this

Capturing a multi-host training job with `torch.compiler.precompile` runs in a single process under a fake default group sized like the real world. Partitioner and AOTAutograd cache decisions sync across ranks through the compile sync group, which must not rendezvous with peers that are not there.

## What changes

- When every device backend of the default group is fake, the compile sync group is fake as well. Its collectives return the local value, so each sync decision is this rank's own. No gloo is needed.
- The group's timeout is read from a backend that is not fake and has options, the object-collective device first. This fixes the `AttributeError` on `"cpu:fake,cuda:nccl"`, where the CPU backend is fake.
- `sync_cache_decision_cross_ranks` primes the group whenever it can be built rather than only when gloo is available.
- Real worlds are unchanged: they still sync over gloo and still raise without it.

## Test plan

New tests in `test/distributed/test_fake_pg.py`: all-fake and `cpu:fake` worlds get a fake group without gloo; the backend choice per device-backend config; the timeout comes from the real backend in `cpu:fake,cuda:gloo`; the cache sync primes the fake group without gloo; sync decisions stay local.

```
python test/distributed/test_fake_pg.py
python test/distributed/test_inductor_collectives.py -k compile_sync
```

*Written with an AI assistant (Claude Code) and reviewed by me.*

Co-Authored-By: Claude Opus 5.5 <[email protected]>

Pull Request resolved: pytorch#202253
Approved by: https://github.com/Mingming-Ding
dominikjastrzebskix pushed a commit to dominikjastrzebskix/pytorch that referenced this pull request Nov 9, 2026
…02256)

`torch.library.triton_op` now wraps the user's function with `functools.wraps`, so the op's `_init_fn.__module__` is the module that defined it, not `torch._library.triton`.

## Why precompile needs this

A precompile artifact runs on every rank in a fresh process, where nothing has imported the modules that register the custom ops its graphs call. The next commits have the artifact import those modules, found through `torch._library.custom_ops.OPDEFS[name]._init_fn.__module__`. For a `custom_op` that is already the user's module. For a `triton_op` it was `torch._library.triton`, which is importable but registers nothing, so the artifact would import the wrong module and still fail.

## What changes

- `triton_op`'s inner `backend_fn` is decorated with `functools.wraps(fn, updated=())`. This copies `__module__`, `__name__`, `__qualname__`, `__doc__` and `__wrapped__`, but not `__dict__`.
- Calling the op is unchanged.

## Test plan

New test `test_triton_op_function_is_the_users` in `test/test_custom_ops.py`.

```
python test/test_custom_ops.py -k triton_op_function_is_the_users
```

*Written with an AI assistant (Claude Code) and reviewed by me.*

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Pull Request resolved: pytorch#202256
Approved by: https://github.com/pytorchgreenlight
ghstack dependencies: pytorch#202253
twthighd added a commit to twthighd/pytorch that referenced this pull request Nov 23, 2026
…label classes

Summary:
- Split the mixed TestFakePG class: the fake-PG mechanism tests
  (copy semantics, requires_grad propagation, validation errors,
  dispatch tracing) stay in TestFakePG labeled GENERIC, while the
  nine accelerator-path tests (FSDP/TP e2e, functional-collectives
  tracing, split_group) move to a new TestFakePGDevice labeled
  ACCELERATOR.
- TestFakePGDevice is instantiated via instantiate_device_type_tests
  with allow_xpu=True, and the moved methods take the injected device
  parameter instead of the module-level device_type = get_devtype().type
  (deleted).
- Gate the nine methods with the variant-aware @onlyAccelerator instead
  of excluding the CPU variant: the CPU variant is collected and skips
  cleanly on every host (the guard reads the running variant's
  device_type), so CPU-only machines report explicit skips instead of
  the class being invisible, while accelerator variants run unchanged.
  Same gating form as the landed pytorch#192712 and pytorch#191905. @skipIfHpu
  blacklist guards are kept.
- Rebase absorption: keep pytorch#202253's six compile-sync methods in the
  GENERIC TestFakePG (14 expanded cases, parametrizations and gloo
  availability guards intact; their config strings naming cuda/nccl do
  not exercise device-tensor paths) and pytorch#202141's whole-file adjustments
  (fake backend moved to a Python PyBackend, new GENERIC
  debug-wrapper/alias/split-options tests, updated assertion patterns);
  the unittest/unittest.mock imports the new tests use are kept.

This allows the accelerator-path tests to run on any out-of-tree
accelerator variant instead of being skipped wherever HAS_ACCELERATOR
is False, while the device-agnostic fake-PG mechanics stay in a
GENERIC class that runs everywhere.

Verified on an old-snapshot verify host (its C++ fake backend predates
the Python PyBackend move):
- The generated CPU class collects 15 cases, all skipped with the exact
  reason "onlyAccelerator: doesn't run on CPU or meta devices" (OK,
  0 errors).
- A whole-file run is not obtainable there: a newly absorbed GENERIC
  test crashes the old C++ fake backend.
- The PrivateUse1 variant fails there at the fake backend's
  device-type lookup (observed error).

Full-file validation on the rebased stack remains pending. GENERIC/CPU
and accelerator coverage will be checked in the corresponding CI jobs
where selected. PrivateUse1 execution additionally requires pytorch#202363 at
the new registration site, with the backend plugin loaded before fake
registration, and a compatible verification environment; ordinary
CPU/CUDA CI does not cover it.
twthighd added a commit to twthighd/pytorch that referenced this pull request Dec 3, 2026
…label classes

Summary:
- Split the mixed TestFakePG class: the fake-PG mechanism tests
  (copy semantics, requires_grad propagation, validation errors,
  dispatch tracing) stay in TestFakePG labeled GENERIC, while the
  nine accelerator-path tests (FSDP/TP e2e, functional-collectives
  tracing, split_group) move to a new TestFakePGDevice labeled
  ACCELERATOR.
- TestFakePGDevice is instantiated via instantiate_device_type_tests
  with allow_xpu=True, and the moved methods take the injected device
  parameter instead of the module-level device_type = get_devtype().type
  (deleted).
- Gate the nine methods with the variant-aware @onlyAccelerator instead
  of excluding the CPU variant: the CPU variant is collected and skips
  cleanly on every host (the guard reads the running variant's
  device_type), so CPU-only machines report explicit skips instead of
  the class being invisible, while accelerator variants run unchanged.
  Same gating form as the landed pytorch#192712 and pytorch#191905. @skipIfHpu
  blacklist guards are kept.
- Rebase absorption: keep pytorch#202253's six compile-sync methods in the
  GENERIC TestFakePG (14 expanded cases, parametrizations and gloo
  availability guards intact; their config strings naming cuda/nccl do
  not exercise device-tensor paths) and pytorch#202141's whole-file adjustments
  (fake backend moved to a Python PyBackend, new GENERIC
  debug-wrapper/alias/split-options tests, updated assertion patterns);
  the unittest/unittest.mock imports the new tests use are kept.

This allows the accelerator-path tests to run on any out-of-tree
accelerator variant instead of being skipped wherever HAS_ACCELERATOR
is False, while the device-agnostic fake-PG mechanics stay in a
GENERIC class that runs everywhere.

Verified on an old-snapshot verify host (its C++ fake backend predates
the Python PyBackend move):
- The generated CPU class collects 15 cases, all skipped with the exact
  reason "onlyAccelerator: doesn't run on CPU or meta devices" (OK,
  0 errors).
- A whole-file run is not obtainable there: a newly absorbed GENERIC
  test crashes the old C++ fake backend.
- The PrivateUse1 variant fails there at the fake backend's
  device-type lookup (observed error).

Full-file validation on the rebased stack remains pending. GENERIC/CPU
and accelerator coverage will be checked in the corresponding CI jobs
where selected. PrivateUse1 execution additionally requires pytorch#202363 at
the new registration site, with the backend plugin loaded before fake
registration, and a compatible verification environment; ordinary
CPU/CUDA CI does not cover it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/inductor ciflow/torchtitan Run TorchTitan integration tests ciflow/trunk Trigger trunk jobs on your pull request GL/superseded GreenLight review is superseded by changes in progress PR is being worked on by the author, until the automated review accepts it Merged module: dynamo topic: not user facing topic category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants