Skip to content

ci: skip fsdp_symm_mem integration test on ROCm - #3597

Merged
tianyu-l merged 1 commit into
pytorch:mainfrom
rishisinhanj:skip-fsdp-symm-mem-rocm
Jun 9, 2026
Merged

tianyu-l merged 1 commit into
pytorch:mainfrom
rishisinhanj:skip-fsdp-symm-mem-rocm

Conversation

@rishisinhanj

@rishisinhanj rishisinhanj commented Jun 9, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Skip the fsdp_symm_mem flavor on the ROCm leg of the 8 GPU Integration Test on H100 workflow. The CUDA/H100 leg continues to run it unchanged.

Why

PyTorch's FSDP2 symmetric-memory path (set_symm_mem_for_comm() → _SymmetricMemory.rendezvous) selects the NCCL symm-mem allocator, which routes through RCCL on ROCm. I opened up a similar PR initially, but closed it because we have symmetric mem enabled through AMD, so we hoped to keep it enabled through #3485 . However, the test still fails at rendezvous:

NCCL host communicator for group 0 not found
  at nccl_devcomm_manager.hpp:106

torchtitan's code is correct here; the fix belongs upstream in PyTorch (correct allocator selection on ROCm). Disabling the ROCm leg now keeps the workflow green pending that upstream fix.

How

Adds skip_rocm_test=True to the fsdp_symm_mem OverrideDefinitions in tests/integration_tests/h100.py. run_tests.py honors this when invoked with --gpu_arch_type rocm, which the build-test-rocm leg passes via run_8xgpu_integration_tests.sh. This is the same mechanism #3576 used to skip the hybridep flavor on ROCm.

Test plan

  • CUDA/H100 leg still runs fsdp_symm_mem (unchanged).
  • ROCm build-test-rocm leg skips fsdp_symm_mem.

PyTorch's FSDP2 symmetric-memory path selects the NCCL symm-mem
allocator, which routes through RCCL on ROCm -- an unsupported path
(ROCm symm-mem uses HIP runtime APIs directly). The test fails at
rendezvous with "NCCL host communicator for group 0 not found".
Skip on the ROCm leg of the 8 GPU H100 integration tests until the
backend selection is fixed upstream in PyTorch.
@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Jun 9, 2026
@pytorch-bot

pytorch-bot Bot commented Jun 9, 2026

Copy link
Copy Markdown

Unknown label ciflow/rocm.
Currently recognized labels are

  • ciflow/8gpu
  • ciflow/h100.8
  • ciflow/rl

@pytorch-bot

pytorch-bot Bot commented Jun 9, 2026 •

Copy link
Copy Markdown

Workflows were awaiting approval. CI has now been triggered for the ciflow labels on this PR.

@tianyu-l

tianyu-l commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

lint error

@rishisinhanj

Copy link
Copy Markdown
Contributor Author

lint error

The lint error is not related to any of our changes in the file (it is a 1 line addition) so I think this should be safe to merge.

the error with stride shard is in utils so not connected in any way (could be because of the nightly change)

@tianyu-l
tianyu-l merged commit a9c5edc into pytorch:main Jun 9, 2026
36 of 41 checks passed
wwwjn pushed a commit that referenced this pull request Jun 10, 2026
## Summary

Skip the `fsdp_symm_mem` flavor on the ROCm leg of the **8 GPU
Integration Test on H100** workflow. The CUDA/H100 leg continues to run
it unchanged.

## Why

PyTorch's FSDP2 symmetric-memory path (`set_symm_mem_for_comm()` →
`_SymmetricMemory.rendezvous`) selects the **NCCL symm-mem allocator**,
which routes through RCCL on ROCm. I opened up a similar PR initially,
but closed it because we have symmetric mem enabled through AMD, so we
hoped to keep it enabled through #3485 . However, the test still fails
at rendezvous:

```
NCCL host communicator for group 0 not found
  at nccl_devcomm_manager.hpp:106
```

torchtitan's code is correct here; the fix belongs upstream in PyTorch
(correct allocator selection on ROCm). Disabling the ROCm leg now keeps
the workflow green pending that upstream fix.

## How

Adds `skip_rocm_test=True` to the `fsdp_symm_mem` `OverrideDefinitions`
in `tests/integration_tests/h100.py`. `run_tests.py` honors this when
invoked with `--gpu_arch_type rocm`, which the `build-test-rocm` leg
passes via `run_8xgpu_integration_tests.sh`. This is the same mechanism
#3576 used to skip the hybridep flavor on ROCm.

## Test plan

- [ ] CUDA/H100 leg still runs `fsdp_symm_mem` (unchanged).
- [ ] ROCm `build-test-rocm` leg skips `fsdp_symm_mem`.
saforem2 pushed a commit to saforem2/torchtitan that referenced this pull request Jun 10, 2026
## Summary

Skip the `fsdp_symm_mem` flavor on the ROCm leg of the **8 GPU
Integration Test on H100** workflow. The CUDA/H100 leg continues to run
it unchanged.

## Why

PyTorch's FSDP2 symmetric-memory path (`set_symm_mem_for_comm()` →
`_SymmetricMemory.rendezvous`) selects the **NCCL symm-mem allocator**,
which routes through RCCL on ROCm. I opened up a similar PR initially,
but closed it because we have symmetric mem enabled through AMD, so we
hoped to keep it enabled through pytorch#3485 . However, the test still fails
at rendezvous:

```
NCCL host communicator for group 0 not found
  at nccl_devcomm_manager.hpp:106
```

torchtitan's code is correct here; the fix belongs upstream in PyTorch
(correct allocator selection on ROCm). Disabling the ROCm leg now keeps
the workflow green pending that upstream fix.

## How

Adds `skip_rocm_test=True` to the `fsdp_symm_mem` `OverrideDefinitions`
in `tests/integration_tests/h100.py`. `run_tests.py` honors this when
invoked with `--gpu_arch_type rocm`, which the `build-test-rocm` leg
passes via `run_8xgpu_integration_tests.sh`. This is the same mechanism
pytorch#3576 used to skip the hybridep flavor on ROCm.

## Test plan

- [ ] CUDA/H100 leg still runs `fsdp_symm_mem` (unchanged).
- [ ] ROCm `build-test-rocm` leg skips `fsdp_symm_mem`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/rocm ciflow/8gpu CLA Signed This label is managed by the Meta Open Source bot. module: rocm

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants