Skip to content
This repository was archived by the owner on Sep 30, 2026. It is now read-only.

Add XPU toggleCollectionDynamic mechanism - #1410

Closed
PawelSwider2000 wants to merge 1 commit into
pytorch:mainfrom
intel-staging:dev/pawelswi/toggle-collection
Closed

PawelSwider2000 wants to merge 1 commit into
pytorch:mainfrom
intel-staging:dev/pawelswi/toggle-collection

Conversation

@PawelSwider2000

Copy link
Copy Markdown
Contributor

Fixes: intel/torch-xpu-ops#3479

PR fixing test_dynamic_toggle for XPU.

Mark IActivityProfilerSession::toggleCollectionDynamic(bool) as virtual and make sure it will be called from: GenericActivityProfiler::toggleCollectionDynamic(const bool enable) for properly handling of dynamic toggle mechanism for XPU Profiler

@meta-cla meta-cla Bot added the cla signed label May 20, 2026
@PawelSwider2000

Copy link
Copy Markdown
Contributor Author

@gujinghui Please review

@PawelSwider2000
PawelSwider2000 marked this pull request as ready for review July 16, 2026 12:01
@PawelSwider2000

Copy link
Copy Markdown
Contributor Author

@scotts @ryanzhang22 Please review

@meta-codesync

meta-codesync Bot commented Jul 16, 2026

Copy link
Copy Markdown

@ryanzhang22 has imported this pull request. If you are a Meta employee, you can view this in D112388720.

@PawelSwider2000

Copy link
Copy Markdown
Contributor Author

@ryanzhang22 Thanks for the review, is there anything else do be done from my side before merge?

@ryanzhang22

Copy link
Copy Markdown
Contributor

@PawelSwider2000 I am landing this internally now -- it should be updated here in a few hours.

@meta-codesync meta-codesync Bot closed this in cb29370 Jul 21, 2026
@meta-codesync meta-codesync Bot added the Merged label Jul 21, 2026
@meta-codesync

meta-codesync Bot commented Jul 21, 2026

Copy link
Copy Markdown

@ryanzhang22 merged this pull request in cb29370.

pytorchmergebot pushed a commit to pytorch/pytorch that referenced this pull request Jul 23, 2026
Includes the following commits:

