diff --git a/onnxruntime/__init__.py b/onnxruntime/__init__.py index 92f3bc3a8d399..15f470cbc1277 100644 --- a/onnxruntime/__init__.py +++ b/onnxruntime/__init__.py @@ -100,13 +100,15 @@ def check_and_load_cuda_libs(root_directory, cuda_libs_): _ = ctypes.CDLL(full_path) logging.info(f"Successfully loaded: {full_path}") except OSError as e: - logging.error(f"Failed to load {full_path}: {e}") + logging.debug(f"Failed to load {full_path}: {e}") # If all required libraries are found, stop the search if set(found_libs.keys()) == cuda_libs_: logging.info("All required CUDA libraries found and loaded.") return - logging.error(f"Failed to load all required CUDA libraries. missing libraries: {cuda_libs_ - found_libs.keys()}") + logging.debug( + 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." + ) return