From 6723baea944acd9e5c181df3819c1fcbae0993a0 Mon Sep 17 00:00:00 2001 From: James Lamb Date: Fri, 10 May 2024 06:26:42 -0700 Subject: [PATCH] remove try-catch for no-GPU settings --- ucp/__init__.py | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/ucp/__init__.py b/ucp/__init__.py index b8b5c67f..390fbf45 100644 --- a/ucp/__init__.py +++ b/ucp/__init__.py @@ -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