Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
3 changes: 3 additions & 0 deletions .gitignore
Comment thread
YihuiLu512 marked this conversation as resolved.
Resolved
Original file line number Diff line number Diff line change
Expand Up @@ -135,5 +135,8 @@ examples/kimi_k3/.eval_dflash_runtime.*.yaml
# Media a VisualGen server generates, when it is started from the checkout
trtllm_generated/

# Build-time generated Python bindings for contracts/engine/v1/*.proto
tensorrt_llm/contracts/engine/v1/_generated/

# Standalone static mock interface check output
mock_interface_report.json
13 changes: 13 additions & 0 deletions 3rdparty/fetch_content.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
{
"schema_version": 1,
"dependencies": [
{
"name": "abseil-cpp",
"git_repository": "https://github.com/abseil/abseil-cpp",
"git_tag": "20250512.1",
"git_shallow": true
},
{
"name": "cppzmq",
"git_repository": "https://github.com/zeromq/cppzmq",
Expand Down Expand Up @@ -122,6 +128,13 @@
"git_shallow": true,
"source_subdir": "dont-add-this-project-with-add-subdirectory"
},
{
"name": "protobuf",
"git_repository": "https://github.com/protocolbuffers/protobuf",
"git_tag": "v33.6",
"git_shallow": true,
"patch_file": "patches/protobuf_libprotobuf_alias.patch"
},
{
"name": "pybind11",
"git_repository": "https://github.com/pybind/pybind11",
Expand Down
14 changes: 14 additions & 0 deletions 3rdparty/patches/protobuf_libprotobuf_alias.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
--- a/cmake/libprotobuf.cmake
+++ b/cmake/libprotobuf.cmake
@@ -43,6 +43,10 @@
CXX_VISIBILITY_PRESET hidden
VISIBILITY_INLINES_HIDDEN ON
)
-add_library(protobuf::libprotobuf ALIAS libprotobuf)
+# PyTorch's CMake package defines protobuf::libprotobuf as a stand-in when it
+# ships no protobuf, and links its targets through that name: keep it there.
+if(NOT TARGET protobuf::libprotobuf)
+ add_library(protobuf::libprotobuf ALIAS libprotobuf)
+endif()

target_link_libraries(libprotobuf PUBLIC utf8_validity)
Loading