Repository navigation
Conversation
Enable PTI_VIEW_COMMUNICATION collection in the XPU PTI plugin so oneCCL host-side collective operations show up in Kineto traces. Events are emitted as COLLECTIVE_COMM activities named with an "xccl::" prefix and carry the PTI communicator id as metadata. - Gate new code paths on PTI_VERSION_AT_LEAST(0, 17) - Wire enable/disable of PTI_VIEW_COMMUNICATION in XpuptiActivityApi - Add handleCommunicationActivity for pti_view_record_comms records - Add unit tests covering naming, field mapping, and out-of-range drop - Document INTEL_LIBITTNOTIFY64 requirement in libkineto/README.md
|
@gujinghui please review it. |
|
@scotts please help review this PR. Thanks. |
|
@scotts @divyanshk @ryanzhang22 |
|
@ryanzhang22 has imported this pull request. If you are a Meta employee, you can view this in D111239000. |
|
@tsocha ack on the responses. Can you take a look at the XPU CI failure before I lint and merge internally. |
|
|
I have fixed issue on the CI. |
|
@ryanzhang22 merged this pull request in a97543e. |
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
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
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
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
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
It's a part of #1335 3/3
Enable PTI_VIEW_COMMUNICATION collection in the XPU PTI plugin so oneCCL host-side collective operations show up in Kineto traces. Events are emitted as COLLECTIVE_COMM activities named with an "xccl::" prefix and carry the PTI communicator id as metadata.