Repository navigation
cudaPackages.cudnn: add missing nvrtc runtime dependency - #471394
Conversation
|
Thank you for troubleshooting this, sorry I wasn’t able to help. Any ideas for which versions of cuDNN this occurs or for which hardware? I ask because I need to make sure changes to package expressions don’t break out of tree consumers (the most important being https://github.com/nixos-cuda/cuda-legacy). |
This might be true, but at least that doesn't happen in your logs: https://gist.github.com/arilotter/0993568341df8df1cc9aa422b6735cfd#file-gistfile1-txt-L2130-L2144 H'm, and you've already confirmed this change solves your problem? |
yeah you're right. huh. I'm even more confused now. I'm so confused 😭 |
Cool... could you gist the fixed version's LD_DEBUG=libs log too? |
| patchelfFlagsArray = [ | ||
| "--set-rpath" | ||
| "${lib.getLib cuda_nvrtc}/lib:\$ORIGIN" |
There was a problem hiding this comment.
Better use appendRunpaths (--add-rpath), which is more composable
yep! |
cudnn uses nvrtc at runtime on some hardware (e.g. H100). without this runpath, we fail when triggering cudnn runtime compilation from pytorch (see issue NixOS#461334) closes NixOS#461334
d4c0b3e to
d893175
Compare
|
updated to simply add it to the runpath instead of setting runpath. i can confirm this fixes the issue in #461334 from my end |
|
|
Thank you for including the link to the error message describing the missing library! I looked through the docs all the way back to 8.5 and it seems like it's always needed it (at least for that code path you hit), so it's good to add this without being conditioned on some version. |
|
Thank you for the fix -- I've marked it for backport as well. Apologies this took so long to get reviewed and merged. |
|
Successfully created backport PR for |
cudnn uses nvrtc at runtime. this dependency wasn't specified anywhere, so this would fail unless nvrtc was injected into your runpath somewhere else. this is only triggered for specific operations on specific hardware.
This closes #461334
Things done
passthru.tests.nixpkgs-reviewon this PR. See nixpkgs-review usage../result/bin/.Add a 👍 reaction to pull requests you find important.