!eWOErHSaiddIbsUNsJ:nixos.org

NixOS CUDA

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

You have reached the beginning of time (for this room).


SenderMessageTime
10 Feb 2025
@ruroruro:matrix.orgruro *

On a related note, can somebody tell me:

  1. Should I prefer linking to libglvnd instead of libGL?
  2. Is it bad if I end up having both libGL and libglvnd in the same closure?
  3. It seems that libglvnd doesn't provide libGLU or libglut. Is there an equivalent vender-neutral dispatch mechanism for those libraries?

Edit: nvm, I must be blind and/or sleep deprived. libGL is an alias for libglvnd

14:08:14
@stick:matrix.orgsticksounds good 15:05:28
@ruroruro:matrix.orgruro

Btw, it seems that there is a mismatch in CUDA vs GCC version compatibility after all. In particular, for me

cudaPackages_11_2.backendStdenv.cc.version == "12.4.0"

and with that compiler, a couple of the samples in cuda-samples are failing to compile due to errors inside cuda_cccl headers. Here is a forum post discussing this exact error.

I wasn't able to find precise compatibility matrices for CUDA 12.1, but according to this stackoverflow answer, CUDA 12.1 supports GCC versions up to 12.2 which is lower than the current 12.4.0.

Minor versions don't work in pkgs/development/cuda-modules/nvcc-compatibilities.nix, but setting gccMaxMajorVersion = "11" for "12.1" I was able to successfully build the problematic samples that fail with GCC 12.4.0. So it looks like CUDA 12.1 doesn't fully support GCC 12.4 after all.

Thoughts?

15:53:25
@ss:someonex.netSomeoneSerge (matrix works sometimes)Hm. The logic for choosing gcc initially used gccMaxMajorVersion from some other file, nvcc-compatibilities was added later15:54:53
@ss:someonex.netSomeoneSerge (matrix works sometimes)I hope to rewrite the eval bit in the coming month15:55:19
@ruroruro:matrix.orgruro *

Btw, it seems that there is a mismatch in CUDA vs GCC version compatibility after all. In particular, for me

cudaPackages_11_2.backendStdenv.cc.version == "12.4.0"

and with that compiler, a couple of the samples in cuda-samples are failing to compile due to errors inside cuda_cccl headers. Here is a forum post discussing this exact error.

I wasn't able to find precise compatibility matrices for CUDA 12.1, but according to this stackoverflow answer, CUDA 12.1 supports GCC versions up to 12.2 which is lower than the current 12.4.0.

Minor versions don't work in pkgs/development/cuda-modules/nvcc-compatibilities.nix, but setting gccMaxMajorVersion = "11" for CUDA "12.1" I was able to successfully build the problematic samples that fail with GCC 12.4.0. So it looks like CUDA 12.1 doesn't fully support GCC 12.4 after all.

Thoughts?

15:57:11
@stick:matrix.orgsticki was able to build most of the release-cuda packages on aarch64-linux without any build issues - so this is awesome!17:29:24
@stick:matrix.orgsticki pushed the results into https://app.cachix.org/cache/cuda-arm in case anyone would like to play with that17:30:29

Show newer messages


Back to Room ListRoom Version: 9