8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c95895 commit 61d58e7Copy full SHA for 61d58e7
llama_cpp/llama_cpp.py
@@ -48,7 +48,9 @@ def _load_shared_library(lib_base_name: str):
48
# Add the library directory to the DLL search path on Windows (if needed)
49
if sys.platform == "win32" and sys.version_info >= (3, 8):
50
os.add_dll_directory(str(_base_path))
51
- os.add_dll_directory(os.path.join(os.environ["CUDA_PATH"],"bin"))
+ if "CUDA_PATH" in os.environ:
52
+ os.add_dll_directory(os.path.join(os.environ["CUDA_PATH"],"bin"))
53
+< 4811 div class="diff-text-inner"> os.add_dll_directory(os.path.join(os.environ["CUDA_PATH"],"lib"))
54
cdll_args["winmode"] = 0
55
56
# Try to load the shared library, handling potential errors
0 commit comments