cudaPackages_12_5: init at 12.5.1 (#384826)

This commit is contained in:
Pavol Rusnak 2025-02-24 19:12:54 +01:00 committed by GitHub
commit c4a805b7f9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 2414 additions and 4 deletions

View file

@ -17,6 +17,7 @@ let
"12.2" = "12.2.2"; "12.2" = "12.2.2";
"12.3" = "12.3.0"; "12.3" = "12.3.0";
"12.4" = "12.4.0"; "12.4" = "12.4.0";
"12.5" = "12.5.1";
"12.6" = "12.6.0"; "12.6" = "12.6.0";
"12.8" = "12.8.0"; "12.8" = "12.8.0";
}; };

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -171,9 +171,9 @@ filterAndCreateOverrides {
prevAttrs.buildInputs prevAttrs.buildInputs
# x86_64 only needs gmp from 12.0 and on # x86_64 only needs gmp from 12.0 and on
++ lib.lists.optionals (cudaAtLeast "12.0") [ gmp ] ++ lib.lists.optionals (cudaAtLeast "12.0") [ gmp ]
# Additional dependencies for CUDA 12.6 and later, which # Additional dependencies for CUDA 12.5 and later, which
# support multiple Python versions. # support multiple Python versions.
++ lib.lists.optionals (cudaAtLeast "12.6") [ ++ lib.lists.optionals (cudaAtLeast "12.5") [
libxcrypt-legacy libxcrypt-legacy
ncurses6 ncurses6
python39 python39
@ -188,7 +188,7 @@ filterAndCreateOverrides {
prevAttrs.installPhase prevAttrs.installPhase
# Python 3.8 is not in nixpkgs anymore, delete Python 3.8 cuda-gdb support # Python 3.8 is not in nixpkgs anymore, delete Python 3.8 cuda-gdb support
# to avoid autopatchelf failing to find libpython3.8.so. # to avoid autopatchelf failing to find libpython3.8.so.
+ lib.optionalString (cudaAtLeast "12.6") '' + lib.optionalString (cudaAtLeast "12.5") ''
find $bin -name '*python3.8*' -delete find $bin -name '*python3.8*' -delete
''; '';
}; };
@ -225,7 +225,7 @@ filterAndCreateOverrides {
postPatch = postPatch =
let let
nvvmReplace = lib.optionalString (cudaOlder "12.6") '' nvvmReplace = lib.optionalString (cudaOlder "12.5") ''
--replace-fail \ --replace-fail \
'$(TOP)/$(_NVVM_BRANCH_)' \ '$(TOP)/$(_NVVM_BRANCH_)' \
"''${!outputBin}/nvvm" \ "''${!outputBin}/nvvm" \

View file

@ -94,6 +94,12 @@
sha256 = "sha256-5qhC9OypSQV1zbaLaxu3jUe5Wol95I3uKSxDGJLlfRc="; sha256 = "sha256-5qhC9OypSQV1zbaLaxu3jUe5Wol95I3uKSxDGJLlfRc=";
}; };
"12.5" = {
version = "12.5.1";
url = "https://developer.download.nvidia.com/compute/cuda/12.5.1/local_installers/cuda_12.5.1_555.42.06_linux.run";
sha256 = "sha256-teCneeCJyGYQBRFBxM9Ji+70MYWOxjOYEHORcn7L2wQ=";
};
"12.6" = { "12.6" = {
version = "12.6.0"; version = "12.6.0";
url = "https://developer.download.nvidia.com/compute/cuda/12.6.0/local_installers/cuda_12.6.0_560.28.03_linux.run"; url = "https://developer.download.nvidia.com/compute/cuda/12.6.0/local_installers/cuda_12.6.0_560.28.03_linux.run";

View file

@ -105,6 +105,9 @@ let
gccMaxMajorVersion = "13"; gccMaxMajorVersion = "13";
}; };
# No changes from 12.4 to 12.5
"12.5" = attrs."12.4";
# Added support for Clang 18 # Added support for Clang 18
# https://docs.nvidia.com/cuda/archive/12.6.0/cuda-installation-guide-linux/index.html#host-compiler-support-policy # https://docs.nvidia.com/cuda/archive/12.6.0/cuda-installation-guide-linux/index.html#host-compiler-support-policy
"12.6" = attrs."12.4" // { "12.6" = attrs."12.4" // {

View file

@ -2967,6 +2967,7 @@ with pkgs;
cudaPackages_12_2 = callPackage ./cuda-packages.nix { cudaVersion = "12.2"; }; cudaPackages_12_2 = callPackage ./cuda-packages.nix { cudaVersion = "12.2"; };
cudaPackages_12_3 = callPackage ./cuda-packages.nix { cudaVersion = "12.3"; }; cudaPackages_12_3 = callPackage ./cuda-packages.nix { cudaVersion = "12.3"; };
cudaPackages_12_4 = callPackage ./cuda-packages.nix { cudaVersion = "12.4"; }; cudaPackages_12_4 = callPackage ./cuda-packages.nix { cudaVersion = "12.4"; };
cudaPackages_12_5 = callPackage ./cuda-packages.nix { cudaVersion = "12.5"; };
cudaPackages_12_6 = callPackage ./cuda-packages.nix { cudaVersion = "12.6"; }; cudaPackages_12_6 = callPackage ./cuda-packages.nix { cudaVersion = "12.6"; };
cudaPackages_12_8 = callPackage ./cuda-packages.nix { cudaVersion = "12.8"; }; cudaPackages_12_8 = callPackage ./cuda-packages.nix { cudaVersion = "12.8"; };
cudaPackages_12 = cudaPackages_12_4; # Latest supported by cudnn cudaPackages_12 = cudaPackages_12_4; # Latest supported by cudnn