-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
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
gpt4all-cuda: fix CUDA initialization #342251
gpt4all-cuda: fix CUDA initialization #342251
Conversation
I do not have an nvidia gpu to test with. So I do not have any way of testing this. |
@VeilSilence Since you reported the original issue. Do you have a sec to test this? Lmk if you need an explanation on how to :) |
i have this in my config so i just copied it over from there and it works for me but someone elses confirmation would be nice :) environment.systemPackages = with pkgs; [
(gpt4all-cuda.overrideAttrs (final: prev: {
nativeBuildInputs = (prev.nativeBuildInputs or [ ]) ++ [
pkgs.autoAddDriverRunpath
];
}))
]; |
{
pkgs ?
import (fetchTarball {
url = "https://github.com/haras-unicorn/nixpkgs/archive/06c5b53ca56092bc65c2f6f30e31c8eeb87cbb7e.tar.gz";
}) {
config = {
allowUnfree = true;
};
},
}:
pkgs.mkShell {
buildInputs = [pkgs.gpt4all-cuda];
} I made this shell, and build/launched gpt4all inside shell. gpt4all see cuda device, so if my test is correct, this merge request indeed fix this issue. |
Ok given the feedback I'll approve it. I have no qualms about the changes :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. others said it fixed their issues.
Description of changes
Fixes #321928.
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.