mirror of
https://github.com/deepseek-ai/DeepEP.git
synced 2026-11-05 00:47:32 +00:00
[PR #699] [MERGED] fix(build): inherit PyTorch C++ standard for hybrid EP #715
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
deepseek-ai/DeepEP#715
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/deepseek-ai/DeepEP/pull/699
Author: @tiramitree
Created: 7/25/2026
Status: ✅ Merged
Merged: 7/27/2026
Merged by: @jershi425
Base:
hybrid-ep← Head:fix/hybrid-ep-cxx-standard📝 Commits (2)
7af4d03fix(build): inherit PyTorch C++ standard for hybrid EP7f3d6d8test(build): keep standard guard Python 3.8 compatible📊 Changes
2 files changed (+37 additions, -1 deletions)
View changed files
📝
setup.py(+0 -1)➕
tests/test_setup_compile_flags.py(+37 -0)📄 Description
Summary
-std=c++17flag fromhybrid_ep_cppCUDAExtension/BuildExtensionselect the compatible C++ standard, matchingdeep_ep_cpp-std=c++NNstring anywhere in this extension builder, including future appended orcxxflagsFixes #698.
Why
Recent PyTorch headers require C++20, while older supported PyTorch releases may still select C++17. Inheriting PyTorch's selected standard avoids forcing either generation and keeps the two DeepEP extensions consistent.
The runtime JIT compiler's separate C++17 flag is intentionally unchanged because this patch only covers the PyTorch-header extension build.
Validation
-std=c++17on the exact base,hybrid-ep@94a9f8f6b146c07d97ec58f67cd6d303296d6098.python -m unittest tests/test_setup_compile_flags.py -vpasses.python -m py_compile setup.py tests/test_setup_compile_flags.pygit diff --checkValidation boundary
I did not run an NVCC/CUDA build, GPU workload, or training run in this environment. This PR's local evidence is limited to the red/green structural regression, Python 3.8/3.12 test execution, Python compilation, and diff validation.
The implementation, test, review-response update, and PR text were prepared with material AI assistance and checked against the current source and issue before submission.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.