mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2026-09-05 20:41:18 +02:00
Why not search for cuda_path as well? (#865)
Let's add dll directory for cuda on Windows too.
This commit is contained in:
@@ -275,6 +275,8 @@ def init_library():
|
||||
os.add_dll_directory(dir_path)
|
||||
os.add_dll_directory(abs_path)
|
||||
os.add_dll_directory(os.getcwd())
|
||||
if libname == lib_cublas and "CUDA_PATH" in os.environ:
|
||||
os.add_dll_directory(os.path.join(os.environ["CUDA_PATH"], "bin"))
|
||||
if libname == lib_hipblas and "HIP_PATH" in os.environ:
|
||||
os.add_dll_directory(os.path.join(os.environ["HIP_PATH"], "bin"))
|
||||
if args.debugmode == 1:
|
||||
|
||||
Reference in New Issue
Block a user