| 15 Dec 2025 |
Robbie Buxton | Basically if you readelf -d on the cudnn.so you should be able to see what it says it needs | 21:22:17 |
Robbie Buxton | And if you run patchelf —print-rpaths it’ll show you what it has in the runpaths | 21:23:27 |
Robbie Buxton | I’m fairly confident this is in fact runpaths and not rpaths but I might be mistaken | 21:23:47 |
Robbie Buxton | If you are able to add libnvrtc.so to that list and add it as a build input nix should atomically add it to the runpath for you | 21:25:02 |
Robbie Buxton | There may be a nicer way of doing this these days I’m not sure | 21:25:14 |
Robbie Buxton | I think there is patchelfFlagsArray and appendRunpaths you can use | 21:26:27 |
Ari Lotter | 40m to build torch with cuda, not bad. | 22:06:33 |
Ari Lotter | huh. well, i thought
(self: super: {
cudaPackages = super.cudaPackages // {
cudnn = super.cudaPackages.cudnn.overrideAttrs (old: {
postFixup = (old.postFixup or "") + ''
for so in $out/lib/libcudnn*.so; do
echo "patching rpath of $so to include nvrtc"
patchelf --set-rpath ${super.lib.getLib super.cudaPackages.cuda_nvrtc}/lib:$out/lib $so
done
'';
});
};
})
``` might work, but doesn't seem to have
| 22:09:01 |
Ari Lotter | * huh. well, i thought
(self: super: {
cudaPackages = super.cudaPackages // {
cudnn = super.cudaPackages.cudnn.overrideAttrs (old: {
postFixup = (old.postFixup or "") + ''
for so in $out/lib/libcudnn*.so; do
echo "patching rpath of $so to include nvrtc"
patchelf --set-rpath ${super.lib.getLib super.cudaPackages.cuda_nvrtc}/lib:$out/lib $so
done
'';
});
};
})
``` might work, but doesn't seem to have
| 22:09:09 |
Ari Lotter | * huh. well, i thought
(self: super: {
cudaPackages = super.cudaPackages // {
cudnn = super.cudaPackages.cudnn.overrideAttrs (old: {
postFixup = (old.postFixup or "") + ''
for so in $out/lib/libcudnn*.so; do
echo "patching rpath of $so to include nvrtc"
patchelf --set-rpath ${super.lib.getLib super.cudaPackages.cuda_nvrtc}/lib:$out/lib $so
done
'';
});
};
})
might work, but doesn't seem to have
| 22:09:16 |
Ari Lotter | tryin this | 22:10:57 |
Robbie Buxton | In reply to @arilotter:matrix.org 40m to build torch with cuda, not bad. The dream | 22:13:45 |
Robbie Buxton | * The dream 🥲 | 22:13:54 |
Ari Lotter | lmk if you ever need something built lol i have some juicy machines thru work | 22:15:36 |
pdealbera | Ok, following on this. It's weird that I've still cannot reach the server at all. I even try to connect from mobile data in a phone just to discard a problem in my home network or network config in my PC but it's not reachable at all. For reference I'm from Argentina. | 22:34:43 |
| 16 Dec 2025 |
Ari Lotter | holy shit it worked 😭i don't believe it | 00:39:07 |
Robbie Buxton | Yooooooooo | 00:39:29 |
Robbie Buxton | Nice work!!! | 00:39:33 |
Ari Lotter | ok will PR soon - doing some christmas baking but this is huge lol | 00:39:39 |
Ari Lotter | mmaybe tomorrow | 00:39:42 |
Ari Lotter | this ez tho:
cudnn = super.cudaPackages.cudnn.overrideAttrs (old: {
buildInputs = (old.buildInputs or []) ++ [ super.cudaPackages.cuda_nvrtc ];
patchelfFlagsArray = (old.patchelfFlagsArray or []) ++ [
"--set-rpath" "${super.lib.getLib super.cudaPackages.cuda_nvrtc}/lib:\$ORIGIN"
];
});
| 00:39:51 |
Robbie Buxton | Now I won’t run into this issue in a week 😁 | 00:40:02 |
yorik.sar | Well, as for any locks, I expect a slowdown, that’s why I’m asking about less parallel case :) | 05:08:40 |
yorik.sar | Huh, so a significant portion of that eval is actually parsing stuff, interesting. | 05:09:24 |
yorik.sar | It could be a good thing to improve that one :) | 05:10:07 |
yorik.sar | connor (burnt/out) (UTC-8) I see in release notes https://github.com/NixOS/nix/pull/14219 that can also improve things. Is it in your base branch? | 05:11:40 |
connor (he/him) | That’s what the changes do | 05:13:10 |
connor (he/him) | Yeah I pulled master a few days ago | 05:13:38 |
yorik.sar | Do they? It looked like a separate lock implementation for this case. | 05:14:54 |
connor (he/him) | They add functionality to the path lock (among other things) | 05:16:54 |