Skip to content
Merged
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
1 change: 1 addition & 0 deletions python/tvm/libinfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ def get_dll_directories():

# Pip lib directory
dll_path.append(ffi_dir)
dll_path.append(os.path.join(ffi_dir, "lib"))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

This change effectively resolves the library loading issue. However, it appears to be a workaround for an underlying inconsistency in the installation process. It seems CMakeLists.txt has duplicate install directives for the tvm and tvm_runtime libraries, which can lead to them being placed in different directories based on the build context (e.g., pip install vs. a manual make install).

For better long-term maintainability, we should consider addressing the root cause in the CMake setup to ensure libraries are always installed to a single, predictable location. This would simplify the library discovery logic and make the packaging more robust.

# Default cmake build directory
dll_path.append(os.path.join(source_dir, "build"))
dll_path.append(os.path.join(source_dir, "build", "Release"))
Expand Down
Loading