Commit Graph

413 Commits

Author SHA1 Message Date
Luna Nova
934f488ced rocmPackages.composable_kernel: make more parts big-parallel
All parts except pool are too slow without the higher core limit on big-parallel builders.

Infra channel discussion: https://matrix.to/#/!RROtHmAaQIkiJzJZZE:nixos.org/
2025-04-18 07:16:21 -07:00
FliegendeWurst
807044e566 rocmPackages_6.hipblas-common: fix and enable strictDeps 2025-04-18 14:38:53 +02:00
FliegendeWurst
dab3970f53 rocmPackages_6.rocm-runtime: fix shebangs correctly for strictDeps 2025-04-18 14:32:48 +02:00
K900
f42e00d66e Merge remote-tracking branch 'origin/master' into staging-next 2025-04-08 10:29:26 +03:00
Winter
a19cd4ffb1 Revert "treewide: replace rev with tag"
This reverts commit 65a333600d.

This wasn't tested for correctness with something like fodwatch [0],
and should not have been (self-)merged so quickly, especially without
further review.

It also resulted in the breakage of at least one package [1] (and that's
the one we know of and was caught).

A few packages that were updated in between this commit and this revert
were not reverted back to using `rev`, but other than that, this is a
1:1 revert.

[0]: https://codeberg.org/raphaelr/fodwatch
[1]: https://github.com/NixOS/nixpkgs/pull/396904 / 758551e458
2025-04-08 02:57:25 -04:00
K900
b3146d4446 Merge remote-tracking branch 'origin/master' into staging-next 2025-04-07 21:21:10 +03:00
Pol Dellaiera
65a333600d treewide: replace rev with tag 2025-04-07 16:57:22 +02:00
K900
05bc93a58a Merge remote-tracking branch 'origin/master' into staging-next 2025-04-06 11:20:16 +03:00
7c6f434c
8ded8cc14b rocmPackages_5.clr: fix dangling symlink (#386487) 2025-04-06 04:08:33 +00:00
Silvan Mosberger
e52d633a63 Merge remote-tracking branch 'upstream/staging-next' into staging 2025-04-02 18:30:54 +02:00
Silvan Mosberger
374e6bcc40 treewide: Format all Nix files
Format all Nix files using the officially approved formatter,
making the CI check introduced in the previous commit succeed:

  nix-build ci -A fmt.check

This is the next step of the of the [implementation](https://github.com/NixOS/nixfmt/issues/153)
of the accepted [RFC 166](https://github.com/NixOS/rfcs/pull/166).

This commit will lead to merge conflicts for a number of PRs,
up to an estimated ~1100 (~33%) among the PRs with activity in the past 2
months, but that should be lower than what it would be without the previous
[partial treewide format](https://github.com/NixOS/nixpkgs/pull/322537).

Merge conflicts caused by this commit can now automatically be resolved while rebasing using the
[auto-rebase script](8616af08d9/maintainers/scripts/auto-rebase).

If you run into any problems regarding any of this, please reach out to the
[formatting team](https://nixos.org/community/teams/formatting/) by
pinging @NixOS/nix-formatting.
2025-04-01 20:10:43 +02:00
Luna Nova
22f36c62ba rocmPackages.composable_kernel: split build by tensor op
This is a bit hacky, trying to avoid a single huge build after
discussing in infra matrix. @emilazy suggested the approach of
building targets separately then adding them all into the final
build dir to avoid needing complicated CMakeFiles patches.
2025-03-24 09:25:57 -07:00
Luna Nova
b03b26488c rocmPackages: 6.3.1 -> 6.3.3
rocmPackages.hsa-amd-aqlprofile-bin: 6.3.0 -> 6.3.3

rocmPackages.composable_kernel: remove compression step,
offload-compress is builtin now.

remove unused disable-amdgpu-inline.patch

update documentation for build flags

composable_kernel's library files are compressed now so no need to apply our own compression

Various ROCm build fixes required for version bump

Co-authored-by: Gavin Zhao <git@gzgz.dev>
2025-03-24 09:25:56 -07:00
Luna Nova
4d2c7ad003 rocmPackages: 6.0.2 -> 6.3.1
Includes patch suggested by @shuni64 which fixes half precision ABI
issues
Includes hipblaslt compression patch
Includes configurable hipblaslt support in rocblas
rocmPackages_6.hipblaslt: respect NIX_BUILD_CORES in tensilelite
rocmPackages_6.hipblas: propagate hipblas-common
rocmPackages_6.clr: avoid confusion with hipClangPath

Co-authored-by: Gavin Zhao <git@gzgz.dev>
2025-03-24 09:25:56 -07:00
Kira Bruneau
a1fde977d9 rocmPackages.rocfft: remove myself as maintainer
The workarounds I originally added to support building in hydra are no
longer necessary and have been removed, so I'm no longer interested in
maintaining this.
2025-03-18 15:57:14 -04:00
Sigmanificient
91d5ab3ae4 treewide: remove unused rec expressions 2025-03-14 05:15:05 +01:00
Petr Zahradnik
959364e688 rocmPackages_5.clr: fix dangling symlink 2025-03-04 22:37:24 +01:00
h7x4
ff5974386b rocmPackages_6.rocmlir: fix build failure (#383994) 2025-02-26 01:38:58 +01:00
Peder Bergebakken Sundt
5aba99242e treewide: fix typos in comments
Made with

```shell
git restore .
fd '\.nix$' pkgs/ --type f -j1 -x bash -xc "$(cat <<"EOF"
    typos --no-check-filenames --write-changes "$1"
    git diff --exit-code "$1" && exit
    #( git diff "$1" | grep -qE "^\+ +[^# ]") && git restore "$1"
    count1="$( bat --language nix --diff --style changes "$1" --theme "Monokai Extended" --color always | aha --no-header | grep -E '^<span style="color:olive;">~</span> ' | wc -l )"
    count2="$( bat --language nix --diff --style changes "$1" --theme "Monokai Extended" --color always | aha --no-header | grep -E '^<span style="color:olive;">~</span> (<span style="color:#f8f8f2;"> *</span>)?<span style="color:#75715e;">.*</span>$' | wc -l )"
    [[ $count1 -ne $count2 ]] && git restore "$1"
EOF
)" -- {}
```

and filtered with `GIT_DIFF_OPTS='--unified=15' git -c interactive.singleKey=true add --patch`

I initially tried using the tree-sitter cli, python bindings and even ast-grep through various means, but this is what I ended up with.
2025-02-24 10:44:41 +01:00
Gavin Zhao
c847219cf6 rocmPackages_6.rocmlir: fix build failure
Signed-off-by: Gavin Zhao <git@gzgz.dev>
2025-02-21 12:10:27 -05:00
Wolfgang Walther
b19d0f6d3d treewide: replace substituteAll with replaceVars 2025-02-10 22:51:56 +01:00
Mauricio Collares
2094f0d9be rocmPackages_5.tensile, rocmPackages_5.llvm.libcxx: port fixes 2025-01-29 16:27:19 +01:00
Martin Schwaighofer
74858c1939 rocmPackages.tensile: use unwrapped cc as assembler
Tensile calls rocm clang with parameters such as "-x assembler
-target amdgcn-amd-amdhsa". Using a wrapped compiler with "-target"
leads to warnings introduced in
fc590fdd05.

Co-authored-by: Mauricio Collares <mauricio@collares.org>
2025-01-29 16:27:15 +01:00
Martin Schwaighofer
a2b5108952 rocmPackages.llvm.libcxx: fix build by disabling test
fc590fdd05 causes this test to fail.
2025-01-22 15:14:13 +01:00
Mauricio Collares
7d27fd2b04 rocmPackages.llvm.clang: remove -nostdlibinc flag 2025-01-03 19:49:32 +01:00
Wolfgang Walther
9d03498ada rocmPackages.rocm-docs-core: 1.11.0 -> 1.12.0 (#367343) 2025-01-01 21:06:10 +01:00
R. Ryantm
7aea8294a5 rocmPackages.rocm-docs-core: 1.11.0 -> 1.12.0 2024-12-22 10:28:29 +00:00
R. Ryantm
57c9e83452 rocmPackages_5.rocm-docs-core: 1.8.2 -> 1.12.0 2024-12-22 08:56:43 +00:00
R. Ryantm
46435b25d3 rocmPackages.rocm-docs-core: 0.34.0 -> 1.11.0 2024-12-11 10:10:17 +00:00
Silvan Mosberger
4f0dadbf38 treewide: format all inactive Nix files
After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.

Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.

A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.

This commit was automatically created and can be verified using

    nix-build a08b3a4d19.tar.gz \
      --argstr baseRev b32a094368
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:26:33 +01:00
Wolfgang Walther
770156285c rocmPackages_5.rocm-docs-core: 0.26.0 -> 1.8.2 (#298142) 2024-12-08 13:21:42 +01:00
jopejoe1
2e2c7f54fd treewide: hide more deprecated stuff if allowAliases is false 2024-11-27 20:51:46 +01:00
R. Ryantm
4d33914586 rocmPackages_5.rocm-docs-core: 0.26.0 -> 1.8.2 2024-09-29 12:04:15 +00:00
Artturin
e0464e4788 treewide: replace stdenv.is with stdenv.hostPlatform.is
In preparation for the deprecation of `stdenv.isX`.

These shorthands are not conducive to cross-compilation because they
hide the platforms.

Darwin might get cross-compilation for which the continued usage of `stdenv.isDarwin` will get in the way

One example of why this is bad and especially affects compiler packages
https://www.github.com/NixOS/nixpkgs/pull/343059

There are too many files to go through manually but a treewide should
get users thinking when they see a `hostPlatform.isX` in a place where it
doesn't make sense.

```
fd --type f "\.nix" | xargs sd --fixed-strings "stdenv.is" "stdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "stdenv'.is" "stdenv'.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "clangStdenv.is" "clangStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "gccStdenv.is" "gccStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "stdenvNoCC.is" "stdenvNoCC.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "inherit (stdenv) is" "inherit (stdenv.hostPlatform) is"
fd --type f "\.nix" | xargs sd --fixed-strings "buildStdenv.is" "buildStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "effectiveStdenv.is" "effectiveStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "originalStdenv.is" "originalStdenv.hostPlatform.is"
```
2024-09-25 00:04:37 +03:00
Sigmanificient
63d05d989e pkgs/development: remove unused arguments 2024-08-03 17:18:20 +02:00
Tobias Mayer
50c332ebd9 rapidjson: 1.1.0 -> unstable-2024-04-09, rapidjson-unstable: drop
The last oficial release of rapidjson is 8 years old, development has
continued without releases since then. The old version is affected
by CVE-2024-38517.

https://www.opencve.io/cve/CVE-2024-38517
2024-07-28 17:13:22 +02:00
Sigmanificient
543cd40ecc treewide: remove trailing space in description
Done using `grep -rP 'description\s+=\s+"[^"]+[ ]";' | cut -d ':' -f 1 |
xargs -i nvim {}` and sorting the opened files by hand, avoiding
generated packages list
2024-07-26 03:38:50 +02:00
Dennis Wuitz
4542cc7e33 treewide: remove openai-triton (alias) references
The repository moved out of the openai org, so it doesn't make sense to
prefix the package with it.

(cherry picked from commit af13bb4513647eec3c3790c5272dbd4aa190d208)
2024-07-23 12:11:29 +00:00
Doron Behar
50207701ed Merge pull request #318926 from mschwaig/compress-composable-kernel-extra-derivation
rocmPackages.composable_kernel: compress `composable_kernel` using extra derivation
2024-07-12 17:22:51 +03:00
❄️
d35e588fe5 Merge pull request #326124 from khaneliman/rocm_5
rocmPackages_5.llvm: python 3.12 fix
2024-07-11 09:13:01 -03:00
Austin Horstman
3701a7a354 rocmPackages_5.llvm: python 3.12 fix 2024-07-10 08:32:55 -05:00
Austin Horstman
09bcfcaa94 rocmPackages.llvm.libcxx: exclude a few failing tests 2024-07-09 20:43:10 -05:00
Austin Horstman
af59eb84ca rocmPackages.llvm: add setuptools
distutils removed in python 3.12, need to add setuptools.
2024-07-09 18:56:09 -05:00
github-actions[bot]
42ca786b66 Merge master into staging-next 2024-06-24 18:00:57 +00:00
Bernardo Meurer
f7184d625d Merge pull request #318374 from rhendric/rhendric/rocmPackages.clr-vendors-patch
rocmPackages{,_5}.clr: patch ICD vendor path
2024-06-24 10:19:03 -04:00
Emily
fbda1dbfd6 treewide: replace freeglut with libglut
Allow the macOS GLUT framework to be used automatically in many
cases. Packages that specifically search for freeglut or require its
additional APIs should still explicitly depend on it.

Deliberately skip the Haskell package set, which is mostly
automatically generated, and mupdf, which has its own fork of freeglut.
2024-06-22 18:06:51 +01:00
Alexis Hildebrandt
755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00
Ryan Hendrickson
d35c5d6340 rocmPackages.clr: patch ICD vendor path 2024-06-08 17:49:13 -04:00
Ryan Hendrickson
58fab37168 rocmPackages_5.clr: patch ICD vendor path 2024-06-08 17:49:02 -04:00
Bernardo Meurer
ab9a7c1e35 Merge pull request #311442 from philiptaron/issue-271473/rocm
rocm{5,6}: use elfutils instead of abandoned libelf
2024-05-26 18:15:30 -04:00