Skip to content

Test that the per-group stream ordering keeps signal-pad rounds apart - #28

Open
kapilsh wants to merge 1 commit into
symmem/stream-guardfrom
symmem/stream-guard-data-tests
Open

kapilsh wants to merge 1 commit into
symmem/stream-guardfrom
symmem/stream-guard-data-tests

Conversation

@kapilsh

@kapilsh kapilsh commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Add data tests for group_stream_guard on the CUDA and NCCL backends:
    • barrier and put/wait rounds on two streams
    • barriers on streams that fork in a captured graph
    • a wait on the pad kernel only
    • two host threads
  • The tests warm up the kernels first. Lazy module loading synchronizes the device, which puts the streams in order without the guard.

Test plan

  • test_stream_order.py on 2x GB200: 4 passed.
  • With the guard disabled, the two-stream and graph tests fail.

@kapilsh
kapilsh added this pull request to stack #26 November 12, 2026 18:11
@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Nov 12, 2026
@kapilsh
kapilsh force-pushed the symmem/stream-guard-data-tests branch from bd27f14 to b7448c4 Compare November 16, 2026 15:26
@kapilsh
kapilsh removed this pull request from stack #26 November 16, 2026 15:28
@kapilsh
kapilsh added this pull request to stack #31 November 16, 2026 15:28
@kapilsh
kapilsh force-pushed the symmem/stream-guard-data-tests branch 6 times, most recently from 178e55b to 5e51ced Compare November 19, 2026 19:26
@kapilsh
kapilsh removed this pull request from stack #31 November 20, 2026 02:41
@kapilsh
kapilsh force-pushed the symmem/stream-guard-data-tests branch from 5e51ced to c299e5c Compare November 20, 2026 02:41
@kapilsh
kapilsh added this pull request to stack #34 November 20, 2026 02:41
@kapilsh
kapilsh force-pushed the symmem/stream-guard-data-tests branch 2 times, most recently from fb8149d to 4d7ed12 Compare November 22, 2026 14:05
@kapilsh
kapilsh removed this pull request from stack #34 November 22, 2026 14:30
@kapilsh
kapilsh added this pull request to stack #41 November 22, 2026 14:30
@kapilsh
kapilsh force-pushed the symmem/stream-guard-data-tests branch from 4d7ed12 to c5dd90c Compare November 26, 2026 11:32
Data checks for group_stream_guard on the CUDA and NCCL backends:
barrier and put/wait rounds on two streams, barriers on streams forked
inside a captured graph, waiting on the pad kernel only, and two host
threads. With the guard disabled, the two-stream and graph checks fail.

Kernels are warmed up first, since lazy module loading synchronizes the
device and would order the streams by itself.
@kapilsh
kapilsh force-pushed the symmem/stream-guard-data-tests branch from c5dd90c to ed679c4 Compare November 27, 2026 11:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant