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
7 changes: 7 additions & 0 deletions python/tvm_ffi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,14 @@ def _is_config_mode() -> bool:
float8_e8m0fnu,
float4_e2m1fnx2,
)
elif sys.platform.startswith("win32"):
# On Windows, load the library even in config CLI mode so the DLL search path
# is set correctly (needed in some cases when test still loads cython extensions).
from . import libinfo

LIB = libinfo.load_lib_ctypes("apache-tvm-ffi", "tvm_ffi", "RTLD_GLOBAL")

# normal version imports
try:
from ._version import __version__, __version_tuple__
except ImportError:
Expand Down