mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2026-05-08 18:30:50 +00: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:
parent
318d5b87fc
commit
dc53e30785
1 changed files with 2 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue