Commit Graph

413 Commits

Author SHA1 Message Date
nixpkgs-ci[bot]
23a2df36ea Merge master into staging-next 2026-01-18 18:05:48 +00:00
Wolfgang Walther
2858434827 rocm-modules: generate attrpaths
Regenerate attrpaths after home-automation-tests have been moved to
tests.*.
2026-01-18 16:20:50 +01:00
Wolfgang Walther
058fad7135 rocm-modules/release-attrPaths-gen.nix: fix import
This seems to have been moved to a different folder, so that the
relative path wasn't correct anymore.
2026-01-18 16:15:07 +01:00
K900
e0e84bb8fc Merge remote-tracking branch 'origin/master' into staging-next 2026-01-18 11:09:55 +03:00
nixpkgs-ci[bot]
f974e40402 Merge master into staging-next 2026-01-17 00:18:03 +00:00
Luna Nova
c01d90f756 rocmPackages.hiprt: 2.5.a21e075.3 -> 3.0.3.a1525e7
PR to drop encryption support was accepted upstream so we can simplify the build slightly.
Changes from 2.5:

- RDNA 4 support (compressed BVH8, triangle packets, intersectable instances, OBB)
- new generic BVH2 import API
- per-context logger
- removed kernel encryption
- various bug fixes for RDNA 2
- ROCm 7 support
2026-01-16 10:44:23 -08:00
Luna Nova
fa7beaf341 rocmPackages.aotriton: 0.10b -> 0.11.1b
Diff: https://github.com/ROCm/aotriton/compare/0.10b...0.11.1b
2026-01-16 10:44:23 -08:00
Gavin Zhao
d379fc21fa rocmPackages.clr: add HIP impure tests for generic-arch and isa-compat
Co-Authored-By: Luna Nova <git@lunnova.dev>
2026-01-16 10:44:23 -08:00
Luna Nova
3504249611 rocmPackages.migraphx: fix unicode minus sign breaking CArrays embed
A comment in src/targets/gpu/kernels/include/migraphx/kernels/bit.hpp
contains a Unicode MINUS SIGN instead of ASCII hyphen:
  // popcount(~(x | −x))

When EMBED_USE=CArrays, the cmake Embed.cmake mechanism reads source
files as hex and generates char[] arrays. The UTF-8 encoding of U+2212
(0xe2 0x88 0x92) causes a compile error:
  constant expression evaluates to 226 which cannot be narrowed
         to type 'char' [-Wc++11-narrowing]
2026-01-16 10:44:23 -08:00
Luna Nova
2ed265624c rocmPackages.rdc: fix upstream CMake issues with build types and libcap include
Applies:
- fix(rdc): Fix CXXFLAGS clobbering and incompatibility with non-x64 architecture ROCm/rocm-systems#2423
- fix(rdc): use pkg-config to find libcap ROCm/rocm-systems#2424
2026-01-16 10:44:22 -08:00
Luna Nova
b280ad4aaf rocmPackages: 7.0.1 -> 7.0.2 2026-01-16 10:44:22 -08:00
Luna Nova
fc1f8110e8 rocmPackages: 6.4.3 -> 7.0.1 2026-01-16 10:44:22 -08:00
Yureka
5b3f852e22 migraphx: Backport quantize_bf16 C api 2026-01-16 16:20:28 +01:00
Michael Daniels
19e820ecf3 Merge branch 'master' into staging-next 2026-01-12 18:02:34 -05:00
Michael Daniels
075e8c2c4f treewide: change 'format = "pyproject";' to 'pyproject = true;'
This is almost all find-and-replace.

I manually edited:
* pkgs/development/python-modules/notifications-android-tv/default.nix,
* pkgs/servers/home-assistant/default.nix,
* pkgs/development/tools/continuous-integration/buildbot/master.nix

A few files have not been changed in this PR because they would cause rebuilds.

