Skip to content

[HIP] [JIT] Enable gfx1250 QuickReduce for TP2 and TP4 - #5965

Merged
zufayu merged 4 commits into
ROCm:mainfrom
hubertlu-tw:qr_gfx1250
Oct 21, 2026
Merged

zufayu merged 4 commits into
ROCm:mainfrom
hubertlu-tw:qr_gfx1250

Conversation

@hubertlu-tw

@hubertlu-tw hubertlu-tw commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

Motivation

QuickReduce assumed gfx9 launch and synchronization behavior and was not correct or graph-safe on gfx1250. This change enables BF16 INT4 QuickReduce on gfx1250 for TP2, TP4, and TP8, and keeps the existing path on gfx942 and gfx950.

Changes

  • Add a gfx1250 PullQ4 INT4 path. It runs three dispatches on one stream:

    • quantize each 32 KiB tile once into the rank's IPC buffer;
    • publish/wait in a single CTA with system-scope release/acquire;
    • reduce by pulling every peer's compressed tile.

    Every rank reduces in fixed rank order, so outputs are bit-identical across ranks.

  • Epoch-parity ping-pong payloads keep graph replays from overwriting data that peers are still reading.

  • A PullQ4 communicator is bound to INT4 and allocates only the PullQ4 layout, about 0.56× the max problem size. Legacy two-shot and fused-RMSNorm calls on it throw.

  • Route BF16 INT4 to QuickReduce only at the measured crossovers: TP2 ≥ 16 MiB, TP4 ≥ 8 MiB, TP8 ≥ 16 MiB. Smaller messages fall back to AITER custom all-reduce, or to RCCL at TP8, where AITER custom all-reduce is unavailable on gfx1250.

  • gfx1250 routes only AITER_QUICK_REDUCE_QUANTIZATION=INT4 with AITER_QUICK_REDUCE_CAST_BF16_TO_FP16=1. For any other quantization, or CAST_BF16_TO_FP16=0, the communicator is disabled at init with a log line and no IPC buffer is allocated. PullQ4 kernels are instantiated only for the BF16→FP16 route.

  • The gfx1250 default for AITER_QUICK_REDUCE_MAX_SIZE_BYTES_MB is 512 MiB (about 288 MiB allocated per rank), matching the benchmark and serving configuration.

  • Only the gfx1250 prefix is enabled, in both Python and C++. Other gfx125x parts stay disabled until they are validated.

  • gfx1250 layouts, PullQ4 kernels, route selection, and launch helpers live in quick_all_reduce_gfx1250.cuh. Codecs, legacy two-shot kernels, communicator lifecycle, and IPC setup stay shared. There are no debug environment variables.

  • init_custom_qr takes an optional quant_level; the original three-argument call still works.

Changes in code shared with gfx942/gfx950

Code compiled without __gfx1250__ keeps main's behavior on the two-shot hot path:

  • CodecQ4 send/recv are split into per-atom helpers with identical logic.
  • The gfx1250-only parts (group-leader scale load with __shfl, wave32 lane math in group_abs_max, system-scope flag atomics) are behind #if defined(__gfx1250__).
  • The legacy IPC flag layout and d_flag_color sizing are unchanged.
  • The quantization level is enforced only on PullQ4 communicators, so gfx942/gfx950 communicators still accept any level per call.

Incidental fixes that change legacy behavior:

  • data_buffer_size is no longer static, so a second communicator with a different max size is sized correctly.
  • The kMaxProblemSize check compares bytes instead of element count.
  • Two-shot comm-data offsets are int64_t.
  • Each data phase is rounded up to a whole tile. This is identical for tile-aligned sizes and fixes phase overlap for unaligned ones.
  • destroy() is noexcept, continues best-effort cleanup, and closes peer handles through the host-side pointer list.
  • Fused RMSNorm with INT3 now throws, and Python no longer routes it; previously it silently ran the FP codec.
  • Direct C++ callers now get explicit errors for empty inputs, byte counts that are not multiples of 16 (legacy routes), a max size above 2 GiB, and invalid quantization levels. Python already filtered these.

Validation

