-
Notifications
You must be signed in to change notification settings - Fork 1.1k
cdll_args["winmode"] = 0 breaks loading bundled CLBlast libs on Windows #563
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
That's fine. Though, I don't think that adding As far as I can tell,
Honestly, I have very little idea of how |
You're right, I think I misread the docs there, does setting it to |
Interestingly, after redoing my tests, the CLBlast libs are not included with the package data as they were in my initial tests. My hope with all this is to allow CLBlast to work without any additional steps beyond simply installing llama-cpp-python. |
Figured it out. Adding this to install(
FILES $<TARGET_RUNTIME_DLLS:llama>
DESTINATION llama_cpp
)
Also doesn't seem to cause issues with cuBLAS. Doesn't include cuBLAS libs. Biggest issue I've found so far is that this requires minimum CMake version of |
@jllllll I think that's okay, cmake is available as a pip package and scikit-build-core should use that if the user's minimum version is below the minimum set in the pyproject. I'll test on my system as well and in any case can just put it inside of a |
* Fix usage of F16C intrinsics in AVX code when F16C is not defined
Prerequisites
Please answer the following questions for yourself before submitting an issue.
Expected Behavior
Building llama-cpp-python with OpenCL CLBlast support (not CLBlast libs bundled with CUDA Toolkit) on Windows should work immediately without any additional steps.
Current Behavior
Loading
llama.dll
fails unless CLBlast libs are added toPATH
. Removingcdll_args["winmode"] = 0
fromllama_cpp.py
(Source) allowsllama.dll
to successfully load using the CLBlast libs included in the package directory.Environment and Context
i7-5820k
GTX 1080ti
Windows 10 19045
Conda 23.1.0
Python 3.10.11
MSVC 19.36.32537.0
CMake 3.27.0
Steps to Reproduce
https://github.com/KhronosGroup/OpenCL-SDK.git -b v2023.04.17
https://github.com/CNugteren/CLBlast.git -b 1.6.1
Failure Logs
Using text-generation-webui to load:
The text was updated successfully, but these errors were encountered: