Skip to content

Commit

Permalink
Directly import and load librmm
Browse files Browse the repository at this point in the history
  • Loading branch information
vyasr committed Feb 7, 2025
1 parent fd38d0a commit 1bd8a42
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions python/libcuvs/libcuvs/load.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,19 +46,18 @@ def _load_wheel_installation(soname: str):
def load_library():
"""Dynamically load libcuvs.so and its dependencies"""
try:
# libraft must be loaded before libcuvs because libcuvs
# references its symbols
# These libraries must be loaded before libcuvs because libcuvs
# references their symbols
import libraft
import librmm

librmm.load_library()
libraft.load_library()
except ModuleNotFoundError:
# 'libcuvs' has a runtime dependency on 'libraft'. However,
# that dependency might be satisfied by the 'libraft' conda package
# (which does not have any Python modules), instead of the
# 'libraft' wheel.
#
# In that situation, assume that 'libraft.so' is in a place where
# the loader can find it.
# These runtime dependencies might be satisfied by conda packages
# (which do not have any Python modules) instead of wheels. In that
# situation, assume that the libraries are in a place where the loader
# can find them.
pass

prefer_system_installation = (
Expand Down

0 comments on commit 1bd8a42

Please sign in to comment.