Skip to content
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

llmodel: add CUDA to the DLL search path if CUDA_PATH is set #2357

Merged
merged 1 commit into from
May 16, 2024

Conversation

cebtenzzre
Copy link
Member

I tested this change with Qt Creator on Windows. Without it, the CUDA runtime libraries are only found if they are copied into the build directory. With this change, the CUDA runtime libraries are found as long as CUDA_PATH is set correctly, which is done automatically by the CUDA Toolkit installer.

As far as the chat UI is concerned, this change only matters for users that build GPT4All from source themselves, which already requires the CUDA Toolkit. Once GPT4All is installed, the CUDA libraries are copied into the install directory.

This change should also benefit the bindings, by allowing the system CUDA libraries to be used automatically if they are installed.

Signed-off-by: Jared Van Bortel <jared@nomic.ai>
@cebtenzzre cebtenzzre requested a review from manyoso May 16, 2024 18:15
@cebtenzzre cebtenzzre merged commit 2025d2d into main May 16, 2024
6 of 19 checks passed
@cebtenzzre cebtenzzre deleted the windows-system-cuda branch May 16, 2024 21:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants