-
-
Notifications
You must be signed in to change notification settings - Fork 15k
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
Make cudatoolkit 11.x and cudnn 8.x the default major versions [WIP] #164820
Conversation
I'd say that this is ready to merge once nixpkgs-review and cuda-nix-testsuite are passing. cc @NixOS/cuda-maintainers |
This breaks the current pytorch version. According to my testing cudnn 7.6 with CUDA 10.2 is the latest version combo that I could get to work. But it sounds like upgrading to cudnn 8.3 is useful for the building latest pytorch? @rehno-lindeque Is there any documentation on the pytorch side of things about what versions of cuDNN/CUDA they support? |
e029833
to
39b82ee
Compare
It looks like CUDA 10.2 was technically already supposed to be the lower bound for pytorch v1.10 https://github.com/pytorch/pytorch/blob/v1.10.0/README.md#from-source
|
I'm struggling a bit to find good information but these things seem relevant:
Pytorch 1.11.0 and 1.10.0 both have this in their documentation:
So I think that suggests it should be possible to build with cudnn v8... 🤔 |
Interesting I wasn't able to get it to compile with any cuDNN v8.x version, but no need to worry about that now if we're going to be updating pytorch to v1.11 anyhow |
If it continues to give issues compiling against versions that they claim are supported, we can open an upstream issue with the pytorch folks! |
Looks like nvidia does have a Download cuDNN v7.6.5 (November 18th, 2019), for CUDA 10.2. But I'm going to keep pushing on this v8.3 upgrade for now and see if I can figure it out. (Just trying the pytorch 1.10 build against it now myself) |
Oh I think I finally understand now. It looks to me like probably the valid combinations (for pytorch) are
It seems pretty clear now looking at
So a default bump to cudnn 8 would need to be paired with a default bump to cuda 11. Is that something we want to do? Or should I look at cudnn 7.6 with cudatoolkit 10.2 instead? |
39b82ee
to
12be6c2
Compare
I'd say let's get the pytorch stuff merged first, and then worry about cudnn/cudatoolkit second. There's no need for pytorch to necessarily require the default cudnn/cudatoolkit versions. For better or worse it looks like 5446ad8 already circumvented a PR to update the pytorch source build to 1.11.0, but |
12be6c2
to
4b3e45e
Compare
This change is present on master. |
Description of changes
This is still work-in-progress. (Needs checking)
Things done
sandbox = true
set innix.conf
? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)nixos/doc/manual/md-to-db.sh
to update generated release notes