- Add XPU toggleCollectionDynamic mechanism (pytorch/kineto#1410) cb29370
- Explicitly wrap NCCL strings in output json (pytorch/kineto#1482) d62c7f5
- emit GPU_USER_ANNOTATION for user record_function ranges (pytorch/kineto#1393) a8fd013
- Re-select test_basic_chrome_trace_cpu on XPU (pytorch/kineto#1484) f451dfc
- Fix CQS signal readability-avoid-const-params-in-decls in fbcode/kineto/libkineto (pytorch/kineto#1486) c4e1538
- Add NCCL collective metadata fields to the catalog (pytorch/kineto#1483) a31870c
- Add addTypedMetadata to GenericTraceActivity (pytorch/kineto#1485) 29ab453
- Centralize MetadataField definitions (pytorch/kineto#1481) 9c49dca
- Add XCCL collective communication activity tracing to XPU plugin (pytorch/kineto#1396) a97543e
- Fix CQS signal modernize-use-scoped-lock in fbcode/kineto/libkineto (pytorch/kineto#1480) e804b8f
- Un-deselect some profiler tests after fixing them (pytorch/kineto#1432) 446ac67
- Test controller async request arbitration (pytorch/kineto#1477) d579d88
- Annotation fixups (pytorch/kineto#1476) 994e6c5
Pull Request resolved: #190687
Approved by: https://github.com/Skylion007, https://github.com/scotts
youlituao pushed a commit to youlituao/pytorch that referenced this pull request Jul 28, 2026
Includes the following commits:

- Add XPU toggleCollectionDynamic mechanism (pytorch/kineto#1410) cb29370
- Explicitly wrap NCCL strings in output json (pytorch/kineto#1482) d62c7f5
- emit GPU_USER_ANNOTATION for user record_function ranges (pytorch/kineto#1393) a8fd013
- Re-select test_basic_chrome_trace_cpu on XPU (pytorch/kineto#1484) f451dfc
- Fix CQS signal readability-avoid-const-params-in-decls in fbcode/kineto/libkineto (pytorch/kineto#1486) c4e1538
- Add NCCL collective metadata fields to the catalog (pytorch/kineto#1483) a31870c
- Add addTypedMetadata to GenericTraceActivity (pytorch/kineto#1485) 29ab453
- Centralize MetadataField definitions (pytorch/kineto#1481) 9c49dca
- Add XCCL collective communication activity tracing to XPU plugin (pytorch/kineto#1396) a97543e
- Fix CQS signal modernize-use-scoped-lock in fbcode/kineto/libkineto (pytorch/kineto#1480) e804b8f
- Un-deselect some profiler tests after fixing them (pytorch/kineto#1432) 446ac67
- Test controller async request arbitration (pytorch/kineto#1477) d579d88
- Annotation fixups (pytorch/kineto#1476) 994e6c5
Pull Request resolved: pytorch#190687
Approved by: https://github.com/Skylion007, https://github.com/scotts
youlituao pushed a commit to youlituao/pytorch that referenced this pull request Jul 28, 2026
Includes the following commits:

- Add XPU toggleCollectionDynamic mechanism (pytorch/kineto#1410) cb29370
- Explicitly wrap NCCL strings in output json (pytorch/kineto#1482) d62c7f5
- emit GPU_USER_ANNOTATION for user record_function ranges (pytorch/kineto#1393) a8fd013
- Re-select test_basic_chrome_trace_cpu on XPU (pytorch/kineto#1484) f451dfc
- Fix CQS signal readability-avoid-const-params-in-decls in fbcode/kineto/libkineto (pytorch/kineto#1486) c4e1538
- Add NCCL collective metadata fields to the catalog (pytorch/kineto#1483) a31870c
- Add addTypedMetadata to GenericTraceActivity (pytorch/kineto#1485) 29ab453
- Centralize MetadataField definitions (pytorch/kineto#1481) 9c49dca
- Add XCCL collective communication activity tracing to XPU plugin (pytorch/kineto#1396) a97543e
- Fix CQS signal modernize-use-scoped-lock in fbcode/kineto/libkineto (pytorch/kineto#1480) e804b8f
- Un-deselect some profiler tests after fixing them (pytorch/kineto#1432) 446ac67
- Test controller async request arbitration (pytorch/kineto#1477) d579d88
- Annotation fixups (pytorch/kineto#1476) 994e6c5
Pull Request resolved: pytorch#190687
Approved by: https://github.com/Skylion007, https://github.com/scotts
aws-kingrj pushed a commit to amazon-contributing/upstream-to-pytorch that referenced this pull request Jul 29, 2026
Includes the following commits:

- Add XPU toggleCollectionDynamic mechanism (pytorch/kineto#1410) cb29370
- Explicitly wrap NCCL strings in output json (pytorch/kineto#1482) d62c7f5
- emit GPU_USER_ANNOTATION for user record_function ranges (pytorch/kineto#1393) a8fd013
- Re-select test_basic_chrome_trace_cpu on XPU (pytorch/kineto#1484) f451dfc
- Fix CQS signal readability-avoid-const-params-in-decls in fbcode/kineto/libkineto (pytorch/kineto#1486) c4e1538
- Add NCCL collective metadata fields to the catalog (pytorch/kineto#1483) a31870c
- Add addTypedMetadata to GenericTraceActivity (pytorch/kineto#1485) 29ab453
- Centralize MetadataField definitions (pytorch/kineto#1481) 9c49dca
- Add XCCL collective communication activity tracing to XPU plugin (pytorch/kineto#1396) a97543e
- Fix CQS signal modernize-use-scoped-lock in fbcode/kineto/libkineto (pytorch/kineto#1480) e804b8f
- Un-deselect some profiler tests after fixing them (pytorch/kineto#1432) 446ac67
- Test controller async request arbitration (pytorch/kineto#1477) d579d88
- Annotation fixups (pytorch/kineto#1476) 994e6c5
Pull Request resolved: pytorch#190687
Approved by: https://github.com/Skylion007, https://github.com/scotts
MelindaTan pushed a commit to MelindaTan/pytorch that referenced this pull request Jul 31, 2026
Includes the following commits:

- Add XPU toggleCollectionDynamic mechanism (pytorch/kineto#1410) cb29370
- Explicitly wrap NCCL strings in output json (pytorch/kineto#1482) d62c7f5
- emit GPU_USER_ANNOTATION for user record_function ranges (pytorch/kineto#1393) a8fd013
- Re-select test_basic_chrome_trace_cpu on XPU (pytorch/kineto#1484) f451dfc
- Fix CQS signal readability-avoid-const-params-in-decls in fbcode/kineto/libkineto (pytorch/kineto#1486) c4e1538
- Add NCCL collective metadata fields to the catalog (pytorch/kineto#1483) a31870c
- Add addTypedMetadata to GenericTraceActivity (pytorch/kineto#1485) 29ab453
- Centralize MetadataField definitions (pytorch/kineto#1481) 9c49dca
- Add XCCL collective communication activity tracing to XPU plugin (pytorch/kineto#1396) a97543e
- Fix CQS signal modernize-use-scoped-lock in fbcode/kineto/libkineto (pytorch/kineto#1480) e804b8f
- Un-deselect some profiler tests after fixing them (pytorch/kineto#1432) 446ac67
- Test controller async request arbitration (pytorch/kineto#1477) d579d88
- Annotation fixups (pytorch/kineto#1476) 994e6c5
Pull Request resolved: pytorch#190687
Approved by: https://github.com/Skylion007, https://github.com/scotts
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[release/2.13] [upstream_ut] profiler/test_profiler.py AssertionError: False is not true

4 participants