cudaPackages_{10*,11*}: warn about upcoming removal (#342112)

This commit is contained in:
Emily 2024-10-03 13:48:13 +01:00 committed by GitHub
commit 7dc35d8704
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 13 additions and 3 deletions

View File

@ -17,6 +17,10 @@
[2.24](https://nix.dev/manual/nix/latest/release-notes/rl-2.24). [2.24](https://nix.dev/manual/nix/latest/release-notes/rl-2.24).
Notable changes include improvements to Git fetching, documentation comment support in `nix-repl> :doc`, as well as many quality of life improvements. Notable changes include improvements to Git fetching, documentation comment support in `nix-repl> :doc`, as well as many quality of life improvements.
- This will be the last release of Nixpkgs to support versions of CUDA prior to CUDA 12.0.
These versions only work with old compiler versions that will be unsupported by the time of the Nixpkgs 25.05 release.
In future, users should expect CUDA versions to be dropped as the compiler versions they require leave upstream support windows.
- Convenience options for `amdgpu`, open source driver for Radeon cards, is now available under `hardware.amdgpu`. - Convenience options for `amdgpu`, open source driver for Radeon cards, is now available under `hardware.amdgpu`.
- [AMDVLK](https://github.com/GPUOpen-Drivers/AMDVLK), AMD's open source Vulkan driver, is now available to be configured as `hardware.amdgpu.amdvlk` option. - [AMDVLK](https://github.com/GPUOpen-Drivers/AMDVLK), AMD's open source Vulkan driver, is now available to be configured as `hardware.amdgpu.amdvlk` option.

View File

@ -164,4 +164,10 @@ let
fixedPoints.extends composedExtension passthruFunction fixedPoints.extends composedExtension passthruFunction
); );
in in
cudaPackages # We want to warn users about the upcoming deprecation of old CUDA
# versions, without breaking Nixpkgs CI with evaluation warnings. This
# gross hack ensures that the warning only triggers if aliases are
# enabled, which is true by default, but not for ofborg.
lib.warnIf (cudaPackages.cudaOlder "12.0" && config.allowAliases)
"CUDA versions older than 12.0 will be removed in Nixpkgs 25.05; see the 24.11 release notes for more information"
cudaPackages

View File

@ -1,6 +1,6 @@
# cd nixpkgs # cd nixpkgs
# nix-build -A tests.pkg-config # nix-build -A tests.pkg-config
{ lib, stdenv, ... }: { lib, config, stdenv, ... }:
let let
# defaultPkgConfigPackages test needs a Nixpkgs with allowUnsupportedPlatform # defaultPkgConfigPackages test needs a Nixpkgs with allowUnsupportedPlatform
@ -10,7 +10,7 @@ let
allPkgs = import ../default.nix { allPkgs = import ../default.nix {
system = stdenv.hostPlatform.system; system = stdenv.hostPlatform.system;
localSystem = stdenv.buildPlatform.system; localSystem = stdenv.buildPlatform.system;
config = { config = config // {
allowUnsupportedSystem = true; allowUnsupportedSystem = true;
}; };
overlays = []; overlays = [];