Skip to content

Commit

Permalink
restore CPU support
Browse files Browse the repository at this point in the history
  • Loading branch information
jameslamb committed May 8, 2024
1 parent 5c90c8e commit f1f949d
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions ucp/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,19 @@
# Otherwise, we assume that the library was installed in a system path that ld can find.
try:
import libucx
except (ImportError, OSError, RuntimeError):
except ImportError:
pass
else:
libucx.load_library()
del libucx
try:
libucx.load_library()
del libucx
except RuntimeError as err:
msg = (
"Loading 'libucx' failed. Ignore this warning on CPU-only systems, "
"but on a system with GPUs this could indicate a more serious issue. "
f"Full error: {str(err)}"
)
logger.warning(msg)


from .core import * # noqa
Expand Down

0 comments on commit f1f949d

Please sign in to comment.