mirror of
https://github.com/deepseek-ai/DeepEP.git
synced 2026-11-05 00:47:32 +00:00
[PR #747] Fix unknown CMake command "cuda_add_library" in CMakeLists.txt #752
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#752
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/747
Author: @PerryLink
Created: 9/10/2026
Status: 🔄 Open
Base:
main← Head:fix/undefined-cuda-add-library📝 Commits (1)
d2d0b56Fix unknown CMake command "cuda_add_library" in CMakeLists.txt📊 Changes
1 file changed (+1 additions, -1 deletions)
View changed files
📝
CMakeLists.txt(+1 -1)📄 Description
CMakeLists.txtline 52 callscuda_add_library(), a macro that only exists afterfind_package(CUDA). The file never does that — it only callsfind_package(CUDAToolkit)on line 21 — so configure aborts with:Reproduction
On CMake 4.4.3, with no CUDA toolkit and no torch required:
Fix
CUDAis already listed inproject(... LANGUAGES CXX CUDA), socsrc/indexing/main.cuis still compiled by nvcc withoutFindCUDA. No runtime behavior changes — this only makes the IDE-indexing target configurable.I did not add
find_package(CUDA)instead: it is deprecated since CMake 3.10, and underCMP0146=NEWit defines nothing, so the error comes straight back.Verification
Same reduced case with the one-line change:
Out of scope
The same
FindCUDA-era leftovers appear elsewhere in the file and are no-ops on the native CUDA-language path:CUDA_SEPARABLE_COMPILATIONandCUDA_NVCC_FLAGS(lines 8-15), andCUDA_TOOLKIT_ROOT_DIR(lines 41-42), which is empty here so those include/link dirs resolve relative. I left them alone to keep this to one line — happy to send that as a separate PR.Base branch
Targeting
main:CMakeLists.txtdoes not exist onhybrid-ep, andmainis where build/packaging fixes have landed before (#351, #627, #640).For transparency: the same one-line defect also exists in
deepseek-ai/DeepGEMM'sCMakeLists.txt, and I opened deepseek-ai/DeepGEMM#437 for it there.cc @LyricZhao — you added this file in
b306af06.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.