mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #1099] [CLOSED] layer split: the hand-off over peer access on NVLink (3.3 -> 48 GB/s, +0.9% e2e) #3024
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#3024
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/1099
Author: @ATIVX928
Created: 10/6/2026
Status: ❌ Closed
Base:
main← Head:v100/split-p2p-v2📝 Commits (2)
b770b95bench: the layer-split hand-off across NVLink vs pinned RAM (2x V100, measured)3424df5layer split: the hand-off over peer access (STRATA_SPLIT_P2P), measured on 2x V100 NVLink📊 Changes
10 files changed (+579 additions, -30 deletions)
View changed files
📝
CMakeLists.txt(+9 -0)➕
bench/results/2026-10-02-v100-split-p2p/README.md(+79 -0)➕
bench/results/2026-10-02-v100-split-p2p/data/bench.txt(+26 -0)➕
bench/split_p2p_bench.cu(+292 -0)📝
docs/MULTI_GPU.md(+11 -4)📝
include/strata/core/device.hpp(+10 -0)📝
include/strata/prefill/prefill.hpp(+15 -4)📝
src/core/device.cu(+52 -0)📝
src/prefill/prefill.cpp(+29 -11)📝
src/program/generate.cpp(+56 -11)📄 Description
What
The layer-split hand-off goes through pinned host RAM today. This adds the peer-access path (
split_handoff_p2p), split out of #627:cudaMemcpyPeerAsyncis rejected inside a capture, the bench records this)cudaMemcpyPeerAsyncon the source stage, with the receiving stage's chunk buffers on its own cardsplit_p2p_benchand the MULTI_GPU.md sectionThe pinned-RAM path remains the default outside the measured configuration.
Gating
STRATA_SPLIT_P2P=0forces the pinned path,=1forces the link, unset means auto only on an sm_70 + sm_70 pair inside theSTRATA_EXPERIMENTAL_SM60build. HIP always keeps the pinned path. The ready-made engine is unchanged.Measured
2x V100-SXM2-16GB (NVLink nv2), CUDA 12.8,
split_p2p_bench, useful bandwidth per hand-off:One hand-off: 0.137 ms -> 0.018 ms for the window; 25.33 ms -> 1.738 ms for the 2048-token chunk. Every path is checked byte-for-byte in the bench before it is timed.
Tests
split_p2p_benchbuilt and run on 2x V100 (both GPUs), all paths byte-identical.32K end-to-end
Same setup; the same binary with
STRATA_SPLIT_P2P=0as the control, interleaved (3 rounds each, two pairs): on the rebased branch against the new main, dual-card prefill 2213.9 -> 2233.1 tok/s (+0.9%); on the pre-cleanup main the same A/B read 2190.7 -> 2212.9 (+1.0%). Decode is unchanged (within its +-15% session noise).🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.