Skip to content

Reuse profiler helpers in mFSDP v2 symmetric memory tests#5873

Merged
wujingyue merged 1 commit into
NVIDIA:mainfrom
wujingyue:agent/reuse-profiler-utils-symm
Jul 23, 2026
Merged

Reuse profiler helpers in mFSDP v2 symmetric memory tests#5873
wujingyue merged 1 commit into
NVIDIA:mainfrom
wujingyue:agent/reuse-profiler-utils-symm

Conversation

@wujingyue

@wujingyue wujingyue commented Jul 18, 2026

Copy link
Copy Markdown
Contributor

What changed

  • Update test_symmetric_memory.py to profile CPU+CUDA events and reuse collect_linked_kernels for all-gather and reduce-scatter kernel attribution.
  • Check ncclSymk directly on the linked collective kernel names instead of keeping local profiler-name/count helpers.

Why

This keeps the mFSDP v2 profiler parsing logic in one helper path after #5859 added linked CPU-op attribution for profiler kernels.

Impact

Test-only refactor. There is no production-code behavior change.

Stacking

Stacked on #5859 with base branch pull-request/5859.

Validation

  • uv run --no-sync isort tests/unit_tests/distributed/mfsdp_v2/profiler_utils.py tests/unit_tests/distributed/mfsdp_v2/test_symmetric_memory.py
  • uv run --no-sync python -m compileall tests/unit_tests/distributed/mfsdp_v2/profiler_utils.py tests/unit_tests/distributed/mfsdp_v2/test_symmetric_memory.py
  • git diff --check
  • uv run --no-sync python -m pytest --collect-only -q tests/unit_tests/distributed/mfsdp_v2/test_symmetric_memory.py

Full distributed CUDA execution is left to CI because this refactor depends on linked profiler correlations from the CI PyTorch profiler build.

@copy-pr-bot

copy-pr-bot Bot commented Jul 18, 2026

Copy link
Copy Markdown

Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually.

Contributors can view more details about this message here.

@wujingyue
wujingyue changed the base branch from main to pull-request/5859 July 18, 2026 22:10
@wujingyue
wujingyue force-pushed the agent/reuse-profiler-utils-symm branch 2 times, most recently from cbf1c5a to 1383435 Compare July 18, 2026 23:11
@copy-pr-bot
copy-pr-bot Bot force-pushed the pull-request/5859 branch from 9153657 to fb5bf82 Compare July 18, 2026 23:12
@wujingyue
wujingyue force-pushed the agent/reuse-profiler-utils-symm branch from 1383435 to a16d05a Compare July 18, 2026 23:14
@copy-pr-bot
copy-pr-bot Bot force-pushed the pull-request/5859 branch from fb5bf82 to be3cbc6 Compare July 18, 2026 23:16
@wujingyue
wujingyue force-pushed the agent/reuse-profiler-utils-symm branch from a16d05a to 67a5adf Compare July 18, 2026 23:17
@copy-pr-bot

copy-pr-bot Bot commented Jul 18, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@wujingyue
wujingyue changed the base branch from pull-request/5859 to main July 21, 2026 04:41
@wujingyue
wujingyue force-pushed the agent/reuse-profiler-utils-symm branch 2 times, most recently from adab7f6 to 46b3e02 Compare July 21, 2026 15:39
Signed-off-by: Jingyue Wu <jingyuew@nvidia.com>
@wujingyue

Copy link
Copy Markdown
Contributor Author

/ok to test

@wujingyue
wujingyue added this pull request to the merge queue Jul 22, 2026
@svcnvidia-nemo-ci

Copy link
Copy Markdown
Contributor

🔄 Merge queue validation started!

You can track the progress here: https://github.com/NVIDIA/Megatron-LM/actions/runs/29920736154

@svcnvidia-nemo-ci

Copy link
Copy Markdown
Contributor

🔄 Merge queue validation started!

You can track the progress here: https://github.com/NVIDIA/Megatron-LM/actions/runs/29935237896

@svcnvidia-nemo-ci

Copy link
Copy Markdown
Contributor

🔄 Merge queue validation started!

You can track the progress here: https://github.com/NVIDIA/Megatron-LM/actions/runs/29960716719

@svcnvidia-nemo-ci

Copy link
Copy Markdown
Contributor

🔄 Merge queue validation started!

You can track the progress here: https://github.com/NVIDIA/Megatron-LM/actions/runs/29968252116

Merged via the queue into NVIDIA:main with commit d207685 Jul 23, 2026
88 checks passed
@wujingyue
wujingyue deleted the agent/reuse-profiler-utils-symm branch July 23, 2026 01:52
@wujingyue wujingyue linked an issue Jul 23, 2026 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Symmetric memory support in MFSDP v2

3 participants