Skip to content

WIP: python3Packages.openai-triton: make cudaSupport optional#224898

Closed
SomeoneSerge wants to merge 13 commits intoNixOS:masterfrom
SomeoneSerge:triton-optional-cuda
Closed

WIP: python3Packages.openai-triton: make cudaSupport optional#224898
SomeoneSerge wants to merge 13 commits intoNixOS:masterfrom
SomeoneSerge:triton-optional-cuda

Conversation

@SomeoneSerge
Copy link
Copy Markdown
Contributor

@SomeoneSerge SomeoneSerge commented Apr 5, 2023

Description of changes

TBD. Follow-up to #222273

Things done
  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 23.05 Release Notes (or backporting 22.11 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

@github-actions github-actions bot added 6.topic: ocaml OCaml is a general-purpose, high-level, multi-paradigm programming language. 6.topic: python Python is a high-level, general-purpose programming language. labels Apr 5, 2023
, cmake
, config
, cudaPackages ? { }
, cudaSupport ? config.cudaSupport or false
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you define this as a proper option in the file that describes the config attr? Then we also have a default false

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, so config already supports options?!!

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking at pkgs/top-level/config.nix for the first time now. This is great, I really needed this, our cudaCapabilities and cudaSupport are already a mess, and we still need more controls (virtual vs real architectures, default mkl support)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We'll have a separate PR for config.nix integration

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, so config already supports options?!!

It does since ~4 years but people only really started using it a year ago. Glad that that helps you.

@Tungsten842
Copy link
Copy Markdown
Member

@SomeoneSerge Now that rocfft builds on hydra this would be great to have

@wegank wegank added the 2.status: merge conflict This PR has merge conflicts with the target branch label Mar 20, 2024
@wegank wegank added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Jul 4, 2024
@LunNova
Copy link
Copy Markdown
Member

LunNova commented Mar 13, 2026

Superceded by later PRs such as #329310 #328247

@LunNova LunNova closed this Mar 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2.status: merge conflict This PR has merge conflicts with the target branch 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md 6.topic: ocaml OCaml is a general-purpose, high-level, multi-paradigm programming language. 6.topic: python Python is a high-level, general-purpose programming language.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants