Skip to content

Commit 287bd46

Browse files
committed
Change logging error to debugs and update messages
1 parent 5ddfc0f commit 287bd46

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

onnxruntime/__init__.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,13 +100,15 @@ def check_and_load_cuda_libs(root_directory, cuda_libs_):
100100
_ = ctypes.CDLL(full_path)
101101
logging.info(f"Successfully loaded: {full_path}")
102102
except OSError as e:
103-
logging.error(f"Failed to load {full_path}: {e}")
103+
logging.debug(f"Failed to load {full_path}: {e}")
104104

105105
# If all required libraries are found, stop the search
106106
if set(found_libs.keys()) == cuda_libs_:
107107
logging.info("All required CUDA libraries found and loaded.")
108108
return
109-
logging.error(f"Failed to load all required CUDA libraries. missing libraries: {cuda_libs_ - found_libs.keys()}")
109+
logging.debug(
110+
f"Failed to load CUDA libraries from site-packages/nvidia directory: {cuda_libs_ - found_libs.keys()}. They might be loaded later from standard search paths for shared libraries."
111+
)
110112
return
111113

112114

0 commit comments

Comments
 (0)