!eWOErHSaiddIbsUNsJ:nixos.org

NixOS CUDA

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

Load older messages


SenderMessageTime
22 Mar 2023
@ss:someonex.netSomeoneSerge (matrix works sometimes)Oh01:31:56
@connorbaker:matrix.orgconnor (he/him) Also, looks like we might have torch.compile soon, even if it is only with the binary distributions: https://github.com/NixOS/nixpkgs/pull/221652 01:32:02
@connorbaker:matrix.orgconnor (he/him) Someone S: do you have an example of how one would use the env attribute? I've seen it used for things like env.NIX_C_FLAGS, but not sure what it should look like for a bunch of values. Is it okay to just declare it as an attribute set? 01:49:28
@ss:someonex.netSomeoneSerge (matrix works sometimes) I still haven't read any documentation on env, but it sure is an attribute set. AFAIU there's little magic to no in Nix-the-interpreter. Magic mostly belongs in nixpkgs 🙃 03:00:45
@ss:someonex.netSomeoneSerge (matrix works sometimes)Pfew. The triton part is an absolute frankenstein, but it builds https://github.com/NixOS/nixpkgs/pull/22227303:36:04
@ss:someonex.netSomeoneSerge (matrix works sometimes)Honestly, I'm surprised pytorch migrated to triton and so early03:36:41
@ss:someonex.netSomeoneSerge (matrix works sometimes)So far, I don't see a way to build openai triton without cuda support -> our rocm build is going to be unfree03:37:17
@ss:someonex.netSomeoneSerge (matrix works sometimes)
In reply to @connorbaker:matrix.org
Also, looks like we might have torch.compile soon, even if it is only with the binary distributions: https://github.com/NixOS/nixpkgs/pull/221652
Which reminds me, that we still have not fixed meta.license in torch-bin. It should be unfreeRedistributable
03:38:43
@ss:someonex.netSomeoneSerge (matrix works sometimes)
In reply to @connorbaker:matrix.org
Also, looks like we might have torch.compile soon, even if it is only with the binary distributions: https://github.com/NixOS/nixpkgs/pull/221652
* Which reminds me, that we still have not fixed meta.license in torch-bin. I think it should be unfreeRedistributable
03:39:00
@connorbaker:matrix.orgconnor (he/him) I've been meaning to make some issues for torch-bin as well (like moving to autoPatchelfHook and autoAddOpenGLRunpathHook) 04:32:38
@atrius:matrix.orgmjlbach changed their display name from mjlbach to mjlbach (Old).05:14:32
@atrius:matrix.orgmjlbach changed their display name from mjlbach (Old) to mjlbach.05:51:05
@connorbaker:matrix.orgconnor (he/him) Someone S: fantastic work on https://github.com/NixOS/nixpkgs/pull/222273 by the way, kudos for handling that! 👏 14:50:33
@ss:someonex.netSomeoneSerge (matrix works sometimes)Damn, nixpkgs is an inspiring place15:51:22
@ss:someonex.netSomeoneSerge (matrix works sometimes)

Btw, I see we still haven't added any cuda to maintainers/team-list.nix.

I think ROCM people get notifications about e.g. pytorch through:

maintainers = with maintainers; [ acowley lovesegfault ] ++ teams.rocm.members;
15:51:23
@ss:someonex.netSomeoneSerge (matrix works sometimes) *

Btw, I see we still haven't added any cuda to maintainers/team-list.nix.

I think ROCM people get notifications about e.g. pytorch through:

maintainers = with maintainers; [ acowley lovesegfault ] ++ teams.rocm.members;
15:51:32
@ss:someonex.netSomeoneSerge (matrix works sometimes)

FRidh: you mentioned that "we can use wrapCC to make our own cudaPackages.stdenv"

I'm not familiar with its purpose, nor the purpose of the arguments it takes.
Would it make sense to expose cuda_nvcc via cc-wrapper's extraTools?
Would it make sense to expose cuda_cudart in extraPackages?

It is my assumption, that people could then use such cudaPackages.stdenv to build cuda apps without having to add cuda_nvcc to nativeBuildInputs.
Are there examples of a similar use of wrapCC?
Is there some extra work (maybe some automated checks) that people would expect from cudaPackages.stdenv based just on its name?

16:07:26
@ss:someonex.netSomeoneSerge (matrix works sometimes)Sorry if I misquote, I lost the original comment16:07:55
@ss:someonex.netSomeoneSerge (matrix works sometimes) *

FRidh: you mentioned that "we can use wrapCC to make our own cudaPackages.stdenv"

I'm not familiar with its purpose, nor the purpose of the arguments it takes.
Would it make sense to expose cuda_nvcc via cc-wrapper's extraTools?
Would it make sense to expose cuda_cudart in extraPackages?

It is my assumption, that people could then use such cudaPackages.stdenv to build cuda apps without having to add cuda_nvcc to nativeBuildInputs.
Are there examples of a similar use of wrapCC?
Is there some extra work (maybe some automated checks or passthru attributes) that people would expect from cudaPackages.stdenv based just on its name?

16:09:36
@ss:someonex.netSomeoneSerge (matrix works sometimes) *

FRidh: you mentioned that "we can use wrapCC to make our own cudaPackages.stdenv"

I'm not familiar with its purpose, nor the purpose of the arguments it takes.
Would it make sense to expose cuda_nvcc via cc-wrapper's extraTools?
Would it make sense to expose cuda_cudart in extraPackages?

It is my assumption, that people could then use such cudaPackages.stdenv to build cuda apps without having to add cuda_nvcc to nativeBuildInputs.
Are there examples of a similar use of wrapCC?
Is there some extra work (maybe some automated checks or passthru attributes) that people would expect from cudaPackages.stdenv based just on its name? I'm maybe not 100% certain what a "stdenv" actually is

16:10:10
@ss:someonex.netSomeoneSerge (matrix works sometimes)
In reply to @ss:someonex.net
hexa: do we have an established... approach to handling torch.utils.cpp_extension?
Omg, now they use it to figure out linker flags for torch.compile
23:26:14
@ss:someonex.netSomeoneSerge (matrix works sometimes)And yes, this requires a compatible gcc in the PATH too23:27:00
@ss:someonex.netSomeoneSerge (matrix works sometimes)At run time23:27:08
@atrius:matrix.orgmjlbachI am trying to get cuda support for distrobox as an escape hatch for nix 23:38:47
@atrius:matrix.orgmjlbachI got it working on fedora but now to try on nixos :)23:39:15
@ss:someonex.netSomeoneSerge (matrix works sometimes)Huh, what's distrobox?23:39:26
@atrius:matrix.orgmjlbachIt's like toolbx, it's a wrapper around podman/docker23:39:37
23 Mar 2023
@ss:someonex.netSomeoneSerge (matrix works sometimes)

It would be nice to open an issue at openai/triton and offer some solution to stabilize their paths'n'flags discovery: the way they deal with ptxas, the way they infer flags to link the cuda driver, etc. I can see they're still changing the related bits, so maybe we could pitch something we ourselves would be more comfortable with

Only idk what would that be

23:05:34
24 Mar 2023
@htran:matrix.orghtran joined the room.02:21:03
25 Mar 2023
@valconius:matrix.orgvalconius joined the room.23:46:14

There are no newer messages yet.


Back to Room ListRoom Version: 9