!eWOErHSaiddIbsUNsJ:nixos.org

NixOS CUDA

290 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
23 Aug 2024
@hexa:lossy.networkhexawhere are we with the binary caching situation?23:47:52
@hexa:lossy.networkhexame and my smol homeserver are deeply unhappy23:48:08
24 Aug 2024
@hexa:lossy.networkhexais nix-community's jobset going to stay a ci essentially?00:58:57
@connorbaker:matrix.orgconnor (burnt/out) (UTC-8)Actually haven’t been following so not sure what the consensus is there; likely they don’t have enough compute to act as a true CI, but maybe for scheduled job sets?05:15:37
25 Aug 2024
@slaser:matrix.orgslaser joined the room.18:35:19
27 Aug 2024
@mat:matrix.matmoa.xyz@mat:matrix.matmoa.xyz joined the room.13:24:16
@zimbatm:numtide.comJonas Chevalier
In reply to @hexa:lossy.network
is nix-community's jobset going to stay a ci essentially?
what else are you looking for, testing on PRs?
16:20:38
@hexa:lossy.networkhexaa binary cache16:20:58
@hexa:lossy.networkhexaimage.png
Download image.png
16:21:41
@hexa:lossy.networkhexathe rebuild of my homeserver on my homeserver (5600X) can't take all night and half the morning 🙂 16:21:54
@zimbatm:numtide.comJonas ChevalierI should have said that Hydra.nix-community.org publishes to nix-community.cachix.org 🙃16:22:00
@hexa:lossy.networkhexawhile all other machiens take less than 10 minutes16:22:01
@ss:someonex.netSomeoneSerge (back on matrix)OH I thought that was implied16:22:40
@zimbatm:numtide.comJonas Chevalier hexa (UTC+1): can you give us the new stats after you add that cache :) 16:23:18
@hexa:lossy.networkhexasure16:23:24
28 Aug 2024
@gmacon:matrix.org@gmacon:matrix.org

I'm trying to build the Rust candle-kernels crate within Nix, and nvcc is complaining that gcc is too new. I have gcc 13.2.0 and nvcc version 12.2.140 from nixpkgs-24.05-darwin bb8bdb47b718645b2f198a6cf9dff98d967d0fd4.

  /nix/store/r45hzi56bzljzfvh6rgdnjbisy9pxqnj-cuda-merged-12.2/include/crt/host_config.h:143:2: error: #error -- unsupported GNU version! gcc versions later than 12 are not supported! The nvcc flag '-allow-unsupported-compiler' can be used to override this version check; however, using an unsupported host compiler may cause compilation failure or incorrect run time execution. Use at your own risk.
        |  ^~~~~
  thread 'main' panicked at /home/gmacon3/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bindgen_cuda-0.1.5/src/lib.rs:391:13:
  nvcc error while compiling "src/affine.cu":

  # CLI "nvcc" "--gpu-architecture=sm_90" "--ptx" "--default-stream" "per-thread" "--output-directory" "$PWD/target/debug/build/candle-kernels-809f3e0b9ee8b48d/out" "-Isrc" "-I/nix/store/r45hzi56bzljzfvh6rgdnjbisy9pxqnj-cuda-merged-12.2/include" "src/affine.cu" 

Have other folks seen this? What's the best approach to resolve this?

17:13:49
@gmacon:matrix.org@gmacon:matrix.org
In reply to @gmacon:matrix.org

I'm trying to build the Rust candle-kernels crate within Nix, and nvcc is complaining that gcc is too new. I have gcc 13.2.0 and nvcc version 12.2.140 from nixpkgs-24.05-darwin bb8bdb47b718645b2f198a6cf9dff98d967d0fd4.

  /nix/store/r45hzi56bzljzfvh6rgdnjbisy9pxqnj-cuda-merged-12.2/include/crt/host_config.h:143:2: error: #error -- unsupported GNU version! gcc versions later than 12 are not supported! The nvcc flag '-allow-unsupported-compiler' can be used to override this version check; however, using an unsupported host compiler may cause compilation failure or incorrect run time execution. Use at your own risk.
        |  ^~~~~
  thread 'main' panicked at /home/gmacon3/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bindgen_cuda-0.1.5/src/lib.rs:391:13:
  nvcc error while compiling "src/affine.cu":

  # CLI "nvcc" "--gpu-architecture=sm_90" "--ptx" "--default-stream" "per-thread" "--output-directory" "$PWD/target/debug/build/candle-kernels-809f3e0b9ee8b48d/out" "-Isrc" "-I/nix/store/r45hzi56bzljzfvh6rgdnjbisy9pxqnj-cuda-merged-12.2/include" "src/affine.cu" 

Have other folks seen this? What's the best approach to resolve this?

It turs out that Crane (which is the library I'm using to handle the Rust build) supports a stdenv argument to override the compilers used for the Rust build, so setting it to an older GCC worked.
18:55:04
@ss:someonex.netSomeoneSerge (back on matrix)

older gcc

Note that if you're building a shared library you're going to run into libc issues if you just use gcc12Stdenv. THat's why we have cudaPackages.backendStdenv

21:48:12
29 Aug 2024
@gmacon:matrix.org@gmacon:matrix.org
In reply to @ss:someonex.net

older gcc

Note that if you're building a shared library you're going to run into libc issues if you just use gcc12Stdenv. THat's why we have cudaPackages.backendStdenv

Since this is a Rust project, I'm not building any shared libraries, but this is good to know. Thanks!
13:06:40
@ss:someonex.netSomeoneSerge (back on matrix)
In reply to @gmacon:matrix.org
Since this is a Rust project, I'm not building any shared libraries, but this is good to know. Thanks!
(also relevant if you're loading other shared libraries, e.g. as plugins)
13:10:42
@gmacon:matrix.org@gmacon:matrix.org
In reply to @ss:someonex.net
(also relevant if you're loading other shared libraries, e.g. as plugins)
I went ahead and changed my derivations anyway, so I'm all set for everything :-)
13:12:20
@hexa:lossy.networkhexa
In reply to @zimbatm:numtide.com
hexa (UTC+1): can you give us the new stats after you add that cache :)
my infra runs on nixos-24.05 🙂
14:09:02
@zimbatm:numtide.comJonas Chevalierright, we should probably also build 24.05. It shouldn't cost that much.14:12:24
@hexa:lossy.networkhexathat would be super cool14:12:37
3 Sep 2024
@hexa:lossy.networkhexahttps://github.com/nix-community/infra/pull/143520:55:18
@hexa:lossy.networkhexa not sure how useful release-cuda.nix is on 24.05, maybe SomeoneSerge (UTC+3) can speak to that? 20:55:38
@hexa:lossy.networkhexahttps://hydra.nix-community.org/jobset/nixpkgs/cuda-stable21:35:16
4 Sep 2024
@connorbaker:matrix.orgconnor (burnt/out) (UTC-8)I’ll take a look at it later today as well17:40:12
@connorbaker:matrix.orgconnor (burnt/out) (UTC-8)(Assuming I remember and my plumbing is fixed by then otherwise all bets are off)17:40:28
@ss:someonex.netSomeoneSerge (back on matrix) changed their display name from SomeoneSerge (UTC+3) to SomeoneSerge (nix.camp).21:48:39

Show newer messages


Back to Room ListRoom Version: 9