This PR should have 0 rebuilds.
2026-01-12 17:50:35 -05:00
Stefan Frijters
c47cabffc6 rocmPackages: move LDFLAGS into env for structuredAttrs 2026-01-07 21:30:36 +01:00
Vladimír Čunát
9ab74f3ce3 glibc: 2.40-66 -> 2.42-47 (#379542) 2026-01-06 17:24:04 +00:00
Luna
fba6e710d1 blender-hip: remove in favor of config.rocmSupport = true (#463064) 2026-01-05 02:32:13 +00:00
Andrew Marshall
187291c1c3 blender: rename hipSupport -> rocmSupport
Prior to e720baecf0 (Nov 2023), there was
no global config.rocmSupport, and Blender’s hipSupport param predates
that. Since the global config now exists, defer to that instead.

The closure size of various ROCm packages has also been reduced recently
in 32d957e0cd. At the time I wrote this,
`pkgsRocm.blender` was 3.1 GiB (vs. 2.5 GiB for `pkgs.blender`). So
remove the comment.

Add blender to the rocm release attrs so Hydra will build
`pkgsRocm.blender`.
2026-01-04 09:30:50 -05:00
Maximilian Bosch
32ca2e4b89 rocmPackages.llvm.llvm: fix build w/ glibc-2.42
Failing Hydra build: https://hydra.nixos.org/build/308526977

I'm not sure what exactly caused the failure here, but this patch
from LLVM upstream seems to fix the problem and this regressed right
after the glibc upgrade.
2026-01-03 20:39:45 +01:00
Pui Yong Qing
6355638c71 rocmPackages.amdsmi: fix build with gcc15 2026-01-02 04:07:57 +08:00
K900
91ab81bacb Merge remote-tracking branch 'origin/master' into staging-next 2025-12-22 09:38:31 +03:00
Dennis Schridde
11f671c1bf rocmPackages.meta.release-packagePlatforms: regenerate
Like with 684545ccda or
0728c6f711, the intention is to provide
cached / binary packages via Hydra for packages depending on rocm.

I regenerated the file using:
```sh
cd pkgs/development/rocm-modules/6
# Warning, this can bring a 32GiB RAM system to its limits:
./release-attrPaths-gen.sh
```
2025-12-21 18:51:56 +01:00
Wolfgang Walther
46c0c0eae7 Merge branch 'staging-next' into staging 2025-12-10 18:42:31 +01:00
Ihar Hrachyshka
567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00
ghpzin
42e4c0c1c9 rocmPackages.clang: fix errors with gcc15
- add patch from merged upstream llvm PR:
https://www.github.com/llvm/llvm-project/pull/136133 (previous attempt)
https://www.github.com/llvm/llvm-project/pull/144886

Upstream issue:
https://www.github.com/ROCm/composable_kernel/issues/2887

Fixes build failure of `hipblaslt` with gcc15:
```
In file included from /build/source/projects/hipblaslt/clients/common/src/hipblaslt_init_device.cpp:27:
In file included from /build/source/projects/hipblaslt/clients/common/include/hipblaslt_datatype2string.hpp:29:
In file included from /build/source/projects/hipblaslt/library/src/amd_detail/include/auxiliary.hpp:29:
In file included from /build/source/projects/hipblaslt/library/include/hipblaslt/hipblaslt.h:58:
In file included from /nix/store/klmhyss10wmwknlcz7j3h2i4cqrcmnqg-clr-6.4.3/include/hip/hip_bfloat16.h:37:
In file included from /nix/store/klmhyss10wmwknlcz7j3h2i4cqrcmnqg-clr-6.4.3/include/hip/amd_detail/amd_hip_bfloat16.h:53:
In file included from /nix/store/klmhyss10wmwknlcz7j3h2i4cqrcmnqg-clr-6.4.3/include/hip/hip_runtime.h:62:
In file included from /nix/store/klmhyss10wmwknlcz7j3h2i4cqrcmnqg-clr-6.4.3/include/hip/amd_detail/amd_hip_runtime.h:114:
In file included from /nix/store/klmhyss10wmwknlcz7j3h2i4cqrcmnqg-clr-6.4.3/include/hip/hip_runtime_api.h:578:
In file included from /nix/store/klmhyss10wmwknlcz7j3h2i4cqrcmnqg-clr-6.4.3/include/hip/texture_types.h:47:
In file included from /nix/store/klmhyss10wmwknlcz7j3h2i4cqrcmnqg-clr-6.4.3/include/hip/channel_descriptor.h:32:
In file included from /nix/store/klmhyss10wmwknlcz7j3h2i4cqrcmnqg-clr-6.4.3/include/hip/amd_detail/amd_channel_descriptor.h:29:
In file included from /nix/store/klmhyss10wmwknlcz7j3h2i4cqrcmnqg-clr-6.4.3/include/hip/amd_detail/amd_hip_vector_types.h:49:
/nix/store/042ckvfbpa2v36v12jd34jnwr274ph5r-gcc-prefix/include/c++/array:219:2:
error: reference to __host__ function '__glibcxx_assert_fail' in __host__ __device__ function
  219 |         __glibcxx_requires_subscript(__n);
      |         ^
/nix/store/042ckvfbpa2v36v12jd34jnwr274ph5r-gcc-prefix/include/c++/debug/assertions.h:39:3:
note: expanded from macro '__glibcxx_requires_subscript'
   39 |   __glibcxx_assert(_N < this->size())
      |   ^
/nix/store/042ckvfbpa2v36v12jd34jnwr274ph5r-gcc-prefix/include/c++/x86_64-unknown-linux-gnu/bits/c++config.h:658:12:
note: expanded from macro '__glibcxx_assert'
  658 |       std::__glibcxx_assert_fail();                                     \
      |            ^
/build/source/projects/hipblaslt/clients/common/src/hipblaslt_init_device.cpp:135:20: note: called by 'operator()'
  135 |             return rand_nans[pseudo_random_device(idx) % rand_nans.size()];
      |                    ^
/build/source/projects/hipblaslt/clients/common/src/hipblaslt_init_device.cpp:39:27:
note: called by 'fill_kernel<float, (lambda at /build/source/projects/hipblaslt/clients/common/src/hipblaslt_init_device.cpp:134:55)>'
   39 |         A[idx + offset] = f(idx + offset);
      |                           ^
/nix/store/042ckvfbpa2v36v12jd34jnwr274ph5r-gcc-prefix/include/c++/x86_64-unknown-linux-gnu/bits/c++config.h:652:3:
note: '__glibcxx_assert_fail' declared here
  652 |   __glibcxx_assert_fail()
      |   ^
```
2025-12-08 11:16:05 +03:00
Fabián Heredia Montiel
f67367dc51 rocmPackages.rocm-runtime: fix build with gcc15 (#467795) 2025-12-05 06:23:35 +00:00
ghpzin
083d516ae4 rocmPackages.rocm-runtime: fix build with gcc15
- add patch from upstream commit:
5cc61b714d

Fixes build failure with gcc15:
```
In file included from /build/source/runtime/hsa-runtime/libamdhsacode/amd_elf_image.cpp:43:
/build/source/runtime/hsa-runtime/core/inc/amd_elf_image.hpp:62:15:
error: 'uint64_t' does not name a type
   62 |       virtual uint64_t type() const = 0;
      |               ^~~~~~~~
/build/source/runtime/hsa-runtime/core/inc/amd_elf_image.hpp:50:1:
note: 'uint64_t' is defined in header '<cstdint>'; this is probably
fixable by adding '#include <cs>
   49 | #include <memory>
  +++ |+#include <cstdint>
   50 |
```
2025-12-04 13:47:51 +03:00
Dennis Schridde
54e0612ae7 rocmPackages.meta.release-packagePlatforms: regenerate
This will make hydra build the ROCm-flavored kdenlive package and
others.
2025-11-29 16:44:54 +01:00
Luna Nova
14317f9685 rocmPackages.rocdbgapi: remove workaround for doxygen <1.15 table bug
We were applying a workaround due to a doxygen issue with tables.
https://github.com/doxygen/doxygen/issues/11634

This issue has been fixed in doxygen 1.15.

Fixes: #461156
2025-11-13 08:02:52 -08:00
Fabián Heredia Montiel
0eae47378c rocmPackages.llvm: remove workaround for LLVMgold-path.patch (#457624) 2025-11-11 17:55:09 +00:00
Aleksana
c9320d56eb rocmPackages.amdsmi: fix libdrm runtime loading and set mainProgram (#453793) 2025-11-09 12:03:23 +00:00
Martin Weinelt
684545ccda rocmPackages.meta.release-packagePlatforms: regenerate
The list should have been regenerated after adding ROCm support to
onnxruntime, but apparently we forgot.

This will make hydra build the ROCm-flavored Firefox package.

Fixes: #459100
2025-11-06 15:58:28 +01:00
Luna Nova
9a22a291a1 rocmPackages.rocblas: fix FHS diff path in rocblas test 2025-11-04 21:42:35 -08:00
Luna Nova
5015e4b446 rocmPackages.rocblas: split benchmark and test outputs 2025-11-04 21:26:41 -08:00
Luna Nova
f9864971a4 rocmPackages: don't set build{Tests,Benchmarks}=false in scope 2025-11-04 19:55:25 -08:00
Luna Nova
00207e62b2 rocmPackages.rocblas: remove reference to tensile in librocblas
rocblas's closure-size was bloated by around 400MB by a ref to
tensile in an error message string. tensile is used at build time
to build and link kernels, but is not needed at runtime.

Before:
/nix/store/zggwlwji0jca2cvhgl4ick7l3fwlwsfb-rocblas-gfx1030-6.4.3          1.3G

After:
/nix/store/71rz9qm323rzmzgkx31llcsnhd0gkvl3-rocblas-gfx1030-6.4.3        904.5M
2025-11-04 19:43:53 -08:00
Luna Nova
6ff66dc257 rocmPackages.llvm: remove unnecessary filtering of nostdlibinc patch
add-nostdlibinc-flag.patch is no longer needed as it was moved to
the cc-wrapper
2025-11-02 10:46:41 -08:00
Luna Nova
368f14b501 rocmPackages.llvm: remove workaround for LLVMgold-path.patch
Prior to overrideScope support for llvmPackages, LLVMgold-path.patch
would point at a non-overridden LLVM and needed replaced.

Now that we use overrideScope we can drop this patch.
2025-11-02 10:46:41 -08:00
Aliaksandr
03bb7d8195 all-packages: do not export lib functions from pkgs 2025-10-30 22:38:49 +02:00
Wolfgang Walther
ba2391c8d0 various: fix maintainer teams
The maintainers field currently expects actual maintainers only, not
entire teams. These can be added via `meta.teams` or via
`<team>.members` for NixOS tests, which don't support teams, yet.
2025-10-30 12:03:51 +01:00
Masum Reza
17cafd19fd rocmPackages.rocblas: move tests and benchmarks to passthru.tests (#454088) 2025-10-29 11:44:56 +00:00
Emily
210060e66c llvmPackages.openmp: don’t use a target platform LLVM
This was used in 4b07aeae16 to get
what was actually a *host* LLVM in practice, when the `buildHost`
LLVM package set was included in the `callPackage` scope used for
libraries. It should no longer be necessary and is now quite confusing.
2025-10-25 20:07:13 +01:00
Luna Nova
5418ad3ed9 rocmPackages.llvm: use llvmPackages.overrideScope
Uses new overrideScope feature to override base LLVM packages
without risking leaking incorrect non-overridden packages
from the base LLVM version.

To achieve no rebuilds or new attrs:
- Explicit list of packages to expose in an inherit instead
  of the entire scope
- Noting where workarounds for lack of overrideScope should
  be removed in a followup such as re-attaching a
  replaceVars patch or disabling separate tblgen package,
  but are kept for now to avoid a rebuild

To avoid a large formatting diff a small helper has
been introduced that allows an overrideScope call with a single
arg, convincing nixfmt not to indent the scope body further.
2025-10-25 20:06:32 +01:00
Philip Taron
877ac94baf rocmPackages.meta: clean up (#451987) 2025-10-21 13:24:14 +00:00
Luna Nova
e96455db68 rocmPackages.rocblas: move tests and benchmarks to passthru.tests
Test and bench data bloated rocblas' closure size by around 1.1G
2025-10-20 20:47:05 -07:00
Pui Yong Qing
0074a31d5e rocmPackages.amdsmi: fix libdrm runtime loading and set mainProgram 2025-10-20 21:52:28 +08:00
Masum Reza
ff2a647a03 rocmPackages.mivisionx{-hip,-cpu}: remove libjpeg_turbo input (#448970) 2025-10-17 15:27:00 +00:00
Masum Reza
1b3f5cfe80 rocmPackages.hipblaslt: massively reduce peak disk space usage (#451188) 2025-10-16 17:03:26 +00:00
Luna Nova
efabf4ba67 rocmPackages.rocm-tests: add linkFarm of all available rocmPackages
is this a good idea? I sometimes used the meta join as a fast way to
kick off a build of rocmPackages.*
2025-10-14 09:10:27 -07:00