add dsl algorithms support to bench collective - #887
Draft
RJ Souza (Empyreus) wants to merge 20 commits into
Draft
add dsl algorithms support to bench collective#887RJ Souza (Empyreus) wants to merge 20 commits into
RJ Souza (Empyreus) wants to merge 20 commits into
Conversation
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
Contributor
There was a problem hiding this comment.
Pull request overview
Adds multi-node DSL collective autotuning and CI coverage for AllReduce, AllGather, and ReduceScatter.
Changes:
- Compiles and tunes runtime DSL variants with configurable launch geometry.
- Adds ReduceScatter benchmarking and correctness validation.
- Reworks multi-node CI to exercise DSL collectives.
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 7 comments.
Show a summary per file
| File | Description |
|---|---|
test/deploy/run_tests.sh |
Adds manual multi-node DSL test helpers. |
python/mscclpp/default_algos/reducescatter_multi_nodes.py |
Adds a plan-generation CLI. |
python/mscclpp_benchmark/tuner.py |
Supports candidate-specific tuning dimensions. |
python/mscclpp_benchmark/correctness.py |
Validates ReduceScatter output. |
python/mscclpp_benchmark/comm.py |
Compiles and executes DSL variants. |
python/mscclpp_benchmark/bench_collective.py |
Adds DSL candidates and ReduceScatter benchmarking. |
.azure-pipelines/multi-nodes-test.yml |
Adds three multi-node DSL benchmark jobs. |
💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Contributor
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 7 out of 7 changed files in this pull request and generated 3 comments.
Suppressed comments (2)
python/mscclpp_benchmark/comm.py:203
- Every compiled DSL plan is hard-coded as in-place, but
--enable-dslcan be combined with--buffer-mode out-of-place, and_dsl_candidate_specsdoes not filter byalgorithm.buffer_mode. For out-of-place AllReduce/AllGather, the tuner therefore executes plans whose buffer layout assumes aliasing, causing incorrect output before falling into its default fallback. Either compile the requested mode where the builder supports it, or reject/filter DSL candidates whose mode does not match the case.
collective=collective_op,
nranks_per_node=nranks_per_node,
world_size=world_size,
in_place=True,
python/mscclpp_benchmark/bench_collective.py:405
- The accepted
buffer_modeargument is ignored for ReduceScatter: requestingout-of-placestill returns an aliased input/output case. This silently benchmarks a different layout than the CLI requested. Since the registered ReduceScatter DSL algorithm is in-place-only, reject this combination explicitly.
if collective == _REDUCESCATTER:
# The DSL reducescatter is compiled in-place, so the per-rank output chunk always aliases the
# matching slice of the full input buffer (mirrors python/test/executor_test.py build_bufs).
input_buffer = _mscclpp().GpuBuffer(nelems * comm_group.nranks, dtype=dtype_spec.cupy_dtype)
Comment on lines
+408
to
+411
| return BenchmarkCase( | ||
| collective=collective, | ||
| message_size=output.nbytes, | ||
| total_size=input_buffer.nbytes, |
Comment on lines
+315
to
+317
| if n_nodes > 1 and not candidate.supports_multi_node: | ||
| filtered_out = True | ||
| continue |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.