Hardware: gfx1250 in DPX mode (8 partitions with 96 CUs each; GPU pairs 0/1, 2/3, 4/5, 6/7 share a package).

  • PullQ4 INT4 passed at TP2, TP4, and TP8:
    • eager and graph execution;
    • nonaligned tails (1, 7, 1023, and 16391 elements);
    • rank skew and changing inputs;
    • 1,000 alternating replays of two captured sizes;
    • 3,000-replay reruns at TP8.
  • Additional checks at all three TP sizes:
    • sizes up to exactly 512 MiB, including odd tails;
    • outputs bit-identical across ranks;
    • no writes past the end of the output;
    • oversized inputs rejected.
  • The shared two-shot codecs (FP, FP8, INT6, unconfigured INT4) passed on gfx1250 at TP2/TP4/TP8, and INT3 at TP2. These ran through direct op calls only, not production routing.
  • Also passed:
    • init-time disabling;
    • routing gates;
    • invalid quantization levels;
    • legacy-route rejection on PullQ4 communicators;
    • the three-argument init call.
  • The gfx1250 test also passed with PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True. QuickReduce IPC-exports only its own hipExtMallocWithFlags buffer and never registers PyTorch tensors.
  • test_quick_all_reduce_rmsnorm.py passes. test_quick_all_reduce.py fails identically on main on gfx1250, because it hardcodes TP8 and AITER custom all-reduce rejects TP8 on gfx1250.
  • Black, Ruff, clang-format 18, and git diff --check pass.
ENABLE_CK=0 PYTHONPATH=$PWD python3 op_tests/multigpu_tests/test_quick_all_reduce_gfx1250.py

The test runs with no arguments, loops over the available TP sizes, and exits 0 on non-gfx1250 devices, so it is safe under .github/scripts/aiter_test.sh.

gfx942/gfx950: TODO, attach legacy QuickReduce correctness results and INT4 latency (before/after).

Microbenchmark

Configuration:

  • BF16, IPC, 20 warmups, 101 timed iterations.
  • Timing is the slowest-rank mean of GPU events.
  • The TP2/TP4 baseline is AITER custom all-reduce with a registered 512 MiB buffer.
  • AITER custom all-reduce does not support TP8 on gfx1250, so TP8 is compared with the fastest lossless all-reduce available there: SGLang custom all-reduce v1, or RCCL where that is faster (eager 512 MiB).

Speedup is baseline / QuickReduce.

TP Size QR eager (ms) Baseline eager (ms) Eager speedup QR graph (ms) Baseline graph (ms) Graph speedup
2 8 MiB 0.0558 0.0501 0.899x 0.0467 0.0434 0.928x
2 16 MiB 0.0621 0.0639 1.028x 0.0523 0.0572 1.094x
2 32 MiB 0.0918 0.0962 1.048x 0.0817 0.0890 1.089x
2 64 MiB 0.1453 0.1543 1.062x 0.1342 0.1484 1.106x
2 128 MiB 0.2412 0.2659 1.102x 0.2340 0.2614 1.117x
2 256 MiB 0.4264 0.4889 1.147x 0.4204 0.4835 1.150x
2 512 MiB 0.7947 0.9286 1.169x 0.7866 0.9195 1.169x
4 4 MiB 0.1359 0.0970 0.714x 0.1291 0.0897 0.695x
4 8 MiB 0.1522 0.3199 2.102x 0.1411 0.3127 2.216x
4 16 MiB 0.1625 0.5930 3.648x 0.1581 0.5843 3.696x
4 32 MiB 0.3446 1.1377 3.301x 0.3380 1.1364 3.362x
4 64 MiB 0.6619 2.2269 3.364x 0.6534 2.2119 3.385x
4 128 MiB 1.2151 4.3863 3.610x 1.2058 4.3941 3.644x
4 256 MiB 2.3907 8.6760 3.629x 2.3743 8.7291 3.677x
4 512 MiB 4.6565 16.9683 3.644x 4.6427 17.1344 3.691x
8 8 MiB 0.3770 0.3826 1.015x 0.3672 0.3745 1.020x
8 16 MiB 0.5558 0.7161 1.289x 0.5516 0.7011 1.271x
8 32 MiB 1.1056 1.3793 1.248x 1.0955 1.3546 1.236x
8 64 MiB 2.0508 2.7029 1.318x 2.0354 2.6636 1.309x
8 128 MiB 3.4595 5.3532 1.547x 3.4327 5.2758 1.537x
8 256 MiB 6.2272 10.6289 1.707x 6.1685 10.4994 1.702x
8 512 MiB 11.1911 14.6765 1.311x 11.1326 20.9104 1.878x

