!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
@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
@yorik.sar:matrix.orgyorik.sarHuh, I must’ve missed it. Shouldn’t read code early in the morning on my phone.13:28:27
@arilotter:matrix.orgAri Lotterok wew! did some testing, this seems ti work with only the patchelfFlagsArray and doesn't require the buildInputs https://github.com/NixOS/nixpkgs/pull/47139415:58:51
@connorbaker:matrix.orgconnor (he/him) Kevin Mittman (UTC-7)^^^
Are you able to ask internally when this behavior started and for which architectures it occurs?
16:11:28
@arilotter:matrix.orgAri Lotterfrom my end, i'm not quite sure when it gets triggered / when it was added :/16:12:51
@arilotter:matrix.orgAri Lotterall i know is i can run some code on my local machine but not on an h10016:13:03
@arilotter:matrix.orgAri Lotter* all i know is i can run some code on my local machine with a 4060ti but not on an h10016:13:11

Show newer messages


Back to Room ListRoom Version: 9