Skip to content

Commit

Permalink
Fix conda devcontainer case
Browse files Browse the repository at this point in the history
  • Loading branch information
vyasr committed Nov 6, 2024
1 parent ba6799b commit 58ca4f9
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions python/libcudf/libcudf/load.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,18 @@
import ctypes
import os

import libkvikio


def load_library():
# libkvikio must be loaded before libcudf
libkvikio.load_library()
try:
# libkvikio must be loaded before libcudf because libcudf references its symbols
import libkvikio

libkvikio.load_library()
except ModuleNotFoundError:
# libcudf's runtime dependency on libkvikio may be satisfied by a natively
# installed library or a conda package, in which case the import will fail and
# we assume the library is discoverable on system paths.
pass

# Dynamically load libcudf.so. Prefer a system library if one is present to
# avoid clobbering symbols that other packages might expect, but if no
Expand Down

0 comments on commit 58ca4f9

Please sign in to comment.