Crossovers:

  • TP2 crosses AITER custom all-reduce at 16 MiB and TP4 at 8 MiB, the same as in SPX mode on the previous revision of this PR.
  • TP8 is routed from 16 MiB because its 8 MiB margin is within noise. At TP8, QuickReduce beats RCCL (AITER's actual TP8 fallback) at every measured size, for example 8.8x at 8 MiB.
  • TP2 gains less in DPX than in SPX because both TP2 GPUs share a package.
  • Compared with the previous revision of this PR, two interleaved repetitions show every TP2/TP4 row within noise. Isolated reruns of the two outlier rows matched within 0.5%.

Commands:

cd /sgl-workspace/sglang

PYTHONPATH=/sgl-workspace/aiter:$PWD/python ENABLE_CK=0 \
python benchmark/kernels/all_reduce/benchmark_rocm.py \
  --sweep-output-dir /tmp/qr_int4_bf16 \
  --sweep-tp 2,4,8 --sweep-modes eager,graph --dtype bf16 \
  --impls qr-int4 \
  --min-size-kb 1024 --max-size-mb 512 \
  --comm-buffer-mb 512 --input-pool-mb 512 \
  --warmup 20 --iters-small 101 --iters-large 101

PYTHONPATH=/sgl-workspace/aiter:$PWD/python ENABLE_CK=0 \
AITER_CUSTOM_AR_MAX_SIZE=536870912 \
python benchmark/kernels/all_reduce/benchmark_rocm.py \
  --sweep-output-dir /tmp/aiter_car_bf16 \
  --sweep-tp 2,4 --sweep-modes eager,graph --dtype bf16 \
  --impls aiter \
  --min-size-kb 1024 --max-size-mb 512 \
  --comm-buffer-mb 512 --input-pool-mb 512 \
  --warmup 20 --iters-small 101 --iters-large 101

PYTHONPATH=/sgl-workspace/aiter:$PWD/python ENABLE_CK=0 \
python benchmark/kernels/all_reduce/benchmark_rocm.py \
  --sweep-output-dir /tmp/lossless_tp8_bf16 \
  --sweep-tp 8 --sweep-modes eager,graph --dtype bf16 \
  --impls rccl,sgl-v1 \
  --min-size-kb 1024 --max-size-mb 512 \
  --comm-buffer-mb 512 --input-pool-mb 512 \
  --warmup 20 --iters-small 101 --iters-large 101

The QuickReduce rows below each TP's routing minimum (for example TP4 4 MiB) were measured with the minimum temporarily lowered for benchmarking only.

Serving A/B (SGLang)

Setup:

  • DeepSeek-V4-Flash at TP4 on gfx1250 DPX, with HIP_FORCE_DEV_KERNARG=1.
  • The QuickReduce arm sets AITER_QUICK_REDUCE_QUANTIZATION=INT4, AITER_QUICK_REDUCE_CAST_BF16_TO_FP16=1, and AITER_QUICK_REDUCE_MAX_SIZE_BYTES_MB=512.
  • Every rank logged QuickReduce selection for the 16.2 MB prefill all-reduce. Smaller messages used AITER custom all-reduce.
Metric AITER custom AR INT4 QuickReduce Change
GSM8K score, 1,314 examples 0.960 0.960 0.000
Completed requests 256/256 256/256 —
Output throughput (tok/s) 869.98 993.99 +14.25%
Median E2E latency (ms) 75,370.84 65,970.16 −12.47%
Median TTFT (ms) 25,925.36 21,136.50 −18.47%
Median TPOT (ms) 48.34 43.83 −9.33%

The previous revision of this PR measured 0.958 / 994.27 tok/s / 65,963.41 ms / 21,132.39 ms / 43.83 ms in the same setup, so the refactor has no end-to-end regression. No GPU fault or traceback occurred.

SGLang needs a small integration to reach AITER QuickReduce on gfx1250: its own QuickReduce wrapper is gfx94/gfx95-only, and it consults custom all-reduce before QuickReduce. The A/B used the following local patch. With AITER_QUICK_REDUCE_QUANTIZATION unset, SGLang behavior is unchanged.

SGLang patch used for the A/B (python/sglang/srt/distributed/parallel_state.py)
@functools.cache
def _use_aiter_gfx1250_quick_reduce() -> bool:
    if not is_hip():
        return False
    if os.environ.get("AITER_QUICK_REDUCE_QUANTIZATION", "NONE") == "NONE":
        return False
    return "gfx1250" in torch.cuda.get_device_properties(0).gcnArchName

# GroupCoordinator.__init__: construct AITER's QuickAllReduce on gfx1250
elif _use_aiter_gfx1250_quick_reduce():
    from aiter.dist.device_communicators.quick_all_reduce import (
        QuickAllReduce as AiterQuickAllReduce,
    )
    self.qr_comm = AiterQuickAllReduce(group=self.cpu_group, device=self.device)

# _resolve_outplace_all_reduce_method: consult it before custom all-reduce
if (
    _use_aiter_gfx1250_quick_reduce()
    and self.qr_comm is not None
    and not self.qr_comm.disabled
    and self.qr_comm.should_quick_allreduce(input_)
):
    return "qr"

Commands:

cd /sgl-workspace/sglang
unset NCCL_MIN_NCHANNELS NCCL_MAX_NCHANNELS
export SGLANG_DEFAULT_THINKING=1 SGLANG_DSV4_REASONING_EFFORT=max \
  SGLANG_USE_ROCM700A=0 SGLANG_HACK_FLASHMLA_BACKEND=unified_kv_triton \
  AITER_BF16_FP8_MOE_BOUND=0 AITER_FORCE_A8W4=1 \
  SGLANG_OPT_FUSE_MHC_POST_PRE=0 ENABLE_CK=0 SGLANG_USE_AITER=1 \
  HIP_FORCE_DEV_KERNARG=1
export PYTHONPATH=/sgl-workspace/aiter:/sgl-workspace/sglang/python

# Case A: AITER custom all-reduce
unset AITER_QUICK_REDUCE_QUANTIZATION \
  AITER_QUICK_REDUCE_CAST_BF16_TO_FP16 \
  AITER_QUICK_REDUCE_MAX_SIZE_BYTES_MB

# Case B: restart the server after setting these variables
export AITER_QUICK_REDUCE_QUANTIZATION=INT4
export AITER_QUICK_REDUCE_CAST_BF16_TO_FP16=1
export AITER_QUICK_REDUCE_MAX_SIZE_BYTES_MB=512

Run the following server, accuracy, and serving commands once for each case:

python3 -m sglang.launch_server \
  --model-path /hf_hub_cache/DeepSeek-V4-Flash \
  --trust-remote-code --tp 4 --attention-backend dsv4 --page-size 256 \
  --mem-fraction-static 0.8 --swa-full-tokens-ratio 0.15 \
  --tool-call-parser deepseekv4 --reasoning-parser deepseek-v4 \
  --chunked-prefill-size 2048 --max-prefill-tokens 2048 \
  --cuda-graph-max-bs-decode 256 --max-running-requests 256 \
  --kv-cache-dtype fp8_e4m3 --port 30000

python3 -m sglang.test.run_eval \
  --port 30000 --model deepseek-ai/DeepSeek-V4-Pro \
  --eval-name gsm8k --api chat --num-examples 1319 \
  --num-threads 256 --num-shots 5 --temperature 0 --top-p 1 \
  --reasoning-effort high

python3 -m sglang.benchmark.serving \
  --backend sglang --base-url http://127.0.0.1:30000 \
  --model /hf_hub_cache/DeepSeek-V4-Flash \
  --dataset-name random --random-input-len 8192 \
  --random-output-len 1024 --random-range-ratio 1.0 \
  --num-prompts 256 --max-concurrency 64 --request-rate inf \
  --warmup-requests 128 --seed 42

Known unrelated issue: with PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True, this server aborts during decode graph capture inside AITER custom all-reduce (hipIpcGetMemHandle in graph-buffer registration), with or without QuickReduce. It will be tracked and fixed separately.

Checklist

  • TP2, TP4, and TP8 IPC correctness on gfx1250 (DPX)
  • 1,000 changing-input graph replays (3,000 at TP8)
  • BF16 1–512 MiB eager and graph benchmark; no regression versus the previous revision
  • TP4 GSM8K and serving A/B
  • Test runs under aiter_test.sh with no arguments and exits 0 on non-gfx1250
  • Python and C++ formatting and lint checks
  • No 3rdparty/ changes
  • gfx942/gfx950 legacy QuickReduce correctness and INT4 latency

@hubertlu-tw
hubertlu-tw requested review from a team, HaiShaw and TennyWang1223 September 30, 2026 00:35
@github-actions

Copy link
Copy Markdown
Contributor

🏷️ CI Guide

Runs automatically on every PR:

  • ✅ Pre-checks (submodule verification, code formatting)
  • ✅ Aiter op tests (gfx942 + gfx950)
  • ✅ Triton tests on MI35X (only when aiter/ops/triton/** or related paths are changed)

Extended tests (opt-in via labels):

Label Tests
ci:gfx1250-ffm-triton Run the five-shard gfx1250 FFM Triton test suite
ci:triton-300x Run an additional Triton test job on MI300X in PRs (added automatically when gfx942 configs change); main branch always runs both MI35X and MI300X
ci:triton-355 Run the full Triton test suite on MI35X, not only the tests the change affects
multigpu Aiter multi-GPU tests on the 8-GPU runner
ci:sglang SGLang integration tests: DeepSeek-R1-MXFP4 accuracy, Qwen 3.5 accuracy
ci:atom ATOM benchmark: DeepSeek-R1-0528, GPT-OSS-120B
ci:atom_full ATOM accuracy suite for PR and main models from ATOM models_accuracy.json
ci:vllm vLLM benchmark: GPT-OSS-120B, DeepSeek-R1-0528, Kimi-K2.5
ci:all All standard extended tests (excludes ci:atom_full)

Only add ci:atom_full for FlyDSL or Triton upgrades.
Add labels via the sidebar or gh pr edit 5965 --add-label <label>

One backend per PR:
A PR changes one kernel backend: [Triton/Gluon] (Triton and Gluon count as one), [HIP], [ASM], [CK], [OPUS] or [FlyDSL]. If the title ends up with two backend tags, split the PR -- as stacked pull requests when one part cannot merge without the other.

PR title tags & labels:
Component tags ([Triton/Gluon], [HIP], [CK], [ASM], ...) are added to the PR title and as PR labels automatically from the changed files and re-synced on every push — change-type tags like [fix]/[Perf], op tags like [MLA], and human labels (ci:*) are left untouched. Add the no-auto-title label to stop the title rewrites; labels stay in sync either way.

@github-actions github-actions Bot changed the title Enable gfx1250 QuickReduce for TP2 and TP4 [HIP] Enable gfx1250 QuickReduce for TP2 and TP4 Sep 30, 2026
@github-actions github-actions Bot added the HIP label Sep 30, 2026
@hubertlu-tw hubertlu-tw added multigpu ci:multi-gpu Trigger multi-GPU op tests on PR labels Sep 30, 2026

@TennyWang1223 TennyWang1223 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review summary

Thanks for the work. The PullQ4 protocol itself looks sound to me:

  • Per-tile epochs + ping-pong slots give the right WAR guarantee: observing a peer's epoch e+1 flag implies that peer's kernel e has completed, so reusing the epoch-e slot at e+2 is safe.
  • The bulk path uses a disjoint region [2·pq, 4·pq) with its own epoch, and it fits within the 2·data_size_per_phase allocation (Q4 transmits 9216 B per 32 KiB tile, so 4·pq + 8 < 2·data_size_per_phase).
  • Every rank reduces in fixed rank order and also uses the quantized copy of its own contribution, so outputs are bit-identical across ranks.

The incidental fixes are welcome: static data_buffer_size, the numel-vs-bytes kMaxProblemSize check, int64 comm offsets, and noexcept destroy(). Please call them out in the PR description, since they change legacy behavior.

Blocking

  1. The new test breaks the multi-GPU CI runner (see item 1 below).
  2. Several changes land in code shared with gfx942/gfx950: CodecQ4 recv_atom, the IPC buffer layout, and quant-level binding. Those archs were not run. Please attach legacy QR correctness results and INT4 perf numbers on gfx942/gfx950 before merge.

1.op_tests/multigpu_tests/gfx1250_poc/test_gfx1250_quick_allreduce.py:297

.github/scripts/aiter_test.sh runs every file under op_tests/multigpu_tests as python3 $file with no arguments. --tp-size is required=True, so argparse exits with code 2 on every multi-GPU CI run, MI300 included. Even with arguments, _run_tp_test calls pytest.skip() outside pytest on non-gfx1250
machines. That raises Skipped, and the script exits non-zero.

Suggestions:

  • Give --tp-size a default (or loop over TP2/TP4), and sys.exit(0) early when the device is not gfx1250. Alternatively, add the file to skip_tests.
  • gfx1250_poc/ reads like a scratch directory. Consider moving this regression test somewhere permanent.

2.csrc/include/quick_all_reduce.cuh:187

This changes the CodecQ4 scale load from "every lane loads" to "group leader loads + __shfl". CodecQ4 is shared with the gfx942/gfx950 INT4 two-shot path, which is the most-used QR configuration, and this adds a ds_bpermute per atom there.

Was this change needed for correctness on wave32, or is it a perf change? Either way, please share gfx942/gfx950 INT4 latency before and after, or keep the original load path under #if !defined(__gfx1250__).

3.csrc/include/quick_all_reduce.cuh:1695

Python now always passes quant_level to init_custom_qr. As a result, every communicator, including gfx942/gfx950 ones, is bound to a single level, and any call with a different level throws. That is fine for aiter's own wrapper, but it changes behavior for any caller that reuses a communicator across levels.
Please either note this in the description or only enforce the binding when use_pull_q4 is true.

4.aiter/dist/device_communicators/quick_all_reduce.py:290

On gfx1250, the only routable configuration is INT4 with use_fp16_kernels. With QUANTIZATION=FP/FP8/INT6/INT3 or CAST_BF16_TO_FP16=0, the communicator still initializes and allocates the IPC buffer (about 512 MiB per rank at the 256 MiB default), yet should_quick_allreduce never returns True. Suggest
disabling QR at init in those cases, with a log line.

Related:

  • The description says FP/FP8/INT6 "passed" on gfx1250. Please clarify that this is via direct op calls only, not production routing.
  • The T=bf16, cast_bf2half=false PullQ4 instantiations are unreachable from Python.

5.csrc/include/quick_all_reduce_gfx1250.cuh:42

AITER_QUICK_REDUCE_FORCE_PULL_Q4 and AITER_QUICK_REDUCE_FORCE_PULL_Q4_BULK are undocumented debug knobs read from C++ at init. The production route only reaches the bulk path, because the Python minimum is 8/16 MiB and the bulk threshold here is 1 MiB. Can we drop these env vars and the non-bulk PullQ4 path?
If non-bulk is kept, see item 6.

6.csrc/include/quick_all_reduce.cuh:1704

In non-bulk PullQ4, CTAs spin-wait on peers' per-tile flags. The grid goes up to kMaxNumBlocks = 304 * 4, a constant derived from MI300. With FORCE_PULL_Q4 set and bulk off, a large message launches 1216 CTAs that are not guaranteed to be co-resident, which can hang across ranks.

Please either cap the grid at a co-residency-safe value for gfx1250, or restrict non-bulk to small messages unconditionally.

7.csrc/include/quick_all_reduce_gfx1250.cuh:402

Correctness here depends on the quantize kernel's nontemporal payload stores being visible to peers after the kernel boundary and before this kernel's system-scope release. That only holds because dbuffer is allocated with hipDeviceMallocUncached. Please add a one-line comment saying so, so nobody changes the
allocation flags later without realizing it.

8.aiter/dist/device_communicators/quick_all_reduce.py:258

The gfx1250 default qr_max_size is 256 MiB, but the microbenchmark and serving runs set AITER_QUICK_REDUCE_MAX_SIZE_BYTES_MB=512. With defaults, the 512 MiB rows in the table fall back to CAR. Please either document this or align the default.

9. [nit] Arch gating

Both Python and C++ match only the gfx1250 prefix, so the rest of the gfx125x family stays disabled. If that's intentional, consider saying so in the description.

@github-actions github-actions Bot changed the title [HIP] Enable gfx1250 QuickReduce for TP2 and TP4 [HIP] [JIT] Enable gfx1250 QuickReduce for TP2 and TP4 Oct 14, 2026
@github-actions github-actions Bot added the JIT label Oct 14, 2026
@TennyWang1223
TennyWang1223 self-requested a review October 14, 2026 07:00
TennyWang1223
TennyWang1223 previously approved these changes Oct 14, 2026

@TennyWang1223 TennyWang1223 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

quick_reduce_scatter.cu, added on main by ROCm#6031, uses kWavefront, which this branch had renamed to kBlockX. Restore main's definition so the merged tree builds. The launch geometry is unchanged ({64, 4, 1}).
@zufayu
zufayu merged commit fa344a2 into ROCm:main Oct 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci:multi-gpu Trigger multi-GPU op tests on PR HIP JIT multigpu

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants