!eWOErHSaiddIbsUNsJ:nixos.org

NixOS CUDA

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

Load older messages


SenderMessageTime
12 Nov 2025
@arilotter:matrix.orgAri Lotterjust throwing nixpkgs-review back on for convenience lol16:50:29
@daniel-fahey:matrix.orgDaniel FaheyI've never really looked in the internals of it, just a bit worried it might be changing something idk16:51:09
@arilotter:matrix.orgAri Lotterok, lemme...16:51:32
@daniel-fahey:matrix.orgDaniel Fahey(probably an unwarranted concern) just interested to see what happens when JAX is built in isolation16:52:40
@daniel-fahey:matrix.orgDaniel FaheyStill, really similar experience that I had in https://github.com/NixOS/nixpkgs/issues/44582416:53:05
@arilotter:matrix.orgAri Lotter

ok gonna try

ari@dell-h100-nj4-2:~/src/nixpkgs$ git fetch origin pull/460701/head:pr-460701
From https://github.com/NixOS/nixpkgs
 * [new ref]                   refs/pull/460701/head -> pr-460701
ari@dell-h100-nj4-2:~/src/nixpkgs$ git checkout pr-460701
nix buildSwitched to branch 'pr-460701'
ari@dell-h100-nj4-2:~/src/nixpkgs$ nix-build -A "python312Packages.jax" --arg config '{ cudaSupport = true; allowUnfree = true; }'
16:56:02
@arilotter:matrix.orgAri Lottertaht should work, yea?16:56:04
@arilotter:matrix.orgAri Lotter *

ok gonna try

ari@dell-h100-nj4-2:~/src/nixpkgs$ git fetch origin pull/460701/head:pr-460701
From https://github.com/NixOS/nixpkgs
 * [new ref]                   refs/pull/460701/head -> pr-460701
ari@dell-h100-nj4-2:~/src/nixpkgs$ git checkout pr-460701
Switched to branch 'pr-460701'
ari@dell-h100-nj4-2:~/src/nixpkgs$ nix-build -A "python312Packages.jax" --arg config '{ cudaSupport = true; allowUnfree = true; }'
16:56:10
@daniel-fahey:matrix.orgDaniel Fahey

Yeah, I think so. I tend to use this one-liner, to not have to use git worktrees etc.:

 nix-build https://github.com/daniel-fahey/nixpkgs/archive/fix/python3Packages.vllm.tar.gz \
--pure --arg config '{ allowUnfree = true; cudaSupport = true; }' \
--attr python312Packages.jax
16:58:59
@daniel-fahey:matrix.orgDaniel Fahey

I have noticed that the pytestFlags are hard-coded and aren't affected by -j/--max-jobs:

https://github.com/NixOS/nixpkgs/blob/5d2aef6a2766b8d97f520563aace1c9b7f538051/pkgs/development/python-modules/jax/default.nix#L96-L99

17:06:36
@daniel-fahey:matrix.orgDaniel Fahey

so you'd have to use an overlay to change it, like this:

nix-build https://github.com/daniel-fahey/nixpkgs/archive/fix/python3Packages.vllm.tar.gz --pure --arg config '{ allowUnfree = true; cudaSupport = true; }' --arg overlays '[
      (self: super: {
        python312Packages = super.python312Packages.override {
          overrides = pythonSelf: pythonSuper: {
            jax = pythonSuper.jax.overrideAttrs (oldAttrs: {
              pytestFlags = [
                "--numprocesses=2"
                "-Wignore::DeprecationWarning"
              ];
            });
          };
        };
      })
    ]' --attr python312Packages.jax

could probably do with refactoring the derivation? GaƩtan Lepage (sorry for bugging you again)

