NixOS CUDA | 290 Members | |
| CUDA packages maintenance and support in nixpkgs | https://github.com/orgs/NixOS/projects/27/ | https://nixos.org/manual/nixpkgs/unstable/#cuda | 57 Servers |
| Sender | Message | Time |
|---|---|---|
| 6 Feb 2025 | ||
* I am not sure if I like the idea of adding freeimage to allowInsecurePredicate "globally" in release-cuda, as the eval failure is a useful indicator for when some package ends up depending on it. I was thinking of allowing freeimage specifically for cuda-samples. Also, it seems that cuda-samples is not present for CUDA 12.4 for some reason. I wonder, why is that? | 14:53:29 | |
* I am not sure if I like the idea of adding freeimage to allowInsecurePredicate "globally" in release-cuda, as the eval failure is a useful indicator for when some package ends up depending on it. I was thinking of allowing freeimage specifically for cuda-samples. Also, it seems that cuda-samples is not present for CUDA 12.4 for some reason. I wonder, why is that? | 14:53:38 | |
| I think the first one is related to compiler version and the second one may be static libraries for cuda_cudart not being in one of the default installed outputs Although as a caveat I haven’t looked at Nixpkgs in a bit | 15:16:59 | |
| Yeah, it seems that a bunch of libraries are actually missing, not just the cudart_static. I am currently investigating. | 15:19:01 | |
| I know I did this in the out of tree because it’s a pain in the ass to explicitly include the static libraries for cuda_cudart for CMake (for some unknowable reason they’re required when doing compiler identification): https://github.com/ConnorBaker/cuda-packages/blob/dd0266aece12e5177e3ce32d62b6665c33847837/modules/redists/cuda/overrides/common/cuda_cudart.nix#L11 But generally to reduce the build time closure static libraries aren’t pulled in by default | 15:19:06 | |
| Might have to check the CMake for the CUDA samples — it’s possible they’re doing only static builds or preferentially linking against static libraries | 15:19:58 | |
| 15:49:57 | ||
| This might be a stupid question, but when the nixpkgs manual says
What if the upstream package expects a single | 16:54:13 | |
| * This might be a stupid question, but when the nixpkgs manual says
does it mean that individual derivations from What if the upstream package expects a single | 16:54:19 | |
| * This might be a stupid question, but when the nixpkgs manual says
does it mean that individual derivations from What if the upstream package expects a single | 16:54:58 | |
| Honestly, I've no idea what license, if any, applies to torch-bin | 17:24:28 | |
| Yes, or we could just agree that testing for insecure dependencies is out of scope for hydra | 17:26:09 | |
| I expect static and devrt to be in .dev's propagatedBuildInputs | 17:27:54 | |
If upstream is co-operative, they need to be contacted and offered a proper solution like FindCUDAToolkit.cmake without any CUDA_PATHs or merged-layout assumptiosn | 17:29:22 | |
thanks for looking. Sadly, I have now compiled the package myself so it's cached and this doesn't say anything useful. I suppose I can try next time I update. What do you except out of emptying builders? | 17:29:50 | |
That's the idea. We could consider an automation more along the lines of propagatedBuildInputs, but symlinks we hope to avoid, because it's hard to prune the references to static libraries after the build | 17:31:10 | |
| Maybe gc it? | 17:31:58 | |
Has anyone encountered this? I've no idea what this workflow is even for | 17:41:42 | |
| 17:51:07 | ||
The upstream in question is NVIDIA/cuda-samples. They are currently using "plain" Makefiles. I think that it's unlikely that we could get them to switch (and I don't really want to try to implement this myself). What would be "the most nixpkgs way" to create a merged CUDA_PATH in this case? | 17:54:37 | |
Apart from just using cudatoolkit that is. | 17:55:17 | |
| It would be what you said, buildEnv/symlinkJoin (which is what cudaPackages.cudatoolkit currently is) | 17:55:50 | |
| Hmmm. I just noticed that according to this page the latest supported GCC version for CUDA 12.4 is GCC 13.2, but currently
is this expected? | 18:57:21 | |
| Nvm, I am blind, it says that newer minor versions are also supported. | 19:02:35 | |
| 7 Feb 2025 | ||
| Ugh FINALLY have a test to catch different versions of the package set leaking into each other: https://github.com/ConnorBaker/cuda-packages/commit/6c9cb3a17962427e9772849a3b7ca08899897aae Got tried of seeing multiple versions of CUDA dependencies in the closure of members of the package set | 02:04:37 | |
| Let's do Thursday February 13th 2-3PM UTC? | 14:41:38 | |
| no idea - seems like an intermittent issue? | 15:07:19 | |
| other than that, are you ok with merging the PR? I would love vllm to appear in the cache | 15:07:44 | |
| * other than that, are you ok with merging the PR? I would love vllm to appear in the nix-community cache | 15:07:50 | |
| and i just merged an update from 0.7.1 -> 0.7.2 to master | 15:08:02 | |