!eWOErHSaiddIbsUNsJ:nixos.org

NixOS CUDA

285 Members
CUDA packages maintenance and support in nixpkgs | https://github.com/orgs/NixOS/projects/27/ | https://nixos.org/manual/nixpkgs/unstable/#cuda58 Servers

Load older messages


SenderMessageTime
15 Dec 2025
@sporeray:matrix.orgRobbie Buxton Basically if you readelf -d on the cudnn.so you should be able to see what it says it needs 21:22:17
@sporeray:matrix.orgRobbie Buxton And if you run patchelf —print-rpaths it’ll show you what it has in the runpaths 21:23:27
@sporeray:matrix.orgRobbie Buxton I’m fairly confident this is in fact runpaths and not rpaths but I might be mistaken 21:23:47
@sporeray:matrix.orgRobbie 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
@sporeray:matrix.orgRobbie Buxton There may be a nicer way of doing this these days I’m not sure 21:25:14
@sporeray:matrix.orgRobbie Buxton I think there is patchelfFlagsArray and appendRunpaths you can use 21:26:27
@arilotter:matrix.orgAri Lotter40m to build torch with cuda, not bad. 22:06:33
@arilotter:matrix.orgAri 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
@arilotter:matrix.orgAri 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
@arilotter:matrix.orgAri 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
@arilotter:matrix.orgAri Lottertryin this22:10:57
@sporeray:matrix.orgRobbie Buxton
In reply to @arilotter:matrix.org
40m to build torch with cuda, not bad.
The dream
22:13:45
@sporeray:matrix.orgRobbie Buxton* The dream 🥲22:13:54
@arilotter:matrix.orgAri Lotterlmk if you ever need something built lol i have some juicy machines thru work22:15:36
@pdealbera:matrix.orgpdealberaOk, 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
@arilotter:matrix.orgAri Lotterholy shit it worked 😭i don't believe it00:39:07
@sporeray:matrix.orgRobbie BuxtonYooooooooo00:39:29
@sporeray:matrix.orgRobbie BuxtonNice work!!!00:39:33
@arilotter:matrix.orgAri Lotterok will PR soon - doing some christmas baking but this is huge lol00:39:39
@arilotter:matrix.orgAri Lottermmaybe tomorrow00:39:42
@arilotter:matrix.orgAri 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
@sporeray:matrix.orgRobbie BuxtonNow I won’t run into this issue in a week 😁00:40:02
@yorik.sar:matrix.orgyorik.sarWell, as for any locks, I expect a slowdown, that’s why I’m asking about less parallel case :)05:08:40
@yorik.sar:matrix.orgyorik.sarHuh, so a significant portion of that eval is actually parsing stuff, interesting.05:09:24
@yorik.sar:matrix.orgyorik.sarIt could be a good thing to improve that one :)05:10:07
@yorik.sar:matrix.orgyorik.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
@connorbaker:matrix.orgconnor (he/him)That’s what the changes do05:13:10
@connorbaker:matrix.orgconnor (he/him)Yeah I pulled master a few days ago05:13:38
@yorik.sar:matrix.orgyorik.sarDo they? It looked like a separate lock implementation for this case.05:14:54
@connorbaker:matrix.orgconnor (he/him)They add functionality to the path lock (among other things)05:16:54

Show newer messages


Back to Room ListRoom Version: 9