17:11:13
@arilotter:matrix.orgAri Lotterahaaa, errors!17:14:46
@arilotter:matrix.orgAri Lotteryep17:15:00
@arilotter:matrix.orgAri Lotter [gw3] node down: Not properly terminated F replacing crashed worker gw3 17:15:01
@arilotter:matrix.orgAri Lotterfails :)17:15:03
@arilotter:matrix.orgAri Lotterrunning again to hopefully get a real message..17:15:11
@daniel-fahey:matrix.orgDaniel Faheyany luck with this approach?17:22:28
@arilotter:matrix.orgAri Lotterah will try that next17:22:41
@arilotter:matrix.orgAri Lottershould i just import from hydra?17:23:18
@arilotter:matrix.orgAri Lotterthen move on?17:23:20
@daniel-fahey:matrix.orgDaniel FaheyUp to you, I'm in your debt already, I thought you were having fun messing about and learning17:53:34
@arilotter:matrix.orgAri Lotteroh yeah i meant like, to run review17:56:26
@arilotter:matrix.orgAri Lotterhow big is this closure lmao17:56:30
@arilotter:matrix.orgAri Lotterim at 3gb downloaded so far17:56:34
@arilotter:matrix.orgAri Lotteroh there we go17:56:40
@arilotter:matrix.orgAri Lotterok will try the review again heh17:57:13
@arilotter:matrix.orgAri Lotter

huh. nixpkgs at b3d51a0365f6695e7dd5cdf3e180604530ed33b4 (based off nixos-unstable)` seems to have something broken with torch / cuda / cudnn...
torch 2.8 worked fine, but 2.9 with my same application code throws

[cuda:0]: cuDNN Frontend error: No valid engine configs for Matmul_MUL_ADD_Reduction_SUB_EXP_Reduction_LOG_ADD_DIV_Matmul_
{"engineId":2,"smVersion":900,"knobChoices":{"CUDNN_KNOB_TYPE_KERNEL_CFG":7}}
Warning: CUDNN_STATUS_NOT_SUPPORTED_RUNTIME_PREREQUISITE_MISSING; Reason: Could not open libnvrtc at: this->libnvrtc == nullptr
Warning: CUDNN_STATUS_NOT_SUPPORTED_RUNTIME_PREREQUISITE_MISSING; Reason: compiler.load()
Warning: CUDNN_STATUS_NOT_SUPPORTED_RUNTIME_PREREQUISITE_MISSING; Reason: rtk(kernelNumRunning)->loadDLL()
Warning: CUDNN_STATUS_NOT_SUPPORTED_RUNTIME_PREREQUISITE_MISSING; Reason: status == CUDNN_STATUS_NOT_SUPPORTED_RUNTIME_PREREQUISITE_MISSING
Warning: CUDNN_STATUS_NOT_SUPPORTED_RUNTIME_PREREQUISITE_MISSING; Reason: ptr->isSupported()
Warning: CUDNN_STATUS_NOT_SUPPORTED_RUNTIME_PREREQUISITE_MISSING; Reason: finalize_internal()

{"engineId":1,"smVersion":900,"knobChoices":{"CUDNN_KNOB_TYPE_KERNEL_CFG":3}}
Warning: CUDNN_STATUS_NOT_SUPPORTED_RUNTIME_PREREQUISITE_MISSING; Reason: Could not open libnvrtc at: this->libnvrtc == nullptr
Warning: CUDNN_STATUS_NOT_SUPPORTED_RUNTIME_PREREQUISITE_MISSING; Reason: compiler.load()
Warning: CUDNN_STATUS_NOT_SUPPORTED_RUNTIME_PREREQUISITE_MISSING; Reason: rtk(kernelNumRunning)->loadDLL()
Warning: CUDNN_STATUS_NOT_SUPPORTED_RUNTIME_PREREQUISITE_MISSING; Reason: status == CUDNN_STATUS_NOT_SUPPORTED_RUNTIME_PREREQUISITE_MISSING
Warning: CUDNN_STATUS_NOT_SUPPORTED_RUNTIME_PREREQUISITE_MISSING; Reason: ptr->isSupported()
Warning: CUDNN_STATUS_NOT_SUPPORTED_RUNTIME_PREREQUISITE_MISSING; Reason: finalize_internal()
17:58:30
@arilotter:matrix.orgAri Lottermissing nvrtc i guess..17:58:40
@arilotter:matrix.orgAri Lottergonna compare against my weird 2.9.0-nightly setup i was using before..18:00:37
@daniel-fahey:matrix.orgDaniel FaheyWould need a reprex I think with the smallest bit of your application code that can trigger this18:40:46

Show newer messages


Back to Room ListRoom Version: 9