Repository navigation
[tvm-ffi] Add new port 0.1.16, update dlpack to 1.4 - #54810
Conversation
There was a problem hiding this comment.
🟡 Changes recommended
The manifest permits unsupported x64-windows-static and UWP configurations; add support restrictions and regenerate the version database entry.
1 open issue
What changed in this PR
Adds Apache TVM FFI 0.1.15 to vcpkg, providing its shared C/C++ runtime for machine learning systems.
Changes:
- Uses vcpkg’s
dlpackdependency and disables Python bindings, tests, and bundled libbacktrace. - Exports CMake targets, adjusts installation layout, and packages LICENSE and NOTICE.
- Registers the new port in the version database.
Validation here was limited to source inspection; builds and consumer examples were not rerun.
| File | Description |
|---|---|
versions/t-/tvm-ffi.json |
Records the initial port version and tree. |
versions/baseline.json |
Adds the 0.1.15 baseline. |
ports/tvm-ffi/vcpkg.json |
Declares package metadata and dependencies. |
ports/tvm-ffi/portfile.cmake |
Configures and packages the shared runtime. |
ports/tvm-ffi/cmake-install.patch |
Exports CMake targets and adjusts installed contents. |
Review effort: Balanced
Victor Romero (vicroms)
left a comment
There was a problem hiding this comment.
Fails to build on x86-windows with C3861 for _InterlockedIncrement64 at line 263 and _InterlockedDecrement64 at line 320.
Another issue found in microsoft/vcpkg#54810 build error on 32bit: ``` D:\b\tvm-ffi\src\v0.1.15-e4904dcca0.clean\include\tvm/ffi/object.h(263): error C3861: '_InterlockedIncrement64': identifier not found D:\b\tvm-ffi\src\v0.1.15-e4904dcca0.clean\include\tvm/ffi/object.h(320): error C3861: '_InterlockedDecrement64': identifier not found ``` Use the Windows SDK `InterlockedIncrement64` and `InterlockedDecrement64` wrappers, which support both 32-bit x86 and 64-bit x64 targets. On x86, they use a compare-exchange loop; on x64, they map directly to the corresponding intrinsics.
|
let's wait for 0.1.16 |
Victor Romero (vicroms)
left a comment
There was a problem hiding this comment.
Please merge miyanyan#14 to fix static consumers on Windows.
Co-authored-by: Copilot App <[email protected]>
Co-authored-by: Copilot App <[email protected]>
Co-authored-by: Copilot App <[email protected]>
Co-authored-by: Copilot App <[email protected]>
They merged it
GPT 6.2 Sol made me file dmlc/dlpack#197 Thanks for the new port and the updates! |


Add Apache TVM FFI 0.1.16, an open ABI and FFI for machine learning systems.
Project maturity: v0.1.0 was released on 2025-10-21, and this is an official Apache TVM component.
Naming:
tvm-ffimatches the upstream repository and documented project name. The repository and official documentation appear among the first results fortvm-ffi C++. The search-result screenshot requested below is not attached, so that checklist item remains unchecked; Repology indexing has not been verified.Owner-Projectform.vcpkg.json, or explicitly disabled through patches or build system arguments such as CMAKE_DISABLE_FIND_PACKAGE_Xxx or VCPKG_LOCK_FIND_PACKAGEvcpkg.jsonmatches what upstream says.vcpkg.jsonmatches what upstream says../vcpkg x-add-version --alland committing the result.