cudaPackages.cutensor: 1.3.1.3 -> 1.5.0.3

Update cutensor to the latest version compatible with its only dependent
in nixpkgs, cupy. Future work might wish to make multiple versions
available. Also update the URL format for all known versions.

+7 -4
+4 -1
pkgs/development/libraries/science/math/cutensor/generic.nix
··· 13 let 14 mostOfVersion = builtins.concatStringsSep "." 15 (lib.take 3 (lib.versions.splitVersion version)); 16 in 17 18 stdenv.mkDerivation { ··· 20 inherit version; 21 22 src = fetchurl { 23 - url = "https://developer.download.nvidia.com/compute/cutensor/${mostOfVersion}/local_installers/libcutensor-${stdenv.hostPlatform.parsed.kernel.name}-${stdenv.hostPlatform.parsed.cpu.name}-${version}.tar.gz"; 24 inherit hash; 25 }; 26
··· 13 let 14 mostOfVersion = builtins.concatStringsSep "." 15 (lib.take 3 (lib.versions.splitVersion version)); 16 + platform = "${stdenv.hostPlatform.parsed.kernel.name}-${stdenv.hostPlatform.parsed.cpu.name}"; 17 in 18 19 stdenv.mkDerivation { ··· 21 inherit version; 22 23 src = fetchurl { 24 + url = if lib.versionOlder mostOfVersion "1.3.3" 25 + then "https://developer.download.nvidia.com/compute/cutensor/${mostOfVersion}/local_installers/libcutensor-${platform}-${version}.tar.gz" 26 + else "https://developer.download.nvidia.com/compute/cutensor/redist/libcutensor/${platform}/libcutensor-${platform}-${version}-archive.tar.xz"; 27 inherit hash; 28 }; 29
+3 -3
pkgs/top-level/cuda-packages.nix
··· 28 "1.2.2.5" = { 29 hash = "sha256-lU7iK4DWuC/U3s1Ct/rq2Gr3w4F2U7RYYgpmF05bibY="; 30 }; 31 - "1.3.1.3" = { 32 - hash = "sha256-mNlVnabB2IC3HnYY0mb06RLqQzDxN9ePGVeBy3hkBC8="; 33 }; 34 }; 35 36 inherit (final) cudaMajorMinorVersion cudaMajorVersion; 37 38 cutensor = buildCuTensorPackage rec { 39 - version = if cudaMajorMinorVersion == "10.1" then "1.2.2.5" else "1.3.1.3"; 40 inherit (cuTensorVersions.${version}) hash; 41 # This can go into generic.nix 42 libPath = "lib/${if cudaMajorVersion == "10" then cudaMajorMinorVersion else cudaMajorVersion}";
··· 28 "1.2.2.5" = { 29 hash = "sha256-lU7iK4DWuC/U3s1Ct/rq2Gr3w4F2U7RYYgpmF05bibY="; 30 }; 31 + "1.5.0.3" = { 32 + hash = "sha256-T96+lPC6OTOkIs/z3QWg73oYVSyidN0SVkBWmT9VRx0="; 33 }; 34 }; 35 36 inherit (final) cudaMajorMinorVersion cudaMajorVersion; 37 38 cutensor = buildCuTensorPackage rec { 39 + version = if cudaMajorMinorVersion == "10.1" then "1.2.2.5" else "1.5.0.3"; 40 inherit (cuTensorVersions.${version}) hash; 41 # This can go into generic.nix 42 libPath = "lib/${if cudaMajorVersion == "10" then cudaMajorMinorVersion else cudaMajorVersion}";