Commit Graph

134 Commits

Author SHA1 Message Date
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
Philip Taron
d466c12316
rocm6: use elfutils instead of unmaintained libelf 2024-05-13 09:37:58 -07:00
Philip Taron
67f368f3a8
rocm5: use elfutils instead of unmaintained libelf 2024-05-13 09:37:48 -07:00
Lancelot SIX
65e47ee45a rocmPackckages.rocgdb: Fix license
Fix the lincense information for ROCgdb.  The appropriate license is
GPL3 or above.
2024-05-06 22:12:54 +01:00
Lancelot SIX
2eeec259f8 rocmPackages.rocgdb: Build with amdgpu support
The currnt rocgdb package is built without amdgpu uspport (which
requires the rocdbgapi library).  Fix this, and do other improvements
over the default configuration.
2024-05-06 22:10:57 +01:00
Gavin Zhao
c3848d59c9
rocmPackages.rocblas: add comments about why some GPU archs are not built
Signed-off-by: Gavin Zhao <git@gzgz.dev>
2024-04-25 11:45:45 -04:00
Gavin Zhao
32b9f37d57
rocmPackages.rocblas: do not build for gfx1012, gfx940, and gfx 941 GPU targets
Signed-off-by: Gavin Zhao <git@gzgz.dev>
2024-04-25 09:55:08 -04:00
Gavin Zhao
7bbde1756d
rocmPackages: no need to pass rocblas to itself
Signed-off-by: Gavin Zhao <git@gzgz.dev>
2024-04-24 22:23:40 -04:00
Gavin Zhao
45b3242ab4
rocmPackages: add isa conversion patch in rocprim
Signed-off-by: Gavin Zhao <git@gzgz.dev>
2024-04-24 22:23:40 -04:00
Gavin Zhao
e30bae6a69
rocmPackages: fetch patches from Debian if possible
Signed-off-by: Gavin Zhao <git@gzgz.dev>
2024-04-24 22:23:39 -04:00
Gavin Zhao
7ff6984fd3
rocmPackages: fix dependencies in rocblas
Signed-off-by: Gavin Zhao <git@gzgz.dev>
2024-04-24 22:23:39 -04:00
Gavin Zhao
73e919d8b7
rocmPackages: install headers correctly in rocblas
Signed-off-by: Gavin Zhao <git@gzgz.dev>
2024-04-24 22:23:39 -04:00
Gavin Zhao
d276a67466
rocmPackages: don't build arches in parallel in rccl
Signed-off-by: Gavin Zhao <git@gzgz.dev>
2024-04-24 22:23:39 -04:00
Gavin Zhao
f4f68f4f6b
rocmPackages: cleanup and remove double building for rocblas
Signed-off-by: Gavin Zhao <git@gzgz.dev>
2024-04-24 22:23:38 -04:00
Gavin Zhao
e15c44956b
rocmPackages: respect NIX_BUILD_CORES and cleanup CMake options in rocblas
Signed-off-by: Gavin Zhao <git@gzgz.dev>
2024-04-24 22:23:38 -04:00
Gavin Zhao
e24032988f
rocmPackages: extend miopen ISA compatibility
Signed-off-by: Gavin Zhao <git@gzgz.dev>
2024-04-24 22:23:38 -04:00
Gavin Zhao
41f946176f
rocmPackages: extend rocblas ISA compatibility
Signed-off-by: Gavin Zhao <git@gzgz.dev>
2024-04-24 22:23:37 -04:00
Gavin Zhao
d6adc4b1d4
rocmPackages: extend tensile ISA compatibility
Signed-off-by: Gavin Zhao <git@gzgz.dev>
2024-04-24 22:23:37 -04:00
Gavin Zhao
f1367529e9
rocmPackages: extend clr ISA compatibility
Signed-off-by: Gavin Zhao <git@gzgz.dev>
2024-04-24 22:23:37 -04:00
Gavin Zhao
f579c74f3c
rocmPackages: extend rocm-runtime ISA compatibility
Signed-off-by: Gavin Zhao <git@gzgz.dev>
2024-04-24 22:23:37 -04:00
Gavin Zhao
da7ab26875
rocmPackages: use CMake 3.9.2 when building clr
Signed-off-by: Gavin Zhao <git@gzgz.dev>
2024-04-23 16:24:48 -04:00
Weijia Wang
92a9b54db1 Revert "rocmPackages.composable_kernel: compress output" 2024-04-17 02:41:57 +02:00
Ulrik Strid
20a3a21814
Merge pull request #300257 from mschwaig/fix-mivisionx
rocmPackages_5.mivisionx: fix build
2024-04-15 12:15:48 +02:00
Weijia Wang
e8d27c907e
Merge pull request #299589 from mschwaig/compress-composable-kernel
rocmPackages.composable_kernel: compress output
2024-04-14 21:09:58 +02:00
Ulrik Strid
3e20bc5468
Merge pull request #298451 from dwf/hiprand_init
rocmPackages_6.hiprand: init at 6.0.2
2024-04-13 10:38:56 +02:00
Ulrik Strid
045f8630f3
Merge pull request #300079 from dwf/miopen
rocmPackages_{5,6}.miopen: fix test builds by linking gtest
2024-04-12 22:28:11 +02:00
Martin Schwaighofer
772dbad3d4 rocmPackages.llvm: replace --replace with --replace-fail (cleanup) 2024-04-07 17:09:56 +02:00
Martin Schwaighofer
e380b53037 rocmPackages.llvm: compress outputs of clang-offload-bundler
This patches the clang-offload-bundler tool to add a compression option
from a more recent version of clang.
This compression option reduces the size of ROCm's fat binaries.
Those binaries contain .hip_fatbin sections with GPU-specific code,
for each target.
Compression is automatically turned on for all produced outputs
via a wrapper, because it's difficult to identify all the places
where the -compression argument would be needed.

Once upsteam introduces handeling for this argument,
we should drop the wrapper again.
This transistion will create inconsistsency, but I do not think that
it will impact any actual users and it's what's practical to implement.
2024-04-07 17:09:56 +02:00
Martin Schwaighofer
4ffd610a37 rocmPackages_6.mivisionx: remove duplicate patches 2024-04-04 00:27:40 +02:00
Martin Schwaighofer
48b253cf6e rocmPackages_6.mivisionx: add __STDC_CONSTANT_MACROS
This change adapts c3157ea4aa for ROCm 6,
in case it fixes the same problem right out of the gate.
Since rocAL is getting deprecated, dropping this and moving the
rocAL build to its own derivation is also a possibility.
2024-04-04 00:26:35 +02:00