Skip to content

Commit

Permalink
remove try-catch for no-GPU settings
Browse files Browse the repository at this point in the history
  • Loading branch information
jameslamb committed May 10, 2024
1 parent f1f949d commit 6723bae
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions ucp/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,8 @@
except ImportError:
pass
else:
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)
libucx.load_library()
del libucx


from .core import * # noqa
Expand Down

0 comments on commit 6723bae

Please sign in to comment.