Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
8319f82
EP PyTorch: NCCL EP backend + autograd ops + tests, route zero_copy v…
phu0ngng Jun 9, 2026
dcc3172
EP PyTorch: wire maybe_make_window into per-step ops for zero_copy
phu0ngng Jun 9, 2026
ee0df62
EP PyTorch: merge EpHandle into EpBuffer; ep_dispatch/ep_combine take…
phu0ngng Jun 9, 2026
e230f4b
EP PyTorch example: drop stale ep_group kwarg from EpBuffer call
phu0ngng Jun 10, 2026
7c3b317
EP PyTorch: drop ep_scope; ep_finalize is optional with atexit fallback
phu0ngng Jun 10, 2026
603cc53
EP PyTorch: restrict payload dtype to bf16; refresh stale ep.cpp comm…
phu0ngng Jun 10, 2026
999ac37
EP PyTorch: clear pylint warnings in ep.py (broad-except suppression,…
phu0ngng Jun 10, 2026
dbc7624
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jun 10, 2026
4742ca8
EP PyTorch: skip combine_in staging copy in non-zero-copy mode
phu0ngng Jun 10, 2026
44e0a51
EP PyTorch: gate symm-mem slot allocation on zero-copy; require exper…
phu0ngng Jun 10, 2026
e6ec4b6
EP PyTorch: rename buffer slots to dispatch_/combine_symm_buf; drop g…
phu0ngng Jun 10, 2026
6c7c7b3
EP PyTorch: warn that ep_bootstrap(zero_copy=True) is experimental
phu0ngng Jun 10, 2026
b3fb50d
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jun 11, 2026
50dcbdd
EP PyTorch: wire test_ep.py into L1 distributed QA suite
phu0ngng Jun 11, 2026
61b1b3a
EP PyTorch: validate contiguity of dispatch/combine inputs and topk_w…
phu0ngng Jun 11, 2026
6fcbee5
EP PyTorch: check topk_idx/topk_weights token count matches tokens in…
phu0ngng Jun 11, 2026
33b747a
EP PyTorch: move symm-mem allocation out of EpBuffer; make ep_dispatc…
phu0ngng Jun 12, 2026
3e9e1cf
EP PyTorch: enforce contiguous caller-supplied EP buffers in C++ and …
phu0ngng Jun 12, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions build_tools/pytorch.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,16 @@ def setup_pytorch_extension(

setup_mpi_flags(include_dirs, cxx_flags)

# Mirror the NCCL EP gate from setup.py / common CMake. When disabled, the
# ep.cpp source no-ops at the #ifdef boundary; without the define it would
# produce undefined references to nvte_ep_*.
if bool(int(os.getenv("NVTE_BUILD_WITH_NCCL_EP", "1"))):
cxx_flags.append("-DNVTE_WITH_NCCL_EP")
# PyTorch's symm-mem headers gate the NCCL_HAS_SYMMEM_* feature macros on
# USE_NCCL. The EP extension shares the symm-mem NCCL comm with torch, so
# it needs those macros visible.
cxx_flags.append("-DUSE_NCCL")

library_dirs = []
libraries = []
if bool(int(os.getenv("NVTE_ENABLE_NVSHMEM", 0))):
Expand Down
Loading
Loading