!eWOErHSaiddIbsUNsJ:nixos.org

NixOS CUDA

288 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
8 May 2025
@ss:someonex.netSomeoneSerge (back on matrix)Yeah as long as we ensure observability on our side I'm fine making this an assumption18:37:23
@connorbaker:matrix.orgconnor (burnt/out) (UTC-8)Up to you!19:30:27
@connorbaker:matrix.orgconnor (burnt/out) (UTC-8) Merging in what sense?
As an example, in cuda-packages I traverse the collection of manifests provided for to an instance of a CUDA package set, creating a arguments to be fed to redist-builder: https://github.com/ConnorBaker/cuda-packages/blob/62a4c5b58eed0038d73ac2b5e6bc151d851c0f81/pkgs/development/cuda-modules/default.nix#L73-L91
19:35:23
@justbrowsing:matrix.orgKevin Mittman (EOY sleep)I can imagine it would be useful to have a list of all cuda12 compatible CUDA-X binary archives22:24:06
@ss:someonex.netSomeoneSerge (back on matrix)Merging as in merging manifests into a single manifest, single hierarchy, as opposed to constructing a set of packages from a sequence of overlays22:51:35
@ss:someonex.netSomeoneSerge (back on matrix) In particular, I'd prefer there be a single set of "archive"s, all of the same shape, and each have a unique key. E.g. it could be a tree where archives.${pname}.${platform}.${version}.${compatTag} (the tags are for cudnn...) is { relative_path: String, sha256: String, md5: Option<String> }, etc. Note no ${manifest_name} in there. 22:57:56
@ss:someonex.netSomeoneSerge (back on matrix)So we found a trivial violation:)22:58:50
@ss:someonex.netSomeoneSerge (back on matrix)There's also no reason we should assume there's ever at most one compatibility tag...22:59:39
9 May 2025
@justbrowsing:matrix.orgKevin Mittman (EOY sleep) could you provide a pseudo-code form of what you are asking for? 00:50:30
@justbrowsing:matrix.orgKevin Mittman (EOY sleep)specifically trying to ask if there would be one or multiple versions of each component to satisfy the dependency closure?00:58:31
@gdesforges:matrix.orgGuillaume DesforgesHey! Has anyone tried to package torchcodec? https://github.com/pytorch/torchcodec17:07:26
@gdesforges:matrix.orgGuillaume Desforges* Hey! Has anyone tried to package torchcodec? https://github.com/pytorch/torchcodec (sorry if that's the wrong channel)17:22:33
@gdesforges:matrix.orgGuillaume Desforges* Hey! Has anyone tried to package torchcodec? https://github.com/pytorch/torchcodec (sorry if that's the wrong channel, afaik it's ok since it's NVIDIA-related)17:22:48
@gdesforges:matrix.orgGuillaume Desforges* Hey! Has anyone tried to package torchcodec? https://github.com/pytorch/torchcodec (sorry if that's the wrong channel, afaik it's ok since it's torch/NVIDIA-related)17:23:13
@gdesforges:matrix.orgGuillaume Desforges* Hey! Has anyone tried to package torchcodec? https://github.com/pytorch/torchcodec (sorry if that's the wrong channel, afaik it's ok since it's torch/CUDA-related)17:23:25
@connorbaker:matrix.orgconnor (burnt/out) (UTC-8)

:L
on master:

nix-repl> legacyPackages.x86_64-linux.cudaPackages.cudnn.src
«derivation /nix/store/7gwjjblxcjxbbj8ry5zir6m35gks3aq6-cudnn-linux-aarch64-9.8.0.87_cuda12-archive.tar.xz.drv»
18:01:59
@connorbaker:matrix.orgconnor (burnt/out) (UTC-8)lmao somehow https://github.com/NixOS/nixpkgs/commit/9fd753ea84e5035b357a275324e7fd7ccfb1fc77 caused this18:09:44
@connorbaker:matrix.orgconnor (burnt/out) (UTC-8)I'll work on a fix shortly18:17:22
@connorbaker:matrix.orgconnor (burnt/out) (UTC-8)hmm, in hindsight the removed and changed packages listed here were a red flag: https://github.com/NixOS/nixpkgs/actions/runs/14912284892/attempts/1#summary-4188973282718:18:44
@connorbaker:matrix.orgconnor (burnt/out) (UTC-8)Okay! https://github.com/NixOS/nixpkgs/pull/405707 should fix it --it also cleans up a fair amount of the logic.20:23:06
@connorbaker:matrix.orgconnor (burnt/out) (UTC-8)Also, if someone would mind reviewing https://github.com/NixOS/nixpkgs/pull/40566421:02:13
@connorbaker:matrix.orgconnor (burnt/out) (UTC-8) Gaétan Lepage: any chance you'd be able to look at this? I'd like to get it merged soon since things depending on cuDNN (like PyTorch) are broken on x86_64-linux. 21:22:03
@glepage:matrix.orgGaétan LepageI started to look at it but got scared by the nature of the diff21:22:53
@glepage:matrix.orgGaétan LepageWill look at it :)21:22:58
@connorbaker:matrix.orgconnor (burnt/out) (UTC-8)<321:23:01
@connorbaker:matrix.orgconnor (burnt/out) (UTC-8) If it helps at all, the evaluatedModules.config.${pname}.releases.${redistArch} attribute set we're indexing into is essentially just the releases.nix file each of the multiplexed packages provides (for example, here's cuDNN's: https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/cuda-modules/cudnn/releases.nix). 21:26:01
@connorbaker:matrix.orgconnor (burnt/out) (UTC-8) The call to lib.foldl' inside newestPackages traverses the list of package (the elements of the list of attribute sets underneath each architecture in releases.nix), keeping the latest copy of each major-minor version. 21:28:59
@glepage:matrix.orgGaétan LepageYes, I got a broad idea of what was happening21:30:20
@glepage:matrix.orgGaétan LepageAnyway, should be good to merge21:30:36
@glepage:matrix.orgGaétan Lepage Subsidiary question: any reason for using lib.map instead of builtins.map? 21:31:04

Show newer messages


Back to Room ListRoom Version: 9